enctile

pylayers.gis.ezone.enctile(lon, lat)[source]

encode tile prefix from (lon,lat)

lonfloat

longitude (degrees)

latfloat

latitude (degrees)

prefixstring

srtm prefix filename

>>> from pylayers.gis.gisutil import *
>>> assert enctile(-1.5,48.5)=='N48W002'
>>> assert enctile(0.5,48.5)=='N48E000'