geom
Manipulation of geometric/geographical data.
Geometric data transformation
Geometric type
|
Transform iterable to shapely.geometry.Point type, or the other way round. |
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 known point to a line. |
Geometric data computation
Distance
|
Calculate distance between two points. |
|
Calculate hypotenuse given two points (the right-angled triangle, given its side and perpendicular). |
|
Find the closest point of the given point to a list of points. |
|
Find the closest points from a list of reference points (applicable for vectorized computation). |
|
Find the shortest path through a sequence of points. |
Locating
|
Get the midpoint between two points (applicable for vectorized 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 given its centre point, four vertices and rotation angle (in degree). |