The PointInPolygon operator filters point features of a (multi-)point collection with polygons. In more detail, the points of each feature are checked against the polygons of the other collection. If one or more point is included in any polygon's ring, the feature is included in the output.
PointInPolygon
For instance, you can filter tree features inside the polygons of a forest. All features, that weren't inside any forest polygon, are considered either part of another forest or outliers and are thus removed.
The operator is parameterless.
The PointInPolygon operator expects two vector inputs.
points
SingleVectorSource
polygons
If the points vector input is not a (multi-)point feature collection, an error is thrown.
If the polygons vector input is not a (multi-)polygon feature collection, an error is thrown.
{ "type": "PointInPolygon", "params": {}, "sources": { "points": { "type": "OgrSource", "params": { "data": { "type": "internal", "datasetId": "e977b123-ca47-4c5b-aace-481119826aaf" }, "attributeProjection": ["name", "population"] } }, "polygons": { "type": "OgrSource", "params": { "data": { "type": "internal", "datasetId": "b6191257-6d61-4c6b-90a4-ebfb1b23899d" } } } } }