Package com.massifmaps.rastertiles
Class ElevationDecoder
java.lang.Object
com.massifmaps.rastertiles.ElevationDecoder
- Direct Known Subclasses:
MapBoxElevationDataDecoder,TerrariumElevationDataDecoder
Abstract base class for raster elevation decoders.
-
Method Summary
Modifier and TypeMethodDescriptionbooleanChecks if this object is equal to the specified object.static StringThe meta data key naming the DEM pixel encoding, "mapbox" or "terrarium".floatinthashCode()Returns the hash value of this object.static ElevationDecoderresolve(SWIGTYPE_p_std__shared_ptrT_massif__TileData_t tileData, SWIGTYPE_p_std__shared_ptrT_massif__TileDataSource_t dataSource, ElevationDecoder preferred) Resolves the decoder for one elevation tile: the tile's own "dem_encoding" first - two
sources of different encodings can sit behind one OrderedTileDataSource, and only the
tile knows which answered - then the source's, then 'preferred', then MapBox.
Both arguments may be null.
-
Method Details
-
equals
Checks if this object is equal to the specified object. -
hashCode
public int hashCode()Returns the hash value of this object. -
getMinimumHeightScale
public float getMinimumHeightScale() -
getENCODING_KEY
The meta data key naming the DEM pixel encoding, "mapbox" or "terrarium".
-