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