|
||||||||||
| PREV CLASS Documentation homepage NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectilog.views.maps.raster.IlvRasterAbstractReader
ilog.views.maps.format.dted.IlvRasterDTEDReader
public class IlvRasterDTEDReader
Reader of DTED files. Example of use:
IlvRasterDTEDReader r = new IlvRasterDTEDReader(); r.addMap(fileName); // create a datasource for the dted reader. IlvMapDataSource DTEDDataSource = IlvRasterDataSourceFactory.buildTiledImageDataSource(manager,r,true,true,null); // insert it in the manager's data source tree IlvMapDataSourceModel dataSourceModel = IlvMapDataSourceProperty.GetMapDataSourceModel(view.getManager()); dataSourceModel.insert(DTEDDataSource); // start reading (recusively start all data sources of this model) dataSourceModel.start(); // get the DTED maplayer used to display that data source IlvMapLayer DTEDLayer = DTEDDataSource.getInsertionLayer(); // insert it on the manager's map layer tree IlvMapLayerTreeModel ltm = IlvMapLayerTreeProperty.GetMapLayerTreeModel(view.getManager()); ltm.addChild(null, DTEDLayer);
| Field Summary |
|---|
| Fields inherited from class ilog.views.maps.raster.IlvRasterAbstractReader |
|---|
needReload |
| Constructor Summary | |
|---|---|
IlvRasterDTEDReader()
Default constructor |
|
IlvRasterDTEDReader(IlvInputStream stream)
Constructor from stream |
|
| Method Summary | |
|---|---|
boolean |
addMap(String fileName)
Adds a new DTED image. |
boolean |
addMap(URL url)
Adds a new DTED image. |
IlvCoordinateSystem |
getCoordinateSystem()
Returns a WGS84 system. |
IlvMathTransform |
getInternalTransformation(int imageIndex)
Return the projection associated with the raster stored at the given index. |
IlvFeatureAttributeProperty |
getProperties(int imageIndex)
Returns the feature properties to be associated with the image. |
void |
reload(IlvThreadMonitoringData monitorInfo)
Given the state of the reader (how many images were read, coverage zone,...), the purpose of this method is to recreate all images from the original source. |
void |
write(IlvOutputStream stream)
Writes the attributes of a persistent object. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public IlvRasterDTEDReader()
public IlvRasterDTEDReader(IlvInputStream stream)
throws IlvReadFileException
stream -
IlvReadFileException| Method Detail |
|---|
public void write(IlvOutputStream stream)
throws IOException
write in interface IlvPersistentObjectwrite in class IlvRasterAbstractReaderstream - The output stream.
IOException - thrown when an exception occurs during
the write operation for this object.
public boolean addMap(String fileName)
throws IOException
fileName - Path pointing to one of the DTED files (.dt0,.dt1,.dt2)
true.
The color model is built through the use of a { @link IlvRasterElevationColorModelFactory}
IOException - if the fileName is an unrecognized file.
public boolean addMap(URL url)
throws IOException
url - URL pointing to one of the DTED files (.dt0,.dt1,.dt2)
true.
IOException - if the url is an unrecognized file.public void reload(IlvThreadMonitoringData monitorInfo)
IlvRasterProperties of the reader as they
might not be saved when the theme only is saved.
reload in class IlvRasterAbstractReadermonitorInfo - Used to update task progress.public IlvCoordinateSystem getCoordinateSystem()
getCoordinateSystem in interface IlvMapFeatureIteratornull
if the coordinate system is unknown.IlvMapFeatureIterator.getCoordinateSystem()public IlvMathTransform getInternalTransformation(int imageIndex)
getInternalTransformation in class IlvRasterAbstractReaderimageIndex - The index of the raster.
IlvRasterAbstractReader.getInternalTransformation(int)public IlvFeatureAttributeProperty getProperties(int imageIndex)
getProperties in class IlvRasterAbstractReaderimageIndex - The index of the image.
IlvRasterAbstractReader.getProperties(int)
|
||||||||||
| PREV CLASS Documentation homepage NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||