Polygons#

Boundaries#

generalize_boundaries

Generalize shared polygon boundaries while strictly preserving topology.

Patches#

generalize_area_patches

Generalise area patches using enlargement and contraction.

Collapsing#

skeletonize_natural

Create the natural TIN skeleton of a polygon.

skeletonize_artificial

Create a TIN skeleton from a polygon by enforcing entry points.

skeletonize_network

Create an artificial TIN skeleton and blend it inside a network.

spinalize_polygon

Collapse a single polygon into one or multiple lines.

spinalize_polygons

Collapse multiple polygons into one or multiple lines.

Measures#

polygon_elongation

Calculate the elongation of a polygon.

polygon_compactness

Calculate the compactness of a polygon.

polygon_concavity

Calculate the concavity of a polygon.

polygon_orientation

Calculate the orientation of a polygon.

surfacic_distance

Calculate the surfacic distance between two polygons.

Miscellaneous#

remove_flat_vertices

Removes flat vertices from a polygon.

enclosing_rectangle

Construct an enclosing rectangle from a polygon.

close_polygon

Close a polygon using dilation and erosion.

open_polygon

Open a polygon using erosion and dilation.