geom¶
Manipulation of geometric/geographical data.
Geometric data transformation¶
Data type
|
Transforms iterable data to geometric type or vice versa. |
|
Retrieves an array of coordinates from the input geometry object. |
Coordinate system
|
Converts latitude and longitude (WGS84) to British national grid (OSGB36). |
|
Converts British national grid (OSGB36) to latitude and longitude (WGS84). |
Dimension / Projection
|
Drops an axis from a given 3D geometry object. |
|
Finds the projected point from a given point to a line. |
Geometric data computation¶
Distance
|
Calculates the distance between two points on a unit sphere. |
|
Calculates the hypotenuse distance between two points. |
|
Finds the closest point in a sequence of reference points to a given point. |
|
Finds the closest points from a list of reference points to a set of query points. |
|
Finds the shortest path through a sequence of points. |
Locating
|
Gets the midpoint between two points (applicable for vectorised computation). |
|
Gets the midpoint between two points. |
|
Gets the midpoint between two points by pure calculation. |
|
Gets coordinates of the centroid of a rectangle. |
|
Gets the four vertices of a square given its centre and side length. |
|
Gets the four vertices of a square given its centre and side length (by elementary calculation). |
Geometric data sketching¶
|
Sketches a square on a plot given its centre coordinates, side length and rotation angle. |