org.geotools.gce.geotiff.adapters
Class PixelScale

Object
  extended by 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
Module:
modules/plugin/geotiff (gt-geotiff.jar)

Constructor Summary
PixelScale()
           
PixelScale(double scaleX, double scaleY, double scaleZ)
           
 
Method Summary
 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()
           
 
Methods inherited from class Object
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
 

Constructor Detail

PixelScale

public PixelScale(double scaleX,
                  double scaleY,
                  double scaleZ)

PixelScale

public PixelScale()
Method Detail

equals

public boolean equals(Object that)
Overrides:
equals in class Object

hashCode

public int hashCode()
Overrides:
hashCode in class Object

toString

public String toString()
Overrides:
toString in class 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.