|
||||||||||
| PREV CLASS 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.dem.IlvGTopo30Reader
public class IlvGTopo30Reader
Reader of GTOPO30 images. Example of use:
IlvGTopo30Reader r = new IlvGTopo30Reader(); r.addMap(fileName);
| Field Summary |
|---|
| Fields inherited from class ilog.views.maps.raster.IlvRasterAbstractReader |
|---|
needReload |
| Constructor Summary | |
|---|---|
IlvGTopo30Reader()
Creates a new instance of IlvGTopo30Reader. |
|
IlvGTopo30Reader(IlvInputStream stream)
Creates a IlvGTopo30Reader from an IlvInputStream |
|
| Method Summary | |
|---|---|
void |
addMap(String filename)
Adds a new GTOPO30 image. |
void |
addMap(URL url)
Adds a new GTOPO30 image specified by an URL. |
IlvCoordinateSystem |
getCoordinateSystem()
Returns IlvGeographicCoordinateSystem.WGS84 |
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 (the number of images 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 IlvGTopo30Reader()
public IlvGTopo30Reader(IlvInputStream stream)
throws IlvReadFileException
IlvGTopo30Reader from an IlvInputStream
stream - The stream to read from.
IlvReadFileException - if an exception occurs.| 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 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 void addMap(String filename)
throws IOException
filename - Path pointing to one of the GTopo30 files (.dem, .hdr, .src, .sch, .stx).
The color model is built through the use of a { @link IlvRasterElevationColorModelFactory}
IOException - if the fileName is an unrecognized file.
public void addMap(URL url)
throws IOException
url - URL pointing to one of the GTopo30 files (.dem, .hdr, .src, .sch, .stx).
The color model is built through the use of a { @link IlvRasterElevationColorModelFactory}
IOException - if the url is an unrecognized URL.public IlvMathTransform getInternalTransformation(int imageIndex)
getInternalTransformation in class IlvRasterAbstractReaderimageIndex - The index of the raster.
IlvRasterAbstractReader.getInternalTransformation(int)public IlvCoordinateSystem getCoordinateSystem()
IlvGeographicCoordinateSystem.WGS84
IlvMapFeatureIterator.getCoordinateSystem()public IlvFeatureAttributeProperty getProperties(int imageIndex)
getProperties in class IlvRasterAbstractReaderimageIndex - The index of the image.
IlvRasterAbstractReader.getProperties(int)
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||