Class PixelScale
- Object
-
- PixelScale
-
public final class PixelScale extends 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
-
-
Constructor Summary
Constructors Constructor Description PixelScale()
PixelScale(double scaleX, double scaleY, double scaleZ)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description boolean
equals(Object that)
double
getScaleX()
double
getScaleY()
double
getScaleZ()
double[]
getValues()
int
hashCode()
boolean
isSet()
boolean
isSetExtended()
void
setScaleX(double scaleX)
void
setScaleY(double scaleY)
void
setScaleZ(double scaleZ)
String
toString()
-
-
-
Method Detail
-
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()
-
-