|
|
|
|
|
__init__(self,
lat,
lon,
height=0,
name='')
New LatLon. |
|
|
|
|
|
|
|
|
|
|
_distanceTo_(self,
func_,
other,
wrap=False)
(INTERNAL) Helper for (ellipsoidal) methods
<func>To. |
|
|
|
|
antipode(self,
height=None)
Return the antipode, the point diametrically opposite to this point. |
|
|
|
|
bounds(self,
wide,
high,
radius=6371008.77141)
DEPRECATED, use method boundsOf. |
|
|
|
|
boundsOf(self,
wide,
high,
radius=6371008.77141)
Return the SE and NW lat-/longitude of a great circle bounding box
centered at this location. |
|
|
|
|
compassAngle(self,
other)
DEPRECATED, use method compassAngleTo. |
|
|
|
|
compassAngleTo(self,
other,
adjust=True,
wrap=False)
Return the angle from North for the direction vector between this and
an other point. |
|
|
|
|
|
|
|
|
|
|
|
|
|
equals(self,
other,
eps=None)
DEPRECATED, use method isequalTo. |
|
|
|
|
equals3(self,
other,
eps=None)
DEPRECATED, use method isequalTo3. |
|
|
|
|
|
|
|
euclideanTo(self,
other,
radius=None,
**options)
Approximate the Euclidian distance between this and an
other point. |
|
|
|
|
|
|
|
|
|
|
haversineTo(self,
other,
radius=None,
wrap=False)
Compute the distance between this and an other point using the Haversine formula. |
|
|
|
|
heightStr(self,
prec=-2,
m='m')
Return a string for the height height. |
|
|
|
|
|
|
|
isantipode(self,
other,
eps=2.22044604925e-16)
DEPRECATED, use method isantipodeTo. |
|
|
|
|
isantipodeTo(self,
other,
eps=2.22044604925e-16)
Check whether this and an other point are antipodal, on diametrically
opposite sides of the earth. |
|
|
|
|
isequalTo(self,
other,
eps=None)
Compare this point with an other point, ignoring height. |
|
|
|
|
isequalTo3(self,
other,
eps=None)
Compare this point with an other point, including height. |
|
|
|
|
latlon2(self,
ndigits=0)
Return this point's lat- and longitude in degrees,
rounded. |
|
|
|
|
latlon2round(self,
ndigits=0)
DEPRECATED, use method latlon2. |
|
|
|
|
latlon_(self,
ndigits=0)
DEPRECATED, use method latlon2. |
|
|
|
|
philam2(self,
ndigits=0)
Return this point's lat- and longitude in radians,
rounded. |
|
|
|
|
points(self,
points,
closed=True)
DEPRECATED, use method points2. |
|
|
|
|
points2(self,
points,
closed=True)
Check a path or polygon represented by points. |
|
|
|
|
thomasTo(self,
other,
wrap=False)
Compute the distance between this and an other point using Thomas' formula. |
|
|
|
|
to2ab(self)
DEPRECATED, use property philam. |
|
|
|
|
to3llh(self,
height=None)
DEPRECATED, use property latlonheight or
latlon.to3Tuple(height). |
|
|
|
|
to3xyz(self)
DEPRECATED, use method toNvector, toVector,
toVector3d or property xyz or perhaps
(geocentric) toEcef. |
|
|
|
|
toCartesian(self,
Cartesian=None,
**Cartesian_kwds)
Convert this point to cartesian (ECEF) coordinates. |
|
|
|
|
toEcef(self)
Convert this point to geocentric coordinates, also known as
Earth-Centered, Earth-Fixed (ECEF). |
|
|
|
|
toNvector(self,
h=None,
Nvector=None,
**Nvector_kwds)
Convert this point to n-vector (normal to the earth's
surface) components, including height. |
|
|
|
|
toStr(self,
form='dms',
prec=None,
m='m',
sep=', ')
Convert this point to a "lat, lon [+/-height]" string,
formatted in the given form. |
|
|
|
|
toVector(self,
Vector=None,
**Vector_kwds)
Convert this point to n-vector (normal to the earth's
surface) components, ignoring height. |
|
|
|
|
toVector3d(self)
Convert this point to n-vector (normal to the earth's
surface) components, ignoring height. |
|
|
|
|
vincentysTo(self,
other,
radius=None,
wrap=False)
Compute the distance between this and an other point using Vincenty's spherical formula. |
|
|
|
Inherited from named._NamedBase:
__repr__,
others,
toRepr
Inherited from named._Named:
_dot_,
attrs,
classof,
copy,
toStr2
Inherited from object:
__delattr__,
__format__,
__getattribute__,
__hash__,
__new__,
__reduce__,
__reduce_ex__,
__setattr__,
__sizeof__,
__subclasshook__
|
|
|
Ecef
Get the ECEF class (EcefKarney or EcefVeness).
|
|
|
datum
(INTERNAL) Must be overloaded.
|
|
|
height
Property to get and set the height (meter).
|
|
|
isEllipsoidal
Check whether this point is ellipsoidal (bool or
None if unknown).
|
|
|
isSpherical
Check whether this point is spherical (bool or
None if unknown).
|
|
|
lam
Get the longitude (radians).
|
|
|
lat
Property to get and set the latitude (degrees90).
|
|
|
latlon
Property to get and set the lat- and longitude, optionally height.
|
|
|
latlonheight
Get the lat-, longitude and height (LatLon3Tuple(lat, lon, height)).
|
|
|
lon
Property to get and set the longitude (degrees180).
|
|
|
phi
Get the latitude (radians).
|
|
|
philam
Get the lat- and longitude (PhiLam2Tuple(phi, lam)).
|
|
|
philamheight
Get the lat-, longitude in radians and height (PhiLam3Tuple(phi, lam, height)).
|
|
|
xyz
Get the n-vector X, Y and Z components (Vector3Tuple(x, y, z))
|
|
|
xyzh
Get the n-vector X, Y, Z and H components (Vector4Tuple(x, y, z, h))
|
|
Inherited from named._Named:
classname,
classnaming,
name,
named,
named2
Inherited from object:
__class__
|