org.geotools.coverage.grid.io.imageio.geotiff
Class PixelScale
java.lang.Object
org.geotools.coverage.grid.io.imageio.geotiff.PixelScale
public final class PixelScale
- extends java.lang.Object
This class is a placeholder for defining exact affine transformations between
raster and model space.
Quoting the geotiff spec:
ModelPixelScaleTag:
Tag = 33550
Type = DOUBLE (IEEE Double precision)
N = 3
Owner: SoftDesk
This tag may be used to specify the size of raster pixel spacing in the model
space units, when the raster space can be embedded in the model space
coordinate system without rotation, and consists of the following 3 values:
ModelPixelScaleTag = (ScaleX, ScaleY, ScaleZ)
where ScaleX and ScaleY give the horizontal and vertical spacing of raster
pixels. The ScaleZ is primarily used to map the pixel value of a digital
elevation model into the correct Z-scale, and so for most other purposes this
value should be zero (since most model spaces are 2-D, with Z=0).
A single tiepoint in the ModelTiepointTag, together with this tag, completely
determine the relationship between raster and model space
- Since:
- 2.3
- Author:
- Simone Giannecchini, GeoSolutions
Methods inherited from class java.lang.Object |
clone, finalize, getClass, notify, notifyAll, wait, wait, wait |
PixelScale
public PixelScale(double scaleX,
double scaleY,
double scaleZ)
PixelScale
public PixelScale()
equals
public boolean equals(java.lang.Object that)
- Overrides:
equals
in class java.lang.Object
hashCode
public int hashCode()
- Overrides:
hashCode
in class java.lang.Object
toString
public java.lang.String toString()
- Overrides:
toString
in class java.lang.Object
getScaleX
public double getScaleX()
setScaleX
public void setScaleX(double scaleX)
getScaleY
public double getScaleY()
setScaleY
public void setScaleY(double scaleY)
getScaleZ
public double getScaleZ()
setScaleZ
public void setScaleZ(double scaleZ)
getValues
public double[] getValues()
isSet
public boolean isSet()
isSetExtended
public boolean isSetExtended()
Copyright © 1996-2010 Geotools. All Rights Reserved.