Package-level declarations

Miscellaneous utilities including line slicing, nearest point calculations, filtering, and intersection operations.

Types

Link copied to clipboard

Result properties from nearestPointTo from a LineString.

Link copied to clipboard

Result properties from nearestPointTo of a Collection<Point>.

Functions

Link copied to clipboard

Filters a GeometryCollection of point geometries to include only those that are inside any of the given polygons.

Link copied to clipboard

Returns intersecting points between two LineStrings.

Link copied to clipboard

Finds the nearest point in the collection to the given position.

Finds the closest Position along a LineString to a given position.

Link copied to clipboard
fun LineString.slice(start: Point, stop: Point): LineString

Takes a LineString, a start and a stop Point and returns a subsection of the line between those points. The start and stop points do not need to fall exactly on the line.

Takes a LineString, a start and a stop Position and returns a subsection of the line between those points. The start and stop points do not need to fall exactly on the line.

Takes a LineString and a specified distance along the line to a start and stop, and returns a subsection of the line in-between those points.