encode (lat,
lon,
precision=3,
height=None,
radius=None)
|
|
Encode a lat-/longitude as a georef of the given
precision.
- Arguments:
lat - Latitude (degrees ).
lon - Longitude (degrees ).
precision - Optional, the desired georef resolution and length
(int 0..11).
height - Optional, height in meter , see Designation of area.
radius - Optional, radius in meter , see Designation of area.
- Returns:
- The
georef (str ).
- Raises:
Note:
The precision value differs from
Karney's Georef. The georef length is 2 * (precision + 1) and the georef
resolution is 15° for precision 0:,
1° for 1, 1′ for 2, 0.1′ for 3, 0.01′
for 4, ... up to 10**(2 - precision)′.
|