Home | Trees | Indices | Help |
|
---|
|
Trigonometric spherical geodetic (lat-/longitude) class LatLon and functions areaOf, intersection, isPoleEnclosedBy, meanOf, nearestOn2 and perimeterOf.
Pure Python implementation of geodetic (lat-/longitude) methods using spherical trigonometry, transcribed from JavaScript originals by (C) Chris Veness 2011-2016 published under the same MIT Licence**, see Latitude/Longitude.
Version: 18.10.08
Classes | |
LatLon New point on spherical model earth model. |
Functions | |||
|
|||
|
|||
|
|||
|
|||
|
|||
|
Function Details |
Calculate the area of a spherical polygon where the sides of the polygon are great circle arcs joining the points.
Note: The area is based on Karney's 'Area of a spherical polygon'. See Also: pygeodesy.areaOf, sphericalNvector.areaOf and ellipsoidalKarney.areaOf. Example: >>> b = LatLon(45, 1), LatLon(45, 2), LatLon(46, 2), LatLon(46, 1) >>> areaOf(b) # 8666058750.718977 >>> c = LatLon(0, 0), LatLon(1, 0), LatLon(0, 1) >>> areaOf(c) # 6.18e9 |
Compute the intersection point of two paths each defined by a start point and an initial bearing.
Example: >>> p = LatLon(51.8853, 0.2545) >>> s = LatLon(49.0034, 2.5735) >>> i = intersection(p, 108.547, s, 32.435) # '50.9078°N, 004.5084°E' |
Check whether a pole is enclosed by a polygon. |
Compute the geographic mean of the supplied points. |
Locate the closest point on any segment between two consecutive points of a path. If the given point is within the extent of any segment, the closest point is on the segment. Otherwise the closest point is the nearest of the segment end points. Distances are approximated by function equirectangular_, subject to the supplied options.
Note: The closest point is either one of the points or an instance of the class of point. |
Compute the perimeter of a polygon/-line defined by an array, list, sequence, set or tuple of points.
Note: This perimeter is based on the haversine formula. See Also: pygeodesy.perimeterOf and ellipsoidalKarney.perimeterOf. |
Home | Trees | Indices | Help |
|
---|
Generated by Epydoc 3.0.1 on Mon Oct 8 17:20:19 2018 | http://epydoc.sourceforge.net |