[go: up one dir, main page]

Module geo::algorithm[][src]

This module includes all the functions of geometric calculations

Modules

area

Returns the area of the surface of a geometry.

bearing

Returns the bearing to another Point in degrees.

bounding_rect

Returns the bounding rectangle of a geometry.

centroid

Calculation of the centroid of a geometry.

closest_point

Determine the minimum distance between two objects.

contains

Checks if the geometry A is completely inside the B geometry.

convexhull

Calculates the convex hull of a geometry.

euclidean_distance

Returns the Euclidean distance between two geometries.

euclidean_length

Returns the length of a line.

extremes

Returns the extreme indices of a Polygon, MultiPolygon, or MultiPoint.

haversine_destination

Returns a new Point using distance and bearing.

haversine_distance

Returns the Haversine distance between two geometries.

haversine_intermediate

Returns a new Point along a great circle between two points.

haversine_length

Returns the Haversine length of a line.

intersects

Checks if the geometry A intersects the geometry B.

map_coords

Apply a function to all coordinates.

orient

Orients a Polygon's exterior and interior rings.

rotate

Rotate a geometry around either its centroid or a point by an angle given in degrees.

simplify

Simplifies geometries using the Ramer-Douglas-Peucker algorithm.

simplifyvw

Simplifies geometries using the Visvalingam-Whyatt algorithm. Includes a topology-preserving variant.

translate

Translates a geometry along the given offsets.

vincenty_distance

Calculate the Vincenty distance between Points.

vincenty_length

Calculate the Vincenty length of a LineString.

winding_order

Calculate and work with the winding order of Linestrings.