|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object org.geotools.gc.GridGeometry
GeneralGridGeometry
.
Describes the valid range of grid coordinates and the math transform to transform grid coordinates to real world coordinates.
GC_GridGeometry
,
Serialized FormConstructor Summary | |
GridGeometry(GridRange gridRange,
Envelope userRange,
boolean[] inverse)
Deprecated. Construct a new grid geometry. |
|
GridGeometry(GridRange gridRange,
MathTransform gridToCoordinateSystem)
Deprecated. Construct a new grid geometry from a math transform. |
|
GridGeometry(java.awt.Rectangle gridRange,
java.awt.geom.Rectangle2D userRange)
Deprecated. Construct a new two-dimensional grid geometry. |
Method Summary | |
boolean |
equals(java.lang.Object object)
Deprecated. Compares the specified object with this grid geometry for equality. |
int |
getDimension()
Deprecated. Returns the number of dimensions. |
Envelope |
getEnvelope()
Deprecated. Returns the bounding box of "real world" coordinates for this grid geometry. |
GridRange |
getGridRange()
Deprecated. Returns the valid coordinate range of a grid coverage. |
MathTransform |
getGridToCoordinateSystem()
Deprecated. Returns the math transform which allows for the transformations from grid coordinates to real world earth coordinates. |
MathTransform2D |
getGridToCoordinateSystem2D()
Deprecated. Returns a math transform for the first two dimensions, if such a transform exists. |
int |
hashCode()
Deprecated. Returns a hash value for this grid geometry. |
java.lang.String |
toString()
Deprecated. Returns a string repr?sentation of this grid range. |
Methods inherited from class java.lang.Object |
clone, finalize, getClass, notify, notifyAll, wait, wait, wait |
Constructor Detail |
public GridGeometry(GridRange gridRange, MathTransform gridToCoordinateSystem)
gridRange
- The valid coordinate range of a grid coverage, or null
if
none. The lowest valid grid coordinate is zero for BufferedImage
, but may
be non-zero for arbitrary RenderedImage
. A grid with 512 cells can have a
minimum coordinate of 0 and maximum of 512, with 511 as the highest valid index.gridToCoordinateSystem
- The math transform which allows for the transformations
from grid coordinates (pixel's center) to real world earth coordinates.RenderedImage.getMinX()
,
RenderedImage.getMinY()
,
RenderedImage.getWidth()
,
RenderedImage.getHeight()
public GridGeometry(GridRange gridRange, Envelope userRange, boolean[] inverse)
inverse
argument tells whatever or
not an axis should be inversed. Callers will typically set inverse[1]
to true
in order to inverse the y axis.
gridRange
- The valid coordinate range of a grid coverage.userRange
- The corresponding coordinate range in user coordinate.
This rectangle must contains entirely all pixels, i.e.
the rectangle's upper left corner must coincide with
the upper left corner of the first pixel and the rectangle's
lower right corner must coincide with the lower right corner
of the last pixel.inverse
- Tells whatever or not inverse axis. A null
value
inverse no axis.public GridGeometry(java.awt.Rectangle gridRange, java.awt.geom.Rectangle2D userRange)
gridRange
and userRange
are assumed to
have y axis in opposite direction).
gridRange
- The valid coordinate range of a grid coverage.
Increasing x values goes right and
increasing y values goes down.userRange
- The corresponding coordinate range in user coordinate.
Increasing x values goes right and
increasing y values goes up.
This rectangle must contains entirely all pixels, i.e.
the rectangle's upper left corner must coincide with
the upper left corner of the first pixel and the rectangle's
lower right corner must coincide with the lower right corner
of the last pixel.Method Detail |
public int getDimension()
getDimension
in interface Dimensioned
public Envelope getEnvelope() throws InvalidGridGeometryException
InvalidGridGeometryException
- if the envelope can't be computed.getGridRange()
,
getGridToCoordinateSystem()
public GridRange getGridRange() throws InvalidGridGeometryException
BufferedImage
, but may be non-zero for arbitrary RenderedImage
. A
grid with 512 cells can have a minimum coordinate of 0 and maximum of 512, with 511 as the
highest valid index.
null
).
InvalidGridGeometryException
- if this grid geometry has no grid range.GC_GridGeometry.getGridRange()
,
RenderedImage.getMinX()
,
RenderedImage.getMinY()
,
RenderedImage.getWidth()
,
RenderedImage.getHeight()
public MathTransform getGridToCoordinateSystem() throws InvalidGridGeometryException
Coverage.getCoordinateSystem()
. If no math
transform is available, this method returns null
.
null
).
InvalidGridGeometryException
- if this grid geometry has no transform.GC_GridGeometry.getGridToCoordinateSystem()
public MathTransform2D getGridToCoordinateSystem2D() throws InvalidGridGeometryException
AffineTransform
, which
make it convenient for interoperability with Java2D.
InvalidGridGeometryException
- if a two-dimensional transform is not available
for this grid geometry.public int hashCode()
public boolean equals(java.lang.Object object)
public java.lang.String toString()
|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |