public class IlvDTEDLayer extends IlvTiledLayer
The filename of the tiles are computed from the usual naming
specifications for DTED files:
The DTED filenames are named LXX.dtY where L can be 'n' (North)
or 's' (South). XX is the latitude of the tile and Y the suffix of
the DTED file depending on the DTED level (0, 1 or 2).
For example, n09.dt0 is a tile of level 0, located at the latitude
9 North.
The DTED file parent directories are named LXXX where L can be
'e' (East) or 'w' (West) and XXX is the longitude of the DTED tiles
contained in a parent directory.
For example, w001/ is the directory containing dted tiles located at
longitude 1 West.
The characters described above can be uppercase or lowercase. For
example, n30.dt1 and N30.DT1 are two valid names
for the same DTED tile. The case you use, however, depends on your file system.
The IlvDTEDLayer
works only in the geographic projection.
IlvGeographicProjection
,
Serialized FormConstructor and Description |
---|
IlvDTEDLayer(IlvInputStream stream)
Reads the layer from an
IlvInputStream . |
IlvDTEDLayer(String directoryName,
int dtedLevel)
Creates an instance of
IlvDTEDLayer . |
IlvDTEDLayer(URL dirUrlName,
int dtedLevel)
Creates an instance of a DTED layer.
|
Modifier and Type | Method and Description |
---|---|
String |
getFileName(int row,
int col)
Returns the DTED filename corresponding to the specified
row and column.
|
IlvFeatureRenderer |
getRasterRenderer()
Returns the feature renderer used to create graphic objects representing
the DTED rasters.
|
void |
setRasterRenderer(IlvFeatureRenderer renderer)
Sets the feature renderer used to create graphic objects
representing the DTED rasters.
|
void |
write(IlvOutputStream stream)
Writes the object to an
IlvOutputStream . |
computeBBox, disconnect, draw, fitTransformerToTile, fitTransformerToTile, getDebugView, getSize, getTileController, getTileLoader, ignoreView, initTileOrigin, isIgnoringView, isVisible, setDebugView, setDebugView, setManager, setSize, setTileLoader
addVisibilityFilter, drawImpl, getAlpha, getIndex, getManager, getName, getNamedProperty, getProperty, getVisibilityFilters, isSelectable, isTemporarilyHidden, isVisible, print, removeNamedProperty, removeVisibilityFilter, setAlpha, setName, setNamedProperty, setProperty, writeIt
addObject, afterUpdate, beforeUpdate, collectObjects, collectSelectableObjects, deleteAll, getCardinal, getElements, getIndex, getManagers, getManagersCount, getObject, getObject, getSelectableObject, getSubsequentRemoveThreshold, isQuadtreeEnabled, isZOrdering, map, mapInside, mapInside, mapIntersects, mapIntersects, removeObject, setIndex, SetInitialNumberOfNonZoomablesCapacity, SetInitialNumberOfObjectsCapacity, setQuadtreeEnabled, setSubsequentRemoveThreshold, setZOrdering
public IlvDTEDLayer(String directoryName, int dtedLevel)
IlvDTEDLayer
. This constructor uses a cache
that is shared by all the IlvDTEDLayer
instances initialized
with this default constructor.directoryName
- The name of the parent DTED directory (usually [any_path]/dted)dtedLevel
- The level of the files to be loaded (0, 1 or 2)public IlvDTEDLayer(URL dirUrlName, int dtedLevel)
IlvDTEDLayer
instances initialized
with this default constructor.dirUrlName
- The name of the URL of the parent dted directory dtedLevel
- The level of the files to be loaded (0, 1 or 2)public IlvDTEDLayer(IlvInputStream stream) throws IlvReadFileException
IlvInputStream
.stream
- The input streamIlvReadFileException
- if an error occurs while reading.public void write(IlvOutputStream stream) throws IOException
IlvOutputStream
.write
in interface IlvPersistentObject
write
in class IlvTiledLayer
stream
- the output streamIOException
- if an errors occurs while writing.public void setRasterRenderer(IlvFeatureRenderer renderer)
IlvMapRaster
geometry.renderer
- The feature rendererpublic IlvFeatureRenderer getRasterRenderer()
IlvDefaultRasterRenderer
.public String getFileName(int row, int col)
row
- The row number of the DTED file given in the load-on-demand gridcol
- The column number of the DTED file given in the load-on-demand grid© Copyright Rogue Wave Software, Inc. 1997, 2018. All Rights Reserved.