Skip to content

Feature Request: Support for FeatureCollection<MultiPoint> to first parameter of pointsWithinPolygon #2099

@justinbangerter

Description

@justinbangerter
  • [version 5.1.6 and 6.3.0]
const geojson = turf.featureCollection([
  turf.multiPoint([
    [10, 10],
    [-10, -10]
  ])
]);

const polygon = turf.polygon([[
  [0, 0],
  [15, 0],
  [15, 15],
  [0, 15],
  [0,0]
]]);

turf.pointsWithinPolygon(geojson, polygon);

> "Error: coord must be GeoJSON Point or an Array of numbers"

Thanks for the awesome library.

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions