Functions to parse and format bearing, compass, lat- and longitudes in
various forms of degrees, minutes and seconds.
|
bearingDMS(bearing,
form=' d ' ,
prec=None,
sep='
' )
Convert bearing to a string. |
|
|
|
clipDegrees(deg,
limit)
Clip a lat- or longitude to the given range. |
|
|
|
clipRadians(rad,
limit)
Clip a lat- or longitude to the given range. |
|
|
|
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. |
|
|
|
degDMS(deg,
prec=6,
s_D=' ° ' ,
s_M=' \xe2\x80\xb2 ' ,
s_S=' ″ ' ,
neg=' - ' ,
pos='
' )
Convert degrees to a string in degrees, minutes or
seconds. |
|
|
|
latDMS(deg,
form=' dms ' ,
prec=2,
sep='
' )
Convert latitude to a string, optionally suffixed with N or S. |
|
|
|
latlonDMS(lls,
form=' dms ' ,
prec=None,
sep=None)
Convert one or more LatLon instances to strings. |
|
|
|
lonDMS(deg,
form=' dms ' ,
prec=2,
sep='
' )
Convert longitude to a string, optionally suffixed with E or W. |
|
|
|
normDMS(strDMS,
norm='
' )
Normalize all degree ˚, minute ' and second " symbols in a
string to the default symbols %s, %s and %s. |
|
|
|
parseDDDMMSS(strDDDMMSS,
suffix=' NSEW ' ,
sep='
' ,
clip=0)
Parse a lat- or longitude represention form [D]DDMMSS in degrees. |
|
|
|
parseDMS(strDMS,
suffix=' NSEW ' ,
sep='
' ,
clip=0)
Parse a lat- or longitude representation "lat,
lon" in degrees . |
|
|
|
parseDMS2(strLat,
strLon,
sep='
' ,
clipLat=90,
clipLon=180)
Parse a lat- and a longitude representions in degrees . |
|
|
|
parse3llh(strllh,
height=0,
sep=' , ' ,
clipLat=90,
clipLon=180)
Parse a string "lat lon [h]" representing
lat-, longitude in degrees and optional height in
meter . |
|
|
|
parseRad(strRad,
suffix=' NSEW ' ,
clip=0)
Parse a string representing angle in radians . |
|
|
|
precision(form,
prec=None)
Set the default precison for a given F_ form. |
|
|
|
toDMS(deg,
form=' dms ' ,
prec=2,
sep='
' ,
ddd=2,
neg=' - ' ,
pos='
' )
Convert signed degrees to string, without suffix. |
|
|