A pure Python implementation of geodesy tools for various ellipsoidal
and spherical earth models using precision trigonometric, vector-based,
elliptic and approximate methods for geodetic (lat-/longitude) and
geocentric (ECEF cartesian) coordinates.
Previously, the tests were run with Python 2.6.9 (and numpy 1.6.2),
2.7.10 (and numpy 1.8.0rc1), 2.7.13, 2.7.14, 2.7.15, 2.7.16 (and numpy
1.13.1, 1.14.0, 1.15.2 or 1.16.2), 3.5.3, 3.6.2, 3.6.3, 3.6.4, 3.6.5,
3.7.0, 3.7.2, 3.7.3, 3.7.4, 3.8 and Intel-Python 3.5.3 (and numpy 1.11.3)
on MacOS X 10.10 Yosemite, MacOS X 10.11 El Capitan, macOS 10.12
Sierra, macOS 10.13.5 High Sierra and macOS 10.14 Mojave, with Pythonista
3.1 on iOS 10.3.3, 11.0.3, 11.1.2 and 11.3 on iPad4, with Pythonista
3.2 (with geographiclib 1.49 or 1.50 and numpy 1.8.0) on iOS
11.4.1, 12.0, 12.2 and 12.3 on iPad4, iPhone6 and/or iPhone10, all in
64-bit only and with 32-bit Python 2.6.6 on Windows XP SP3 and with
32-bit Python 2.7.14 on Windows 10 Pro.
Some function and method names differ from the JavaScript version.
In such cases documentation tag JS name: shows the original
JavaScript name.
|
LazyImportError
Lazy import is not supported, disabled or failed some other way.
|
|
VincentyError
Error raised from Vincenty's direct and inverse methods for
coincident points or lack of convergence.
|
|
Epsg
EPSG
class, a _NamedInt .
|
|
EPSGError
European Petroleum Survey Group (EPSG) encode, decode or other Epsg issue.
|
|
Garef
Garef class, a _NamedStr .
|
|
GARSError
Global Area Reference System (GARS) encode, decode or other Garef
issue.
|
|
Geohash
Geohash class, a _NamedStr.
|
|
GeohashError
Geohash encode, decode or other Geohash issue.
|
|
CrossError
Error raised for zero or near-zero vectorial cross products,
occurring for coincident or colinear points, paths or bearings.
|
|
VectorError
Vector3d or *Nvector issue.
|
|
Georef
Georef class, a _NamedStr .
|
|
WGRSError
World Geographic Reference System (WGRS) encode, decode or other Georef
issue.
|
|
CSSError
Cassini-Soldner (CSS) conversion or other Css issue.
|
|
CassiniSoldner
A Python version of Karney's C++ class CassiniSoldner.
|
|
Conic
Lambert conformal conic projection (1- or 2-SP).
|
|
Css
Cassini-Soldner East-/Northing location.
|
|
Datum
Ellipsoid and transform parameters for an earth model.
|
|
ETMError
Exact Transverse Mercator (ETM) parse, projection or other Etm issue.
|
|
EcefCartesian
Conversion between geodetic (lat, lon, height) and
local cartesian (x, y, z) coordinates with a local
cartesian origin at (lat0, lon0, height0) transcibed
from on Karney's C++ class LocalCartesian.
|
|
EcefError
An ECEF issue.
|
|
EcefKarney
Conversion between geodetic and geocentric, aka Earth-Centered,
Earth-Fixed (ECEF) coordinates based on Karney's Geocentric methods.
|
|
EcefMatrix
A rotation matrix.
|
|
EcefVeness
Conversion between geodetic and geocentric, aka Earth-Centered,
Earth-Fixed (ECEF) coordinates transcribed from Chris
Veness' JavaScript classes LatLonEllipsoidal, Cartesian.
|
|
EcefYou
Conversion between geodetic and geocentric, aka Earth-Centered,
Earth-Fixed (ECEF) coordinates using Rey-Jer You's transformations.
|
|
Ellipsoid
Ellipsoid with major and minor radius, semi-axis, (inverse)
flattening and other pre-computed, frequently used attributes.
|
|
Elliptic
Elliptic integrals and functions.
|
|
EllipticError
Elliptic integral, function, convergence or other Elliptic issue.
|
|
Etm
Exact Transverse Mercator (ETM) coordinate, a sub-class of Utm, a
Universal Transverse Mercator (UTM) coordinate using the ExactTransverseMercator projection for highest
accuracy.
|
|
ExactTransverseMercator
A Python version of Karney's TransverseMercatorExact C++ class, a numerically
exact transverse mercator projection, referred to as
TMExact here.
|
|
Fdot
Precision dot product.
|
|
Fhorner
Precision polynomial evaluation using the Horner form.
|
|
Fpolynomial
Precision polynomial evaluation.
|
|
Frechet
Frechet base class, requires method Frechet.distance to be overloaded.
|
|
FrechetDegrees
Frechet base class for distances in
degrees from LatLon points in
degrees .
|
|
FrechetEquirectangular
Compute the Frechet distance based on the
equirectangular distance (in radians squared) like
function equirectangular_.
|
|
FrechetError
Fréchet issue.
|
|
FrechetEuclidean
Compute the Frechet distance based on the
Euclidean distance (in radians) from function euclidean_.
|
|
FrechetHaversine
Compute the Frechet distance based on the
angular Haversine distance (in radians) from
function haversine_.
|
|
FrechetRadians
Frechet base class for distances in
radians from LatLon points converted from
degrees to radians .
|
|
FrechetVincentys
Compute the Frechet distance based on the
angular Vincenty distance (in radians) from
function vincentys_.
|
|
Fsum
Precision summation similar to standard Python function
math.fsum .
|
|
GeoidError
Geoid interpolator Geoid... or interpolation issue.
|
|
GeoidG2012B
Geoid height interpolator for GEOID12B Model grids CONUS, Alaska, Hawaii, Guam and Northern Mariana Islands, Puerto Rico and U.S. Virgin Islands and American Samoa based on SciPy RectBivariateSpline or interp2d interpolation.
|
|
GeoidKarney
Geoid height interpolator for Charles Karney's GeographicLib Earth Gravitational Model (EGM)
geoid egm*.pgm datasets using bilinear or cubic interpolation and caching in pure Python transcribed from Karney's
C++ class Geoid.
|
|
GeoidPGM
Geoid height interpolator for Charles Karney's GeographicLib Earth Gravitational Model (EGM)
geoid egm*.pgm datasets but based on SciPy
RectBivariateSpline or interp2d interpolation.
|
|
Hausdorff
Hausdorff base class, requires method Hausdorff.distance to be overloaded.
|
|
HausdorffDegrees
Hausdorff base class for distances in
degrees from LatLon points in
degrees .
|
|
HausdorffEquirectangular
Compute the Hausdorff distance based on the
equirectangular distance (in radians squared) like
function equirectangular_.
|
|
HausdorffError
Hausdorff issue.
|
|
HausdorffEuclidean
Compute the Hausdorff distance based on the
Euclidean distance (in radians) from function euclidean_.
|
|
HausdorffHaversine
Compute the Hausdorff distance based on the
angular Haversine distance (in radians) from
function haversine_.
|
|
HausdorffKarney
Compute the Hausdorff distance based on the
angular distance (in degrees) from Charles Karney's
GeographicLib Geodesic Inverse method.
|
|
HausdorffRadians
Hausdorff base class for distances in
radians from LatLon points converted from
degrees to radians .
|
|
HausdorffVincentys
Compute the Hausdorff distance based on the
angular Vincenty distance (in radians) from
function vincentys_.
|
|
HeightCubic
Height interpolator based on SciPy interp2d kind='cubic' .
|
|
HeightError
Height interpolator Height... or interpolation issue.
|
|
HeightIDW
DEPRECATED, use class HeightIDWeuclidean.
|
|
HeightIDW2
DEPRECATED, use class HeightIDWequirectangular.
|
|
HeightIDW3
DEPRECATED, use class HeightIDWhaversine.
|
|
HeightIDWequirectangular
Height interpolator using Inverse Distance Weighting (IDW) and the
equirectangular distance (in radians squared) like
function equirectangular_.
|
|
HeightIDWeuclidean
Height interpolator using Inverse Distance Weighting (IDW) and the
Euclidean distance from function euclidean_.
|
|
HeightIDWhaversine
Height interpolator using Inverse Distance Weighting (IDW) and the
angular Haversine distance from function haversine_.
|
|
HeightIDWkarney
Height interpolator using Inverse Distance Weighting (IDW) and the
angular distance from Charles F. F. Karney's GeographicLib Geodesic Inverse method.
|
|
HeightIDWvincentys
Height interpolator using Inverse Distance Weighting (IDW) and the
angular Vincenty distance from function vincentys_.
|
|
HeightLSQBiSpline
Height interpolator using SciPy LSQSphereBivariateSpline.
|
|
HeightLinear
Height interpolator based on SciPy interp2d kind='linear .
|
|
HeightSmoothBiSpline
Height interpolator using SciPy SmoothSphereBivariateSpline.
|
|
LCCError
Lambert Conformal Conic LCC or other Lcc issue.
|
|
LatLon2psxy
Wrapper for LatLon points as "on-the-fly"
pseudo-xy coordinates.
|
|
LatLon_
Low-overhead LatLon class for Numpy2LatLon and Tuple2LatLon.
|
|
Lcc
Lambert conformal conic East-/Northing location.
|
|
LimitError
Error raised for lat- or longitudinal deltas exceeding the
limit in functions equirectangular and equirectangular_.
|
|
MGRSError
Military Grid Reference System (MGRS) parse or other Mgrs issue.
|
|
Mgrs
Military Grid Reference System (MGRS/NATO) references, with method
to convert to UTM coordinates.
|
|
Numpy2LatLon
Wrapper for NumPy arrays as "on-the-fly"
LatLon points.
|
|
OSGRError
Ordinance Survey Grid References (OSGR) parse or other Osgr issue.
|
|
Osgr
Ordinance Survey Grid References (OSGR) coordinate.
|
|
PGMError
Issue parsing or cropping an egm*.pgm geoid dataset.
|
|
RangeError
Error raised for lat- or longitude values outside the
clip , clipLat ,
clipLon or limit range in
function clipDMS, parse3llh, parseDMS
or parseDMS2.
|
|
RefFrame
Terrestrial Reference Frame (TRF) parameters.
|
|
RefFrameError
DEPRECATED, use class TRFError.
|
|
SciPyError
Error raised for SciPy errors.
|
|
SciPyWarning
Exception thrown for SciPy warnings.
|
|
TRFError
Terrestrial Reference Frame (TRF) or RefFrame
conversion issue.
|
|
Transform
Helmert transformation.
|
|
Tuple2LatLon
Wrapper for tuple sequences as "on-the-fly"
LatLon points.
|
|
UPSError
Universal Polar Stereographic (UPS) parse or other Ups issue.
|
|
UTMError
Universal Transverse Mercator (UTM parse or other Utm issue.
|
|
UTMUPSError
Universal Transverse Mercator/Universal Polar Stereographic
(UTM/UPS) parse, validate or other issue.
|
|
Ups
Universal Polar Stereographic (UPS) coordinate.
|
|
Utm
Universal Transverse Mercator (UTM) coordinate.
|
|
WebMercatorError
Web Mercator (WM) parse or Wm
issue.
|
|
Wm
Web Mercator (WM) coordinate.
|
|
crosserrors(raiser=None)
Get/set raising of vectorial cross product errors. |
|
|
|
UtmUps(zone,
hemipole,
easting,
northing,
band='
' ,
datum=Datum(name='WGS84', ellipsoid=Ellipsoids.WGS84, transform=Tran... ,
falsed=True,
name='
' )
Class-like function to create a UTM/UPS coordinate. |
|
|
|
acos1(x)
Return math.acos(max(-1, min(1, x))). |
|
|
|
anStr(name,
OKd=' ._- ' ,
sub=' _ ' )
Make a valid name of alphanumeric and OKd characters. |
|
|
|
antipode(lat,
lon)
Return the antipode, the point diametrically opposite to a given
point. |
|
|
|
areaOf(points,
adjust=True,
radius=6371008.77141,
wrap=True)
Approximate the area of a polygon. |
|
|
|
areaof(points,
adjust=True,
radius=_R_M,
wrap=True)
DEPRECATED, use function areaOf. |
|
|
|
bearing(lat1,
lon1,
lat2,
lon2,
**options)
Compute the initial or final bearing (forward or reverse azimuth)
between a (spherical) start and end point. |
|
|
|
bearingDMS(bearing,
form=' d ' ,
prec=None,
sep='
' )
Convert bearing to a string. |
|
|
|
bearing_(a1,
b1,
a2,
b2,
final=False,
wrap=False)
Compute the initial or final bearing (forward or reverse azimuth)
between a (spherical) start and end point. |
|
|
|
bounds(points,
wrap=True,
LatLon=None)
DEPRECATED, use function boundsOf. |
|
|
|
boundsOf(points,
wrap=True,
LatLon=None)
Determine the lower-left SW and upper-right NE corners of a path or
polygon. |
|
|
|
cbrt(x)
Compute the cubic root x**(1/3). |
|
|
|
cbrt2(x)
Compute the cubic root squared x**(2/3). |
|
|
|
centroidOf(points,
wrap=True,
LatLon=None)
Determine the centroid of a polygon. |
|
|
|
classname(inst,
prefixed=None)
Return the instance' class name optionally prefixed with the module
name. |
|
|
|
classnaming(prefixed=None)
Get/set the default naming for [module.]class names. |
|
|
|
clipCS3(points,
lowerleft,
upperright,
closed=False,
inull=False)
Clip a path against a rectangular clip box using the Cohen-Sutherland algorithm. |
|
|
|
clipDMS(deg,
limit)
Clip a lat- or longitude to the given range. |
|
|
|
clipSH(points,
corners,
inull=False,
closed=False)
Clip a polygon against a clip region or box using the Sutherland-Hodgman algorithm. |
|
|
|
clipSH3(points,
corners,
inull=False,
closed=False)
Clip a polygon against a clip region or box using the Sutherland-Hodgman algorithm. |
|
|
|
clipStr(bstr,
limit=50,
white='
' )
Clip a string to the given length limit. |
|
|
|
compassAngle(lat1,
lon1,
lat2,
lon2,
adjust=True,
wrap=False)
Return the angle from North for the direction vector (lon2 - lon1, lat2 - lat1) between two points. |
|
|
|
compassDMS(bearing,
form=' d ' ,
prec=None,
sep='
' )
Convert bearing to a string suffixed with compass point. |
|
|
|
compassPoint(bearing,
prec=3)
Convert bearing to a compass point. |
|
|
|
date2epoch(year,
month,
day)
Return the reference frame epoch for a calendar day. |
|
|
|
|
|
degDMS(deg,
prec=6,
s_D=' ° ' ,
s_M=' ′ ' ,
s_S=' ″ ' ,
neg=' - ' ,
pos='
' )
Convert degrees to a string in degrees, minutes or seconds. |
|
|
|
degrees(x)
Convert angle x from radians to degrees. |
|
|
|
degrees180(rad)
Convert radians to degrees and wrap [-180..+180]. |
|
|
|
degrees2m(deg,
radius=6371008.77141,
lat=0)
Convert angle to distance along the equator or along a parallel at an
other latitude. |
|
|
|
degrees360(rad)
Convert radians to degrees and wrap [0..+360). |
|
|
|
degrees90(rad)
Convert radians to degrees and wrap [-270..+90]. |
|
|
|
|
|
elevation2(lat,
lon,
timeout=2.0)
Get the geoid elevation at an NAD83 to
NAVD88 location. |
|
|
|
enStr2(easting,
northing,
prec,
*extras)
Return easting, northing string representations. |
|
|
|
|
|
|
|
equirectangular3(lat1,
lon1,
lat2,
lon2,
**options)
DEPRECATED, use function equirectangular_ . |
|
|
|
|
|
euclidean(lat1,
lon1,
lat2,
lon2,
radius=6371008.77141,
adjust=True,
wrap=False)
Approximate the Euclidian distance between two
(spherical) points. |
|
|
|
euclidean_(a2,
a1,
b21,
adjust=True)
Approximate the angular Euclidean distance
between two (spherical) points. |
|
|
|
fStr(floats,
prec=6,
sep=' , ' ,
fmt=' %.*f ' ,
ints=False)
Convert floats to string, optionally with trailing zero decimals
stripped. |
|
|
|
fStrzs(fstr)
Strip trailing zero decimals from a float string. |
|
|
|
false2f(value,
name=' value ' ,
false=True,
Error=<type 'exceptions.ValueError'>)
Convert a false east-/northing to non-negative float. |
|
|
|
favg(v1,
v2,
f=0.5)
Return the weighted average of two values. |
|
|
|
fdot(a,
*b)
Return the precision dot product sum(a[i] * b[i] for
i=0..len(a)). |
|
|
|
fdot3(a,
b,
c,
start=0)
Return the precision dot product start + sum(a[i] *
b[i] * c[i] for i=0..len(a)). |
|
|
|
fhorner(x,
*cs)
Evaluate the polynomial sum(cs[i] * x**i for
i=0..len(cs)) using the Horner form. |
|
|
|
|
|
fmean(xs)
Compute the accurate mean sum(xs[i] for i=0..len(xs))
/ len(xs). |
|
|
|
fpolynomial(x,
*cs)
Evaluate the polynomial sum(cs[i] * x**i for
i=0..len(cs)). |
|
|
|
fpowers(x,
n,
alts=0)
Return a series of powers [x**i for i=1..n]. |
|
|
|
fprod(iterable,
start=1.0)
Iterable product, like math.prod or
numpy.prod . |
|
|
|
fractional(points,
fi,
LatLon=None)
Return the point at a given fractional index. |
|
|
|
frange(start,
number,
step=1)
Generate a range of float s. |
|
|
|
frechet_(points1,
points2,
distance=None,
units='
' )
Compute the discrete Fréchet distance between two paths given as sets of
points. |
|
|
value
|
freduce(function,
sequence,
initial=...)
Apply a function of two arguments cumulatively to the items of a
sequence, from left to right, so as to reduce the sequence to a
single value. |
|
|
|
fsum(iterable)
Return an accurate floating point sum of values in the iterable. |
|
|
|
fsum_(*xs)
Precision summation of the positional argument vulues. |
|
|
|
ft2m(feet,
usurvey=False)
Convert International or US Survey feet to meter. |
|
|
|
geoidHeight2(lat,
lon,
model=0,
timeout=2.0)
Get the NAVD88 geoid height at an NAD83
location. |
|
|
|
halfs2(str2)
Split a string in 2 halfs. |
|
|
|
|
|
haversine(lat1,
lon1,
lat2,
lon2,
radius=6371008.77141,
wrap=False)
Compute the distance between two (spherical) points using the Haversine formula. |
|
|
|
haversine_(a2,
a1,
b21)
Compute the angular distance between two (spherical) points
using the Haversine formula. |
|
|
|
heightOf(angle,
distance,
radius=6371008.77141)
Determine the height above the (spherical) earth after traveling
along a straight line at a given tilt. |
|
|
|
horizon(height,
radius=6371008.77141,
refraction=False)
Determine the distance to the horizon from a given altitude above the
(spherical) earth. |
|
|
|
hypot(x,
y)
Return the Euclidean distance, sqrt(x*x + y*y). |
|
|
|
hypot1(x)
Compute the norm sqrt(1 + x**2). |
|
|
|
hypot3(x,
y,
z)
DEPRECATED, use function hypot_. |
|
|
|
hypot_(*xs)
Compute the norm sqrt(sum(xs[i]**2)) for
i=0..len(xs). |
|
|
|
inStr(inst,
*args,
**kwds)
Return the string representation of an instance. |
|
|
|
isNumpy2(obj)
Check for an Numpy2LatLon points wrapper. |
|
|
|
isPoints2(obj)
Check for an LatLon2psxy points wrapper. |
|
|
|
isTuple2(obj)
Check for an Tuple2LatLon points wrapper. |
|
|
|
isantipode(lat1,
lon1,
lat2,
lon2,
eps=2.22044604925e-16)
Check whether two points are antipodal, on diametrically opposite
sides of the earth. |
|
|
|
isclockwise(points,
adjust=False,
wrap=True)
Determine the direction of a path or polygon. |
|
|
|
isconvex(points,
adjust=False,
wrap=True)
Determine whether a polygon is convex. |
|
|
|
isconvex_(points,
adjust=False,
wrap=True)
Determine whether a polygon is convex and clockwise. |
|
|
|
isenclosedBy(point,
points,
wrap=False)
Determine whether a point is enclosed by a polygon. |
|
|
|
isenclosedby(point,
points,
wrap=False)
DEPRECATED, use function isenclosedBy. |
|
|
|
isfinite(obj)
Check for Inf and NaN values. |
|
|
bool
|
isinf(x)
Check if float x is infinite (positive or negative). |
|
|
|
isint(obj,
both=False)
Check for integer type or integer value. |
|
|
bool
|
isnan(x)
Check if float x is not a number (NaN). |
|
|
|
isneg0(obj)
Check for NEG0, negative 0.0. |
|
|
|
ispolar(points,
wrap=False)
Check whether a polygon encloses a pole. |
|
|
|
|
|
issequence(obj,
*excluded)
Check for sequence types. |
|
|
|
issubclassof(sub,
sup)
Check whether a class is a subclass of a super class. |
|
|
|
iterNumpy2(obj)
Iterate over Numpy2 wrappers or other sequences exceeding the
threshold. |
|
|
|
|
|
latDMS(deg,
form=' dms ' ,
prec=2,
sep='
' )
Convert latitude to a string, optionally suffixed with N or S. |
|
|
|
len2(seq)
Make built-in function len work for
generators, iterators, etc. |
|
|
|
limiterrors(raiser=None)
Get/set the raising of limit errors. |
|
|
|
lonDMS(deg,
form=' dms ' ,
prec=2,
sep='
' )
Convert longitude to a string, optionally suffixed with E or W. |
|
|
|
m2NM(meter)
Convert meter to nautical miles (NM). |
|
|
|
m2SM(meter)
Convert meter to statute miles (SM). |
|
|
|
m2degrees(meter,
radius=6371008.77141)
Convert distance to angle along equator. |
|
|
|
m2ft(meter,
usurvey=False)
Convert meter to International or US Survey feet
(ft ). |
|
|
|
m2km(meter)
Convert meter to kilo meter (km). |
|
|
|
map1(func,
*xs)
Apply each argument to a single-argument function and return a tuple
of results. |
|
|
|
map2(func,
*xs)
Apply arguments to a function and return a tuple of results. |
|
|
|
nameof(inst)
Get the name of an instance. |
|
|
|
|
|
|
|
nearestOn5(point,
points,
closed=False,
wrap=False,
LatLon=None,
**options)
Locate the point on a path or polygon closest to an other point. |
|
|
|
normDMS(strDMS,
norm='
' )
Normalize all degree ˚, minute ' and second " symbols in a
string to the default symbols °, ′ and ″. |
|
|
|
parse3llh(strll,
height=0,
sep=' , ' ,
clipLat=90,
clipLon=180)
Parse a string representing lat-, longitude and height point. |
|
|
|
parseDMS(strDMS,
suffix=' NSEW ' ,
sep='
' ,
clip=0)
Parse a string representing deg°min′sec″ to degrees. |
|
|
|
parseDMS2(strLat,
strLon,
sep='
' ,
clipLat=90,
clipLon=180)
Parse lat- and longitude representions. |
|
|
|
parseETM5(strUTM,
datum=Datum(name='WGS84', ellipsoid=Ellipsoids.WGS84, transform=Tran... ,
Etm=<class 'pygeodesy.etm.Etm'>,
falsed=True,
name='
' )
Parse a string representing a UTM coordinate, consisting of
"zone[band] hemisphere easting northing" . |
|
|
|
parseMGRS(strMGRS,
datum=Datum(name='WGS84', ellipsoid=Ellipsoids.WGS84, transform=Tran... ,
Mgrs=<class 'pygeodesy.mgrs.Mgrs'>,
name='
' )
Parse a string representing a MGRS grid reference, consisting of
zoneBand, grid, easting and northing. |
|
|
|
parseOSGR(strOSGR,
Osgr=<class 'pygeodesy.osgr.Osgr'>,
name='
' )
Parse an OSGR coordinate string to an Osgr instance. |
|
|
|
parseUPS5(strUPS,
datum=Datum(name='WGS84', ellipsoid=Ellipsoids.WGS84, transform=Tran... ,
Ups=<class 'pygeodesy.ups.Ups'>,
falsed=True,
name='
' )
Parse a string representing a UPS coordinate, consisting of
"[zone][band] pole easting northing" where
zone is pseudo zone
"00"|"0"|"" and
band is 'A'|'B'|'Y'|'Z'|'' . |
|
|
|
|
|
parseUTM5(strUTM,
datum=Datum(name='WGS84', ellipsoid=Ellipsoids.WGS84, transform=Tran... ,
Utm=<class 'pygeodesy.utm.Utm'>,
falsed=True,
name='
' )
Parse a string representing a UTM coordinate, consisting of
"zone[band] hemisphere easting northing" . |
|
|
|
parseUTMUPS5(strUTMUPS,
datum=Datum(name='WGS84', ellipsoid=Ellipsoids.WGS84, transform=Tran... ,
Utm=<class 'pygeodesy.utm.Utm'>,
Ups=<class 'pygeodesy.ups.Ups'>,
name='
' )
Parse a string representing a UTM or UPS coordinate, consisting of
"zone[band] hemisphere/pole easting northing" . |
|
|
|
parseWM(strWM,
radius=6378137.0,
Wm=<class 'pygeodesy.webmercator.Wm'>,
name='
' )
Parse a string representing a WM coordinate, consisting of easting,
northing and an optional radius. |
|
|
|
perimeterOf(points,
closed=False,
adjust=True,
radius=6371008.77141,
wrap=True)
Approximate the perimeter of a path or polygon. |
|
|
|
perimeterof(points,
closed=False,
adjust=True,
radius=_R_M,
wrap=True)
DEPRECATED, use function perimeterOf. |
|
|
|
points2(points,
closed=True,
base=None,
Error=<type 'exceptions.ValueError'>)
Check a path or polygon represented by points. |
|
|
|
polygon(points,
closed=True,
base=None)
DEPRECATED, use function points2. |
|
|
|
precision(form,
prec=None)
Set the default precison for a given F_ form. |
|
|
|
|
|
radians(x)
Convert angle x from degrees to radians. |
|
|
|
radiansPI(deg)
Convert and wrap degrees to radians [-PI..+PI]. |
|
|
|
radiansPI2(deg)
Convert and wrap degrees to radians [0..+2PI). |
|
|
|
radiansPI_2(deg)
Convert and wrap degrees to radians [-3PI/2..+PI/2]. |
|
|
|
|
|
rangerrors(raiser=None)
Gert/set raising of range errors. |
|
|
|
scalar(value,
low=2.22044604925e-16,
high=1.0,
name=' scalar ' ,
Error=<type 'exceptions.ValueError'>)
Validate a scalar. |
|
|
|
simplify1(points,
distance,
radius=6371008.77141,
indices=False,
**options)
Basic simplification of a path of LatLon points. |
|
|
|
simplify2(points,
pipe,
radius=_R_M,
shortest=False,
indices=False,
**options)
DEPRECATED, use function simplifyRW. |
|
|
|
simplifyRDP(points,
distance,
radius=6371008.77141,
shortest=False,
indices=False,
**options)
Ramer-Douglas-Peucker (RDP) simplification of a path of
LatLon points. |
|
|
|
simplifyRDPm(points,
distance,
radius=6371008.77141,
shortest=False,
indices=False,
**options)
Modified Ramer-Douglas-Peucker (RDPm) simplification of a path of
LatLon points. |
|
|
|
simplifyRW(points,
pipe,
radius=6371008.77141,
shortest=False,
indices=False,
**options)
Reumann-Witkam (RW) simplification of a path of LatLon
points. |
|
|
|
simplifyVW(points,
area,
radius=6371008.77141,
attr=None,
indices=False,
**options)
Visvalingam-Whyatt (VW) simplification of a path of
LatLon points. |
|
|
|
simplifyVWm(points,
area,
radius=6371008.77141,
attr=None,
indices=False,
**options)
Modified Visvalingam-Whyatt (VWm) simplification of a path of
LatLon points. |
|
|
|
sincos2(*rad)
Return the sine and cosine of angle(s). |
|
|
|
sincos2d(*deg)
Return the sine and cosine of an angle. |
|
|
|
splice(iterable,
n=2,
fill=object())
Split an iterable into n slices. |
|
|
|
sqrt3(x)
Compute the square root cubed sqrt(x)**3 or sqrt(x**3). |
|
|
|
tanPI_2_2(rad)
Compute the tangent of half angle, 90 degrees rotated. |
|
|
|
tan_2(rad)
Compute the tangent of half angle. |
|
|
|
toCss(latlon,
cs0=None,
height=None,
Css=<class 'pygeodesy.css.Css'>,
name='
' )
Convert an (ellipsoidal) geodetic point to a Cassini-Soldner
location. |
|
|
|
toDMS(deg,
form=' dms ' ,
prec=2,
sep='
' ,
ddd=2,
neg=' - ' ,
pos='
' )
Convert signed degrees to string, without suffix. |
|
|
|
toEtm8(latlon,
lon=None,
datum=None,
Etm=<class 'pygeodesy.etm.Etm'>,
falsed=True,
name='
' ,
zone=None,
**cmoff)
Convert a lat-/longitude point to an ETM coordinate. |
|
|
|
toLcc(latlon,
conic=Conic(name='WRF_Lb', lat0=40, lon0=-97, par1=33, par2=45, E0=0... ,
height=None,
Lcc=<class 'pygeodesy.lcc.Lcc'>,
name='
' )
Convert an (ellipsoidal) geodetic point to a Lambert location. |
|
|
|
toMgrs(utm,
Mgrs=<class 'pygeodesy.mgrs.Mgrs'>,
name='
' )
Convert a UTM coordinate to an MGRS grid reference. |
|
|
|
toOsgr(latlon,
lon=None,
datum=Datum(name='WGS84', ellipsoid=Ellipsoids.WGS84, transform=Tran... ,
Osgr=<class 'pygeodesy.osgr.Osgr'>,
name='
' )
Convert a lat-/longitude point to an OSGR coordinate. |
|
|
|
toUps8(latlon,
lon=None,
datum=None,
Ups=<class 'pygeodesy.ups.Ups'>,
pole='
' ,
falsed=True,
strict=True,
name='
' )
Convert a lat-/longitude point to a UPS coordinate. |
|
|
|
toUtm(latlon,
lon=None,
datum=None,
Utm=_R_M,
cmoff=True,
name='
' )
DEPRECATED, use function toUtm8. |
|
|
|
toUtm8(latlon,
lon=None,
datum=None,
Utm=<class 'pygeodesy.utm.Utm'>,
falsed=True,
name='
' ,
zone=None,
**cmoff)
Convert a lat-/longitude point to a UTM coordinate. |
|
|
|
toUtmUps8(latlon,
lon=None,
datum=None,
falsed=True,
Utm=<class 'pygeodesy.utm.Utm'>,
Ups=<class 'pygeodesy.ups.Ups'>,
pole='
' ,
name='
' ,
**cmoff)
Convert a lat-/longitude point to a UTM or UPS coordinate. |
|
|
|
toWm(latlon,
lon=None,
radius=6378137.0,
Wm=<class 'pygeodesy.webmercator.Wm'>,
name='
' )
Convert a lat-/longitude point to a WM coordinate. |
|
|
|
unStr(name,
*args,
**kwds)
Return the string representation of an invokation. |
|
|
|
unroll180(lon1,
lon2,
wrap=True)
Unroll longitudinal delta and wrap longitude in degrees. |
|
|
|
unrollPI(rad1,
rad2,
wrap=True)
Unroll longitudinal delta and wrap longitude in radians. |
|
|
|
upsZoneBand5(lat,
lon,
strict=True)
Return the UTM/UPS zone number, (polar) Band letter, pole and clipped
lat- and longitude for a given location. |
|
|
|
|
|
utmZoneBand5(lat,
lon,
cmoff=False)
Return the UTM zone number, Band letter, hemisphere and (clipped)
lat- and longitude for a given location. |
|
|
|
utmupsValidate(coord,
falsed=False,
MGRS=False)
Check a UTM or UPS coordinate. |
|
|
|
|
|
utmupsZoneBand5(lat,
lon,
cmoff=False)
Return the UTM/UPS zone number, Band letter, hemisphere/pole and
clipped lat- and longitude for a given location. |
|
|
|
vincentys(lat1,
lon1,
lat2,
lon2,
radius=6371008.77141,
wrap=False)
Compute the distance between two (spherical) points using Vincenty's spherical formula. |
|
|
|
vincentys_(a2,
a1,
b21)
Compute the angular distance between two (spherical) points
using Vincenty's spherical formula. |
|
|
|
wrap180(deg)
Wrap degrees to [-180..+180]. |
|
|
|
wrap360(deg)
Wrap degrees to [0..+360). |
|
|
|
wrap90(deg)
Wrap degrees to [-270..+90]. |
|
|
|
wrapPI(rad)
Wrap radians to [-PI..+PI]. |
|
|
|
wrapPI2(rad)
Wrap radians to [0..+2PI). |
|
|
|
wrapPI_2(rad)
Wrap radians to [-3PI/2..+PI/2]. |
|
|