public class ImageGeometry extends Object implements GridGeometry, Serializable, Cloneable
GridCoverage2D
(the later rather use GridGeometry2D
). But it is
sometime used with plain rendered image instances.GridGeometry2D
,
GeneralGridGeometry
,
Serialized FormConstructor and Description |
---|
ImageGeometry(Rectangle bounds,
AffineTransform gridToCRS)
Creates a grid geometry from the specified bounds and grid to CRS affine
transform.
|
Modifier and Type | Method and Description |
---|---|
ImageGeometry |
clone()
Returns a clone of this image geometry.
|
boolean |
equals(Object object)
Compares this grid geometry with the specified one for equality.
|
GridEnvelope2D |
getGridRange()
Returns the image bounds in pixel coordinates.
|
AffineTransform2D |
getGridToCoordinateSystem()
Deprecated.
Renamed as
getGridToCRS() . |
AffineTransform2D |
getGridToCRS()
Returns the conversion from grid coordinates to real world earth coordinates.
|
int |
hashCode()
Returns a hash code value for this grid geometry.
|
String |
toString()
Returns a string representation of this grid geometry.
|
public ImageGeometry(Rectangle bounds, AffineTransform gridToCRS)
bounds
- The image bounds in pixel coordinates.gridToCRS
- The affine transform from pixel coordinates to "real world" coordinates.public GridEnvelope2D getGridRange()
getGridRange
in interface GridGeometry
public AffineTransform2D getGridToCRS()
getGridToCRS
in interface GridGeometry
public AffineTransform2D getGridToCoordinateSystem()
getGridToCRS()
.public String toString()
public int hashCode()
public boolean equals(Object object)
public ImageGeometry clone()
clone
in class Object
Object.clone()
Copyright © 1996–2019 Geotools. All rights reserved.