Home | Trees | Indices | Help |
|
---|
|
object --+ | Base --+ | LatLonHeightBase
(INTERNAL) Base class for LatLon points on spherical or ellipsiodal earth models.
Instance Methods | |||
|
|||
|
|||
|
|||
|
|||
|
|||
|
|||
|
|||
|
|||
|
|||
|
|||
|
|||
|
|||
|
|||
Inherited from Inherited from |
Properties | |
height Get the height (meter). |
|
lat Get the latitude (degrees). |
|
latlon Get the latitude and longitude (2-tuple of degrees). |
|
lon Get the longitude (degrees). |
|
Inherited from |
Method Details |
New LatLon.
Example: >>> p = LatLon(50.06632, -5.71475) >>> q = LatLon('50°03′59″N', """005°42'53"W""") |
str(x)
|
Return the SE and NW lat-/longitude of a great circle bounding box centered at this location.
|
Copy this point.
|
Compare this point with an other point.
See Also: Method equals3. Example: >>> p = LatLon(52.205, 0.119) >>> q = LatLon(52.205, 0.119) >>> e = p.equals(q) # True |
Compare this point with an other point.
See Also: Method equals. Example: >>> p = LatLon(52.205, 0.119, 42) >>> q = LatLon(52.205, 0.119) >>> e = p.equals3(q) # False |
Check a polygon given as list, set or tuple of points.
|
Return this point's lat-/longitude in radians.
|
Return this point's lat-, longitude and height.
|
Convert this (geodetic) point to (n-)vector (normal to the earth's surface) x/y/z components, ignoring the height.
|
Convert this point to a "lat, lon [+/-height]" string, formatted in the given form.
Example: >>> LatLon(51.4778, -0.0016).toStr() # 51°28′40″N, 000°00′06″W >>> LatLon(51.4778, -0.0016).toStr(F_D) # 51.4778°N, 000.0016°W >>> LatLon(51.4778, -0.0016, 42).toStr() # 51°28′40″N, 000°00′06″W, +42.00m |
Property Details |
heightGet the height (meter).
|
latGet the latitude (degrees).
|
latlonGet the latitude and longitude (2-tuple of degrees).
|
lonGet the longitude (degrees).
|
Home | Trees | Indices | Help |
|
---|
Generated by Epydoc 3.0.1 on Thu Jan 4 20:06:22 2018 | http://epydoc.sourceforge.net |