pygeoops.subdivide#
- pygeoops.subdivide(geometry: BaseGeometry, num_coords_max: int = 1000) ndarray[tuple[Any, ...], dtype[BaseGeometry]]#
Divide the input geometry to smaller parts using rectilinear lines.
- Parameters:
geometry (geometry) – the geometry to subdivide.
num_coords_max (int) – number of coordinates per subdivision to aim for. In the current implementation, num_coords_max will be the average number of coordinates the subdividions will consist of. If <=0, no subdivision is applied. Defaults to 1000.
- Returns:
- if geometry has < num_coords_max coordinates, the array
will contain the input geometry. Otherwise it will contain subdivisions.
- Return type:
array of geometries