Home | Trees | Indices | Help |
|
---|
|
object --+ | bases.Named --+ | bases.Based --+ | bases.LatLonHeightBase --+ | LatLonSphericalBase
(INTERNAL) Base class for spherical Latlons.
Instance Methods | |||
|
|||
|
|||
|
|||
|
|||
|
|||
|
|||
|
|||
|
|||
|
|||
Inherited from Inherited from Inherited from |
Properties | |
datum Get this point's datum (Datum). |
|
isEllipsoidal Check whether this LatLon is ellipsoidal (bool). |
|
isSpherical Check whether this LatLon is spherical (bool). |
|
Inherited from Inherited from Inherited from |
Method Details |
Return the final bearing (reverse azimuth) from this to an other point.
Example: >>> p = LatLon(52.205, 0.119) >>> q = LatLon(48.857, 2.351) >>> b = p.finalBearingTo(q) # 157.9 |
Return the maximum latitude reached when travelling on a great circle on given bearing from this point (based on 'Clairaut's formula'). The maximum latitude is independent of longitude, it is the same for all points on a given latitude. Negate the result for the minimum latitude (on the Southern hemisphere).
JS name: maxLatitude. |
Return the minimum latitude reached when travelling on a great circle on given bearing from this point. See method maxLat for more details.
JS name: minLatitude. |
Parse a string representing lat-/longitude point and return a LatLon. The lat- and longitude must be separated by a sep[arator] character. If height is present it must follow and be separated by another sep[arator]. Lat- and longitude may be swapped, provided at least one ends with the proper compass direction. For more details, see functions parse3llh and parseDMS in module dms.
|
Return the initial bearing (forward azimuth) from this to an other point along a rhumb (loxodrome) line.
Example: >>> p = LatLon(51.127, 1.338) >>> q = LatLon(50.964, 1.853) >>> b = p.rhumbBearingTo(q) # 116.7 |
Return the destination point having travelled along a rhumb (loxodrome) line from this point the given distance on the given bearing.
Example: >>> p = LatLon(51.127, 1.338) >>> q = p.rhumbDestination(40300, 116.7) # 50.9642°N, 001.8530°E JS name: rhumbDestinationPoint |
Return the distance from this to an other point along a rhumb (loxodrome) line.
Example: >>> p = LatLon(51.127, 1.338) >>> q = LatLon(50.964, 1.853) >>> d = p.rhumbDistanceTo(q) # 403100 |
Return the (loxodromic) midpoint between this and an other point.
Example: >>> p = LatLon(51.127, 1.338) >>> q = LatLon(50.964, 1.853) >>> m = p.rhumb_midpointTo(q) >>> m.toStr() # '51.0455°N, 001.5957°E' |
Convert this LatLon point to a WM coordinate. See function toWm in module webmercator for details.
|
Property Details |
datumGet this point's datum (Datum).
|
isEllipsoidalCheck whether this LatLon is ellipsoidal (bool).
|
isSphericalCheck whether this LatLon is spherical (bool).
|
Home | Trees | Indices | Help |
|
---|
Generated by Epydoc 3.0.1 on Thu Sep 13 11:53:06 2018 | http://epydoc.sourceforge.net |