public class IlvRasterGeoTiffReader extends IlvRasterAbstractReader
// create the reader IlvRasterGeoTiffReader r = new IlvRasterGeoTiffReader(); // add an image r.addMap(fileName);
needReload| Constructor and Description |
|---|
IlvRasterGeoTiffReader()
Default constructor.
|
IlvRasterGeoTiffReader(IlvInputStream stream)
Creates a reader from saved information.
|
| Modifier and Type | Method and Description |
|---|---|
void |
addMap(String fileName)
Add an image specifying a file name.
|
void |
addMap(URL url)
Add an image specifying a URL.
|
static IlvRasterMappedBuffer |
fillMappedRasterSource(IlvRasterProperties props,
RenderedImage cr)
Utility method to create the data buffer of an on-demand pixel image from a GeoTiff
RenderedImage. |
static BufferedImage |
getAsBufferedImage(RenderedImage roughImage)
Utility method to create a BufferedImage from a RenderedImage.
|
IlvCoordinateSystem |
getCoordinateSystem()
Returns the spatial reference system that describes the geotiff image.
|
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.
|
boolean |
isInteractiveProjectionInputEnabled()
Returns true if the interactive input of the projection is enabled.
|
void |
reload(IlvThreadMonitoringData monitorInfo)
Given the state of the reader (the number of images were read, coverage zone,...), the purpose of this method
is to recreate all images from the original source.
|
void |
setInteractiveProjectionInputEnabled(boolean interactiveProjectionInputEnabled)
Enables displaying a dialog when projection information is missing (default true).
|
void |
write(IlvOutputStream stream)
Writes the attributes of a persistent object.
|
addRaster, computeGisImageBounds, computeLimits, createRasterTileLoader, dispose, getDefaultFeatureRenderer, getDefaultMaximumIntervalsForDeterminingImageLocation, getImageBounds, getImageCount, getInverseTransformation, getLowerRightCorner, getLowerRightCorner, getMaximumIntervalsForDeterminingImageLocation, getNextFeature, getRasterMappedBuffer, getRasterProperties, getTileLoader, getTileLoader, getTileLoaders, getTransformation, getUpperLeftCorner, getUpperLeftCorner, isForceImageLoadingWhenSaving, isGeoreferenced, isHighQualityRendering, isNeedReload, removeRaster, restart, setDefaultMaximumIntervalsForDeterminingImageLocation, setForceImageLoadingWhenSaving, setHighQualityRendering, setMaximumIntervalsForDeterminingImageLocation, setTransformationpublic IlvRasterGeoTiffReader()
public IlvRasterGeoTiffReader(IlvInputStream stream) throws IlvReadFileException
stream - The stream to read from.IlvReadFileExceptionpublic IlvCoordinateSystem getCoordinateSystem()
null
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)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 isInteractiveProjectionInputEnabled()
public void setInteractiveProjectionInputEnabled(boolean interactiveProjectionInputEnabled)
interactiveProjectionInputEnabled - true to enable interactive projection input.public void addMap(String fileName) throws IOException
fileName - The file name to read from.IOExceptionpublic void addMap(URL url) throws IOException
url - The URL to read the image from.IOExceptionpublic 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 static BufferedImage getAsBufferedImage(RenderedImage roughImage)
roughImage - RenderedImage to analyze.BufferedImage built using the ColorModel and a WritableRaster created from the initial BufferedImage.public static IlvRasterMappedBuffer fillMappedRasterSource(IlvRasterProperties props, RenderedImage cr)
RenderedImage.
This method creates only the necessary rasters for each tile and then copies them in the memory-mapped data to reduce memory "peak".props - Raster properties in which to store the GeoTiff ColorModel.cr - GeoTiff image.© Copyright 2024 Rogue Wave Software, Inc., a Perforce company.. All Rights Reserved.