API Reference#

The API Reference provides an overview of all public objects, functions and methods implemented in PyGeoOps. All classes and function exposed in pygeoops.* namespace plus those listed in the reference are public.

centerline(geometry[, densify_distance, ...])

Calculates an approximated centerline for a polygon.

collect(geometries)

Collects a list of geometries to one (multi)geometry.

collection_extract(geometry[, primitivetype])

Extracts the parts from the input that comply with the type specified.

create_grid(total_bounds, nb_columns, nb_rows)

Creates a grid with tiles of the width and height specified.

create_grid2(total_bounds, nb_squarish_tiles)

Creates a grid with about the indicated number of ~square tiles.

create_grid3(total_bounds, width, height)

Creates a grid with tiles of the width and height specified.

difference_all(geometry, geometries_to_subtract)

Subtracts all geometries in geometries_to_subtract from the input geometry.

difference_all_tiled(geometry, ...[, ...])

Subtracts all geometries in geometries_to_subtract from the input geometry.

empty(geometrytype)

Generate an empty geometry of the type specified.

explode(geometry)

Dump all (multi)geometries in the input to one list of single geometries.

extend_line_by_distance(line, ...)

Extends a line with the specified distances.

extend_line_to_polygon(line, geometry)

Extends a line to a given Polygon.

make_valid(geometry[, keep_collapsed, ...])

Make the input geometry valid.

remove_inner_rings(geometry, ...)

Remove (small) inner rings from a (multi)polygon.

simplify(geometry, tolerance[, algorithm, ...])

Simplify the geometry/geometries.

split_tiles(input_tiles, nb_tiles_wanted)

Split tiles till the number of tiles approaches nb_tiles_wanted.

subdivide(geometry[, num_coords_max])

Divide the input geometry to smaller parts using rectilinear lines.

view_angles(viewpoint, visible_geom)

Returns the start and end angle how the visible_geom can be seen from the viewpoint.