SRTMTile¶
-
class
pylayers.gis.srtm.
SRTMTile
(f, lat, lon)[source]¶ Bases:
object
Base class for all SRTM tiles. Each SRTM tile is size x size pixels big and contains data for the area from (lat, lon) to (lat+1, lon+1) inclusive. This means there is a 1 pixel overlap between tiles. This makes it easier for as to interpolate the value, because for every point we only have to look at a single tile.
Methods Summary
calcOffset
(x, y)Calculate offset into data array.
getAltitudeFromLatLon
(lat, lon)Get the altitude of a lat lon pair, using the four neighbouring pixels for interpolation.
getPixelValue
(x, y)Get the value of a pixel from the data, handling voids in the SRTM data.
Methods Documentation
-
calcOffset
(x, y)[source]¶ Calculate offset into data array. Only uses to test correctness of the formula.
-