Class GeoReferencedRaster
- java.lang.Object
-
- com.vividsolutions.jump.workbench.imagery.geotiff.GeoReferencedRaster
-
- Direct Known Subclasses:
GeoTIFFRaster
public abstract class GeoReferencedRaster extends Object
-
-
Field Summary
Fields Modifier and Type Field Description protected String
imageFileLocation
protected javax.media.jai.RenderedOp
src
-
Constructor Summary
Constructors Constructor Description GeoReferencedRaster(String imageFileLocation)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description protected void
createJAIRenderedOP(URI uri)
protected void
fetchRaster()
Basic fetchRasters retrieves a raster from a file.javax.media.jai.RenderedOp
fullContrast()
org.locationtech.jts.geom.Coordinate
getCoorModel_tiepointLT()
org.locationtech.jts.geom.Coordinate
getCoorRasterTiff_tiepointLT()
double
getDblModelUnitsPerRasterUnit_X()
double
getDblModelUnitsPerRasterUnit_Y()
org.locationtech.jts.geom.Envelope
getEnvelope()
javax.media.jai.RenderedOp
getImage()
double[]
getMaximumExtreme()
double[]
getMinimumExtreme()
protected void
normalize(javax.media.jai.RenderedOp image)
This method must be overridden if an image is not a square image in modelspace.protected void
readRasterfile()
void
setAffineTransformation(AffineTransform transform)
void
setCoorModel_tiepointLT(org.locationtech.jts.geom.Coordinate coordinate)
void
setCoorRasterTiff_tiepointLT(org.locationtech.jts.geom.Coordinate coordinate)
void
setDblModelUnitsPerRasterUnit_X(double d)
void
setDblModelUnitsPerRasterUnit_Y(double d)
-
-
-
Field Detail
-
imageFileLocation
protected String imageFileLocation
-
src
protected javax.media.jai.RenderedOp src
-
-
Method Detail
-
fetchRaster
protected void fetchRaster() throws Exception
Basic fetchRasters retrieves a raster from a file. To get a raster from somewhere else, override this method in subclasses.- Throws:
Exception
-
createJAIRenderedOP
protected void createJAIRenderedOP(URI uri) throws IOException
- Throws:
IOException
-
normalize
protected void normalize(javax.media.jai.RenderedOp image)
This method must be overridden if an image is not a square image in modelspace. It should be transformed to make it a square image in modelspace.- Parameters:
image
- image to be normalized (squared)
-
getCoorModel_tiepointLT
public org.locationtech.jts.geom.Coordinate getCoorModel_tiepointLT()
- Returns:
- coordinate of left-top corner in the model coordinate system
-
getCoorRasterTiff_tiepointLT
public org.locationtech.jts.geom.Coordinate getCoorRasterTiff_tiepointLT()
- Returns:
- coordinate of left-top corner in the raster coordinate system
-
getDblModelUnitsPerRasterUnit_X
public double getDblModelUnitsPerRasterUnit_X()
- Returns:
- number of model units per raster unit along X axis
-
getDblModelUnitsPerRasterUnit_Y
public double getDblModelUnitsPerRasterUnit_Y()
- Returns:
- number of model units per raster unit along Y axis
-
setCoorModel_tiepointLT
public void setCoorModel_tiepointLT(org.locationtech.jts.geom.Coordinate coordinate)
- Parameters:
coordinate
- coordinate of a TiePoint to be set in the GeoTiff ModelTiepointTag
-
setCoorRasterTiff_tiepointLT
public void setCoorRasterTiff_tiepointLT(org.locationtech.jts.geom.Coordinate coordinate)
- Parameters:
coordinate
- coordinate of a TiePoint to be set in the GeoTiff ModelTiepointTag
-
setDblModelUnitsPerRasterUnit_X
public void setDblModelUnitsPerRasterUnit_X(double d)
- Parameters:
d
- x scale value (model unit / raster unit)
-
setDblModelUnitsPerRasterUnit_Y
public void setDblModelUnitsPerRasterUnit_Y(double d)
- Parameters:
d
- y scale value (model unit / raster unit)
-
setAffineTransformation
public void setAffineTransformation(AffineTransform transform)
-
fullContrast
public javax.media.jai.RenderedOp fullContrast()
-
getEnvelope
public org.locationtech.jts.geom.Envelope getEnvelope()
-
getMinimumExtreme
public double[] getMinimumExtreme()
-
getMaximumExtreme
public double[] getMaximumExtreme()
-
-