Class GeoReferencedRaster
- All Implemented Interfaces:
Disposable
In geotiff, the Raster Space is defined by GTRasterTypeGeoKey and can be RasterPixelIsArea or RasterPixelIsPoint.
In RasterPixelIsArea, image coordinate (0,0) is the upper left coordinate of the image and the first pixel value applies to the whole cell (from coordinate (0,0) to (1,1)). This is the default value, but it is now recommended to specify it explicitly.
In RasterPixelIsPoint, we consider that the first value of the image matrix (0,0) applies to point located at the center of the upper left pixel. This is mostly used for elevation dataset like DTM
Geotiff georeferencement may be defined as a transformation matrix or from a tiepoint and scale factors. Georeferencement from several tiepoints is not supported by OpenJUMP).
Warning : if georeferencement is defined by a single tiepoint along with a scalex and a scaley factor, the tiepoint may be on the upper-left corner of the upper-left pixel, on the center of the pixel or at any place as long as the model coordinate represent the transformation of the image coordinate (see here after for the interpretation of image coordinate)
World file defines an affine transformation with its tx and ty translation parameters defined relatively to the center of the upper left pixel.
javadoc added by mmichaud on 2021-05-23-
Nested Class Summary
Nested Classes -
Field Summary
Fields inherited from class GeoRaster
cache_hints, fixed_reader, imageFileLocation, src, type, used_loader -
Constructor Summary
ConstructorsConstructorDescriptionGeoReferencedRaster(String location) Called by Java2XMLGeoReferencedRaster(String location, Object reader) -
Method Summary
Modifier and TypeMethodDescriptionorg.locationtech.jts.geom.CoordinateDeprecated.org.locationtech.jts.geom.Envelopeorg.locationtech.jts.geom.Envelopeorg.locationtech.jts.geom.Coordinateorg.locationtech.jts.geom.Envelopedoubledoubleprotected voidinitialize the img and try to parse geo infos via (in this order) worldfile, gdal or geotiffMethods inherited from class GeoRaster
createCacheRenderingHints, createInput, createInput, createInputStream, createJAIRenderedOP, dispose, disposeInput, fetchRaster, fullContrast, getImage, getLoader, getMaximumExtreme, getMinimumExtreme, getRenderedOp, getType, getURI, hasFileExtension, hasFileExtension, hasNoFileExtensions, listAllReaders, listValidImageIOReaders, listValidJAICodecs, listValidReaders, normalize
-
Constructor Details
-
GeoReferencedRaster
Called by Java2XML- Throws:
ReferencedImageException
-
GeoReferencedRaster
- Throws:
ReferencedImageException
-
-
Method Details
-
readRasterfile
initialize the img and try to parse geo infos via (in this order) worldfile, gdal or geotiff- Overrides:
readRasterfilein classGeoRaster- Throws:
ReferencedImageException
-
getEnvelope
public org.locationtech.jts.geom.Envelope getEnvelope() -
getOriginalEnvelope
public org.locationtech.jts.geom.Envelope getOriginalEnvelope() -
getModelULPixelCenter
public org.locationtech.jts.geom.Coordinate getModelULPixelCenter()- Returns:
- coordinate of left-top corner in the model coordinate system
-
getCoorRasterTiff_tiepointLT
Deprecated.- Returns:
- coordinate of left-top corner in the raster coordinate system
-
getScaleX
public double getScaleX()- Returns:
- number of model units per raster unit along X axis
-
getScaleY
public double getScaleY()- Returns:
- number of model units per raster unit along Y axis
-
getEnvelope
- Throws:
ReferencedImageException
-