![]() |
MapLink Pro 11.1.1.0.
Envitia MapLink Pro: The Ultimate Mapping Application Toolkit
|
Specialist data layer for the display of CADRG & CIB data. The data layer allows CADRG/CIB data to be directly loaded into a data layer for display.
When displaying the CADRG/CIB data, the layer uses the following strategy to determine which coordinate system to use:
This allows the CADRG/CIB data to be displayed with or without having to load a map and place it on the drawing surface.
Only rectangular coordinate systems can be used with the CADRG/CIB Data-layer as the raster data can not be reprojected at runtime.
Coordinate systems where the dateline has been shifted are supported. Tiles which cross the left and right boundaries will be drawn, however querying the latitude and longitude of the data will be dependent upon the coordinate system (i.e. result may not be valid).
If you attach a non rectangular coordinate system no error will be raised and an attempt will be made to display the tiles.
The layer no-longer attempts to use the Drawing Surface coordinate system as the CADRG/CIB data needs to be re-loaded if the coordinate system differs from the default.
The user is now expected to set the Coordinate System to be used if the default CADRG/CIB coordinate system is not to be used.
This can be achieved by the following code:
The following rendition styles are defined:
Public Member Functions | |
TSLCADRGDataLayer () | |
bool | addFrame (const char *filename, TSLCADRGScaleFactorEnum scale=TSLCadrgScaleFactorUndefined) |
bool | allFramesAdded (bool append=true) |
void | cacheSize (int maxCacheSize) |
bool | checkForZoneSwap (TSLTMC *x1, TSLTMC *y1, TSLTMC *x2, TSLTMC *y2) |
void | clearCache () |
bool | containsRDTED () |
bool | frameDUPerTMC (double &duX, double &duY) |
TSLCADRGScaleFactorEnum | getCurrentScale () const |
TSLArcZoneEnum | getCurrentZone () const |
bool | getDrawOverlapZone () const |
bool | getExtentOfFrameset (int idx, double &latBL, double &lonBL, double &latTR, double &lonTR) |
TSLCADRGScaleFactorEnum | getForcedScaleFactor () |
bool | getFrame (TSLArcZoneEnum zone, TSLCADRGScaleFactorEnum scale, int framesetIndex, int index, TSLCADRGFrameFileInfo &frameInfo) |
bool | getMaxDisplayExtent (double *extent) |
int | getNumScaleFactors () |
int | getNumFrames (int frameSetIndex) const |
int | getNumFrames (TSLArcZoneEnum zone, TSLCADRGScaleFactorEnum scale, int framesetIndex) const |
int | getNumScales (TSLArcZoneEnum zone) const |
const char * | getProduct () const |
TSLCADRGScaleFactorEnum | getScale (TSLArcZoneEnum zone, int index) const |
TSLCadrgScaleFactorEnum | getScaleFactor (int index) |
bool | getScaleFactorExtent (TSLCADRGScaleFactorEnum scaleFactor, double *blLatitude, double *blLongitude, double *trLatitude, double *trLongitude) |
bool | getScaleFactorThreshold (TSLCADRGScaleFactorEnum scaleFactor, double *upperThreshold, double *lowerThreshold) |
bool | getTMCExtentOfFrameset (int idx, TSLTMC *x1, TSLTMC *y1, TSLTMC *x2, TSLTMC *y2) |
bool | getTMCExtentOfFrameset (int idx, TSLEnvelope &extent, TSLEnvelope &extentRight, bool &split) |
bool | getTMCExtentOfFrameset (TSLArcZoneEnum zone, TSLCADRGScaleFactorEnum scale, int frameSetIndex, TSLEnvelope &extent, TSLEnvelope &extentRight, bool &split) |
int | getZoneOfFrameset (int framesetIndex) |
void | lowercaseFiles (bool flag) |
int | numFramesets () |
int | numFramesets (TSLArcZoneEnum zone, TSLCADRGScaleFactorEnum scale) |
const TSLCoordinateSystem * | queryCoordinateSystem () |
bool | removeFrame (const char *frameFile, bool recalculateExtent=true) |
bool | setCoordinateSystem (const TSLCoordinateSystem *coordinateSystem, bool ownsCoordinateSystem) |
void | setDrawOverlapZone (bool state) |
bool | setForcedScaleFactor (TSLCADRGScaleFactorEnum scaleFactor) |
bool | setMaxDisplayExtent (double extent) |
bool | setProduct (const char *product) |
void | setRDTEDRange (short min, short max) |
bool | setScaleFactorThreshold (TSLCADRGScaleFactorEnum scaleFactor, double upperThreshold, double lowerThreshold=0.0) |
void * | operator new (size_t size) TSL_NO_THROW |
void * | operator new (size_t size, char *filename, int line) |
![]() | |
void | addDrawingCallback (TSLDataLayerDrawingCallback *drawingCallback) |
bool | addFeatureRendering (const char *featureName, TSLFeatureID featureID) |
bool | addLoader (TSLFileLoader *loader, TSLLoaderAppCallback callback, void *arg, TSLAllLoadedCallback allLoadedCallback=0, void *arg2=0) |
bool | addPathList (const TSLPathList *path_list) |
void | cancelFlashback () |
bool | clearFeatureRendering (const char *featureName, TSLFeatureID featureID) |
TSLDataHandler * | createDataHandler (const char *config_file=0) |
TSLHistoryVersion | currentVersion () const |
TSLDataHandler * | dataHandler () |
const TSLDataHandler * | dataHandler () const |
void | destroy () |
bool | entityIsVisible (const TSLEntity *entity, const TSLDrawingSurface *drawingSurface) const |
const TSLFeatureClassList * | featureList () const |
const TSLFeatureClassList * | featureList (const char *detailLayerName) const |
bool | fileModificationTime (const char *filename, TSLTimeType &lastModificationTime) |
TSLEntity * | findEntity (TSLTMC x, TSLTMC y, TSLTMC aperture, int depth, const char *featureName=0, int drawingSurfaceID=-1) |
bool | findFile (const char *filename, TSLSimpleString &foundPath) const |
void | flashbackToTimestamp (TSLHistoryTimestamp timestamp, TSLLayerArchiveCallback archiveCallback, void *arg=0) |
void | flashbackToTimestamp (TSLHistoryTimestamp timestamp, TSLLayerArchiveTileCallback archiveTileCallback, void *arg=0) |
void | flashbackToVersion (TSLHistoryVersion version, TSLLayerArchiveCallback archiveCallback, void *arg=0) |
void | flashbackToVersion (TSLHistoryVersion version, TSLLayerArchiveTileCallback archiveTileCallback, void *arg=0) |
bool | getActiveLayerName (const TSLEnvelope &extent, double screenResolution, TSLSimpleString &activeLayerName) const |
TSLEntityIterator * | getEntityIterator (const char *detailLayer, TSLSelector *selector=NULL, TSLEnvelope *extent=NULL, bool splitOptimisedPrimitives=true) |
bool | getFeatureRendering (const char *featureName, TSLFeatureID featureID, TSLRenderingAttributeInt attribute, int *result) const |
bool | getFeatureRendering (const char *featureName, TSLFeatureID featureID, TSLRenderingAttributeDouble attribute, double *result) const |
bool | getFeatureRendering (const char *featureName, TSLFeatureID featureID, TSLRenderingAttributeBool attribute, bool *result) const |
bool | getFeatureRendering (const char *featureName, TSLFeatureID featureID, TSLRenderingAttributes *result) const |
TSLFileLoader * | getLoader () |
bool | getMUExtent (double *x1, double *y1, double *x2, double *y2, int drawingSurfaceID=-1) const |
bool | getTMCExtent (TSLTMC *x1, TSLTMC *y1, TSLTMC *x2, TSLTMC *y2, int drawingSurfaceID=-1) const |
bool | getUUExtent (double *x1, double *y1, double *x2, double *y2, const TSLDrawingSurface *drawingSurface) const |
bool | importHistory (TSLHistoryVersion mapVersion, TSLHistoryTimestamp timestamp, TSLHistoryImportSet *historySet) |
bool | latLongToTMC (double latitude, double longitude, TSLTMC *x, TSLTMC *y, bool local=false) const |
bool | latLongToTMC (int num, double *latitudes, double *longitudes, TSLTMC *xs, TSLTMC *ys, bool local=false) const |
TSLDataLayerTypeEnum | layerType () const |
bool | loadData (const char *filename) |
bool | loadRendering (const char *filename) |
void | notifyChanged (bool changed=true) |
TSLMapQuery * | query (TSLTMC x1, TSLTMC y1, TSLTMC x2, TSLTMC y2, int depth=-1, const char *featureName=NULL, int drawingSurfaceID=-1) const |
TSLMapQuery * | query (TSLTMC x1, TSLTMC y1, TSLTMC x2, TSLTMC y2, TSLSelector *selector, int drawingSurfaceID=-1) const |
const TSLCoordinateSystem * | getCoordinateSystem () const |
bool | queryVersionHistory (const TSLEnvelope &extent, TSLVersionHistorySet &history) |
void | refreshFlashback () |
bool | removeData () |
void | releaseResources (int surfaceID) |
bool | saveRendering (const char *filename, TSLMapLinkVersion ver=TSL_CURRENT_MAPLINK_VERSION) |
bool | setCoordinateSystem (const TSLCoordinateSystem *coordinateSystem) |
bool | setFeatureRendering (const char *featureName, TSLFeatureID featureID, TSLRenderingAttributeInt attribute, int value) |
bool | setFeatureRendering (const char *featureName, TSLFeatureID featureID, TSLRenderingAttributeDouble attribute, double value) |
bool | setFeatureRendering (const char *featureName, TSLFeatureID featureID, TSLRenderingAttributeBool attribute, bool value) |
bool | setFeatureRendering (const char *featureName, TSLFeatureID featureID, TSLRenderingAttributes *value) |
bool | TMCToLatLong (TSLTMC x, TSLTMC y, double *latitude, double *longitude, bool local=false, bool boundCheck=true) const |
bool | TMCToLatLong (int num, TSLTMC *xs, TSLTMC *ys, double *latitudes, double *longitudes, bool local=false) const |
const TSLVersionHistorySet * | versionHistory () const |
TSLCADRGDataLayer::TSLCADRGDataLayer | ( | ) |
bool TSLCADRGDataLayer::addFrame | ( | const char * | filename, |
TSLCADRGScaleFactorEnum | scale = TSLCadrgScaleFactorUndefined ) |
Provides the ability to add an individual frame file to the TSLCADRGDataLayer.
Once all the frame files have been added, the 'allFramesAdded' method must be called. Calling this method will then repopulate the data layer with the frames which were added via this method.
All frames added should be valid and conform to the RPF frame file naming convention.
filename | The full path to the CADRG frame file to load in the data layer. |
scale | Optionally specify a scale at which the frame file should be added. If no scale is specified, the data layer will attempt to determine the scale of the frame file using the chart type. |
bool TSLCADRGDataLayer::allFramesAdded | ( | bool | append = true | ) |
This method should be called after all frames have been added to the data layer via the 'addFrame' method. Once called, the method will restructure the data layer and present the new frame files for use. If a frame file has been added more than once it will only appear in the data layer once, with the most recently added frame being stored.
The frames added to the data layer will be stored in a single frameset per scale in a zone.
Additionally, calling this method will clear the current cache.
append | Optional argument to determine whether or not the frames added via the addFrame method should be appended to the frames residing in the layer. If 'false' is specified, the current contents of the data layer will be cleared and the added frames will replace them. |
void TSLCADRGDataLayer::cacheSize | ( | int | maxCacheSize | ) |
Set the maximum number of tiles to be held in the cache.
bool TSLCADRGDataLayer::checkForZoneSwap | ( | TSLTMC * | x1, |
TSLTMC * | y1, | ||
TSLTMC * | x2, | ||
TSLTMC * | y2 ) |
Checks to see if displaying the specified extent would change the currently displayed zone. If so, then adjusts the extent to be in the correct position for the new projection.
The latitude/longitude of the extent centre are used to pick the zone and will be moved to the equivalent place in the new zone.
Returns True if the new extent would cause a buffer swap, False otherwise.
void TSLCADRGDataLayer::clearCache | ( | ) |
Clears any CADRG frame files currently in the cache.
bool TSLCADRGDataLayer::containsRDTED | ( | ) |
Returns true if the datalayer contains any RDTED data.
bool TSLCADRGDataLayer::frameDUPerTMC | ( | double & | duX, |
double & | duY ) |
Queries the extent of a single pixel in the source raster in the same units as the extent of the layer.
Can be used to resize the drawing surface so that the raster in the datalayer is at its optimum size.
When the layer contains multiple scales, this function returns the pixel extent for the lowest resolution scale.
Returns true if successful.
TSLCADRGScaleFactorEnum TSLCADRGDataLayer::getCurrentScale | ( | ) | const |
Get the current scale of the data being presented on the data layer.
Before the current scale can be determined, a draw call must have been made.
Returns the current scale.
TSLArcZoneEnum TSLCADRGDataLayer::getCurrentZone | ( | ) | const |
Get the current zone of the data being presented on the data layer.
Before the current zone can be determined, a draw call must have been made.
Returns the current zone.
bool TSLCADRGDataLayer::getDrawOverlapZone | ( | ) | const |
This method returns the state of the drawing of the overlap zone data.
bool TSLCADRGDataLayer::getExtentOfFrameset | ( | int | idx, |
double & | latBL, | ||
double & | lonBL, | ||
double & | latTR, | ||
double & | lonTR ) |
This method returns the latitude and longitude extent of the frameset.
idx | zero based index to the frameset. The number of framesets can be obtained by using noFramesets() |
latBL | Bottom left latitude (degrees) |
lonBL | Bottom left longitude (degrees) |
latTR | Top right latitude (degrees) |
lonTR | Top right longitude (degrees) |
TSLCADRGScaleFactorEnum TSLCADRGDataLayer::getForcedScaleFactor | ( | ) |
Returns which scale the current layer has been forced to draw at.
If the returned value is TSLCadrgScaleFactorUndefined then no scale has been forced.
bool TSLCADRGDataLayer::getFrame | ( | TSLArcZoneEnum | zone, |
TSLCADRGScaleFactorEnum | scale, | ||
int | framesetIndex, | ||
int | index, | ||
TSLCADRGFrameFileInfo & | frameInfo ) |
Get frame information for the specified frame. To identify the frame file the zone, scale and frameset number must be passed.
zone | The zone the frame resides in. |
scale | The scale of the frame. |
framesetIndex | The frameset the frame resides in. To retrieve the number of framesets, call the numFramesets() method with the zone and scale you wish to query the number of framesets from. |
index | The index of the frame to retrieve. |
frameInfo | A TSLCADRGFrameFileInfo object which will become populated with information pertaining to the specified frame. |
bool TSLCADRGDataLayer::getMaxDisplayExtent | ( | double * | extent | ) |
Get the maximum display extent in map units. This allows severe performance hits to be avoided by limiting the amount of data that can be drawn.
extent | The current value in map units for the maximum display extent. |
int TSLCADRGDataLayer::getNumFrames | ( | int | frameSetIndex | ) | const |
Retrieves the number of frames in the specified frameset.
A frameset should be limited to a particular zone but may contain multiple scales. This method returns the number of frame files contained in the specified frameset for all scales.
frameSetIndex | The index of the frameset. |
If the returned value is -1, it indicates that the specified frameset does not exist.
int TSLCADRGDataLayer::getNumFrames | ( | TSLArcZoneEnum | zone, |
TSLCADRGScaleFactorEnum | scale, | ||
int | framesetIndex ) const |
Retrieves the number of frames in the frameset for the specified zone and scale.
zone | The zone of the frameset. |
scale | The scale of the frameset. |
framesetIndex | The index of the frameset. |
If the returned value is 0, it indicates that the specified zone, scale and frameset are not populated in the data layer.
int TSLCADRGDataLayer::getNumScaleFactors | ( | ) |
Query the number of scale factors available in the current data.
int TSLCADRGDataLayer::getNumScales | ( | TSLArcZoneEnum | zone | ) | const |
Returns the number of scales in the specified zone.
zone | The zone to retrieve the number of scales from. |
If the returned value is 0, it indicates that the specified zone is not populated in the data layer.
const char * TSLCADRGDataLayer::getProduct | ( | ) | const |
Returns the current value of the product text string contained within the product extent rectangle.
TSLCADRGScaleFactorEnum TSLCADRGDataLayer::getScale | ( | TSLArcZoneEnum | zone, |
int | index ) const |
Get the scale factor at the specified index in a zone.
zone | The zone to retrieve the scale from. |
index | The index of the scale to retrieve. To identify how many scales are in the current zone, call the getNumScales() method which is available on the data layer. |
If the returned value is TSLCadrgScaleFactorUndefined it indicates that there was no scale identified at the specified location.
TSLCadrgScaleFactorEnum TSLCADRGDataLayer::getScaleFactor | ( | int | index | ) |
Get the nth scale factor available in the current data. Call getNumScaleFactors to determine how many scale factors are available.
Returns the nth scale factor.
bool TSLCADRGDataLayer::getScaleFactorExtent | ( | TSLCADRGScaleFactorEnum | scaleFactor, |
double * | blLatitude, | ||
double * | blLongitude, | ||
double * | trLatitude, | ||
double * | trLongitude ) |
Requests the extent of the specified scale.
scaleFactor | The scale to query the extent for. |
blLatitude | The bottom left latitude of the extent. |
blLongitude | The bottom left longitude of the extent |
trLatitude | The top right latitude of the extent. |
trLongitude | The top right longitude of the extent. |
bool TSLCADRGDataLayer::getScaleFactorThreshold | ( | TSLCADRGScaleFactorEnum | scaleFactor, |
double * | upperThreshold, | ||
double * | lowerThreshold ) |
Allows the top and bottom thresholds for which a particular map scale is displayed to be queried.
scaleFactor | The name of the map scale to query. |
upperThreshold | The upper value in Map Units per Pixel. |
lowerThreshold | The lower value in Map Units per Pixel. |
Return true on success, false otherwise.
bool TSLCADRGDataLayer::getTMCExtentOfFrameset | ( | int | idx, |
TSLEnvelope & | extent, | ||
TSLEnvelope & | extentRight, | ||
bool & | split ) |
This method requests the extent of the area covered by the frameset indicated (idx).
In the case of a dateline shifted coordinate system and the frameset straddling the left and right edges the left and right extent are returned.
idx | zero based index to the frameset. The number of framesets can be obtained by using noFramesets() |
extent | The extent of the frameset. With a dateline shifted coordinate system this will be the left most extent if split is true. |
extentRight | The extent of the frameset to the right of the map. This will be the same as extent if the frameset has not been split by the map edge. |
split | If true indicates that the extent returned has been split by the map edge and that extentRight is valid and that extent is the extent on the left of the map. |
bool TSLCADRGDataLayer::getTMCExtentOfFrameset | ( | int | idx, |
TSLTMC * | x1, | ||
TSLTMC * | y1, | ||
TSLTMC * | x2, | ||
TSLTMC * | y2 ) |
This method requests the extent of the area covered by the frameset passed. The returned values will be in TMC
For a dateline shifted coordinate system this potentially returns the wrapped TMC extent. Please use the alternative form of the method which returns the two extents if the frameset straddles the left and right edges of the coordinate system.
idx | zero-based index to the frameset. The number if framesets can be obtained by using noFramesets() |
(x1,y1) | references to variables receiving the bottom left co-ordinate of the extent. |
(x2,y2) | references to variables receiving the top right co-ordinate of the extent. |
bool TSLCADRGDataLayer::getTMCExtentOfFrameset | ( | TSLArcZoneEnum | zone, |
TSLCADRGScaleFactorEnum | scale, | ||
int | frameSetIndex, | ||
TSLEnvelope & | extent, | ||
TSLEnvelope & | extentRight, | ||
bool & | split ) |
This method requests the extent of the area covered by the frameset indicated (frameSetIndex) in the particular zone and scale.
In the case of a dateline shifted coordinate system and the frameset straddling the left and right edges the left and right extent are returned.
zone | The zone of the frameset. |
scale | The scale of the frameset. |
frameSetIndex | zero based index to the frameset. The number of framesets can be obtained by using noFramesets() |
extent | The extent of the frameset. With a dateline shifted coordinate system this will be the left most extent if split is true. |
extentRight | The extent of the frameset to the right of the map. This will be the same as extent if the frameset has not been split by the map edge. |
split | If true indicates that the extent returned has been split by the map edge and that extentRight is valid and that extent is the extent on the left of the map. |
int TSLCADRGDataLayer::getZoneOfFrameset | ( | int | framesetIndex | ) |
Returns the zone number that the frameset resides in.
Returns -1 if the index or zone is invalid.
Return values are:
Polar Zones are not currently supported due to the projection required being different for other zones.
void TSLCADRGDataLayer::lowercaseFiles | ( | bool | flag | ) |
Sets an internal flag to force conversion of all files and paths in subsequent table of contents files. This should be called before loading the relevant table of contents file.
The CADRG table of contents file is formatted assuming that the files will be read directly from a CDROM. As such, the names are ISO-9660 compliant and are all uppercase.
Some OS (eg. Solaris), are case-sensitive, but display these ISO-9660 files in lowercase. to perform conversion when searching for frame files. This method allows these to be read by converting the path and filenames when constructing the internal tables.
int TSLCADRGDataLayer::numFramesets | ( | ) |
Returns the number of framesets in the datalayer.
int TSLCADRGDataLayer::numFramesets | ( | TSLArcZoneEnum | zone, |
TSLCADRGScaleFactorEnum | scale ) |
Returns the number of framesets in the specified scale of the specified zone.
zone | The zone the frameset resides in. |
scale | The scale of the frameset. |
void * TSLCADRGDataLayer::operator new | ( | size_t | size | ) |
void * TSLCADRGDataLayer::operator new | ( | size_t | size, |
char * | filename, | ||
int | line ) |
When included in an MFC application in debug mode, the debug new expects this to be here. Override it and return the same as the normal one. The library must include it when compiled in release mode, since the user's application may be in debug mode.
const TSLCoordinateSystem * TSLCADRGDataLayer::queryCoordinateSystem | ( | ) |
Returns the coordinate system (if any) that has been attached to the data layer.
bool TSLCADRGDataLayer::removeFrame | ( | const char * | frameFile, |
bool | recalculateExtent = true ) |
Remove a frame from the data layer. The frame must be present in the data layer before it can be removed. Frames added using addFrame will not be able to be removed unless allFramesAdded has been called.
frameFile | The name of the frame file to remove, e.g. 0000A013.JN1 |
recalculateExtent | An optional flag to determine whether or not to recalculate the layer extents after removing the specified frame. This will ensure the frameset and layer extents are displayed correctly once the frame is removed. |
bool TSLCADRGDataLayer::setCoordinateSystem | ( | const TSLCoordinateSystem * | coordinateSystem, |
bool | ownsCoordinateSystem ) |
Set the coordinate system for the data layer. Only Coordinate Systems without a projection are allowed. If the data layer has no coordinate system attached to it, it will use the coordinate system attached to the drawing surface. If no coordinate system is attached to the drawing surface then a default Dynamic Arc projection is used.
coordinateSystem | The coordinate system to attach to the data layer. |
ownsCoordinateSystem | specifies whether the data layer takes ownership of the coordinate system. |
void TSLCADRGDataLayer::setDrawOverlapZone | ( | bool | state | ) |
This controls the drawing of the overlap zone. By default the overlap zone will not be drawn.
The overlap zone will only be drawn if its extent overlaps the drawing surface display extent.
This option is useful when displaying around a zone boundary where CADRG data will not normally be displayed when the layer switches the current zone.
The layer will draw the overlap zone first then the current zone.
state | If true the layer will draw the current zone and the overlap zone. If false the overlap zone will not be drawn. |
bool TSLCADRGDataLayer::setForcedScaleFactor | ( | TSLCADRGScaleFactorEnum | scaleFactor | ) |
Set the scale to be drawn by the TSLCADRGDataLayer.
scaleFactor | The scale to be drawn at. |
bool TSLCADRGDataLayer::setMaxDisplayExtent | ( | double | extent | ) |
Set the maximum display extent in map units. This allows severe performance hits to be avoided by limiting the amount of data that can be drawn.
extent | The value in map units to set for the maximum display extent. |
bool TSLCADRGDataLayer::setProduct | ( | const char * | product | ) |
Sets the product string which is displayed in the product extent rectangle. This value is automatically populated when loading CADRG/CIB data from an A.TOC file, however when adding individual frame files via the addFrame method it will require this value to be set. By default, the product string is set as "CADRG".
product | The product string to display in the product extent rectangle. |
void TSLCADRGDataLayer::setRDTEDRange | ( | short | min, |
short | max ) |
Sets the minimum and maximum range values for colouring the RDTED data.
The colours used to render the RDTED data are automatically chosen.
Data outside the defined range is clamped to the minimum or maximum value.
bool TSLCADRGDataLayer::setScaleFactorThreshold | ( | TSLCADRGScaleFactorEnum | scaleFactor, |
double | upperThreshold, | ||
double | lowerThreshold = 0.0 ) |
Allows the top and bottom thresholds for which a particular map scale is displayed to be set.
scaleFactor | The map scale to apply the changes to. |
upperThreshold | The upper value in Map Units per Pixel. |
lowerThreshold | The lower value in Map Units per Pixel. Defaulted to 0.0. |
Return true on success, false otherwise.