filterInside
fun <G : PointGeometry> GeometryCollection<G>.filterInside(polygons: GeometryCollection<PolygonGeometry>): GeometryCollection<G>(source)
Filters a GeometryCollection of point geometries to include only those that are inside any of the given polygons.
For MultiPoint geometries, filters individual points within each multi-point and only includes the multi-point if at least one point is inside a polygon.
Return
A GeometryCollection containing only the point geometries (or portions thereof) that are inside at least one of the polygons.
Parameters
polygons
Collection of polygon geometries to test containment against.