MSFElevationDecoder
Objective-C
@interface MSFElevationDecoder : NSObject {
void *swigCPtr;
BOOL swigCMemOwn;
}
Swift
class MSFElevationDecoder : NSObject
Abstract base class for raster elevation decoders.
-
Checks if this object is equal to the specified object.
Declaration
Objective-C
- (BOOL)isEqual:(id)object;Swift
func isEqual(_ object: Any!) -> BoolParameters
objectThe reference object.
Return Value
True when objects are equal, false otherwise.
-
Returns the hash value of this object.
Declaration
Objective-C
- (NSUInteger)hash;Swift
func hash() -> UIntReturn Value
The hash value of this object.
-
Undocumented
Declaration
Objective-C
-(float)getMinimumHeightScale;Swift
func getMinimumHeightScale() -> Float -
The meta data key naming the DEM pixel encoding, “mapbox” or “terrarium”.
Declaration
Objective-C
+ (NSString *)getENCODING_KEY;Swift
class func getENCODING_KEY() -> String! -
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. The returned decoders are shared singletons.
Declaration
Objective-C
+ (MSFElevationDecoder *) resolve:(SWIGTYPE_p_std__shared_ptrT_massif__TileData_t *)tileData dataSource: (SWIGTYPE_p_std__shared_ptrT_massif__TileDataSource_t *)dataSource preferred:(MSFElevationDecoder *)preferred;Swift
class func resolve(_ tileData: SWIGTYPE_p_std__shared_ptrT_massif__TileData_t!, dataSource: SWIGTYPE_p_std__shared_ptrT_massif__TileDataSource_t!, preferred: MSFElevationDecoder!) -> MSFElevationDecoder!Parameters
tileDataThe loaded elevation tile, or null.
dataSourceThe elevation data source, or null.
preferredThe decoder the caller was configured with, or null.
Return Value
The decoder to decode this tile with. Never null.
-
Undocumented
Declaration
Objective-C
-(void)dealloc;Swift
func dealloc()