public class IdentityCoordinateTransform extends Object implements CoordinateTransform
CoordinateTransform
which simple converts
input coordinates to integers by rounding.
This is the default transform used by Jiffle and is slightly faster
than using an identity AffineCoordinateTransform
.Modifier and Type | Field and Description |
---|---|
static CoordinateTransform |
INSTANCE |
Modifier and Type | Method and Description |
---|---|
Point |
worldToImage(double x,
double y,
Point p)
Converts from world to image coordinates.
|
public static final CoordinateTransform INSTANCE
public Point worldToImage(double x, double y, Point p)
p
is not null
it will be set to the image coordinates, otherwise a new destination object
will be created. In both cases, the resulting point is returned.worldToImage
in interface CoordinateTransform
x
- world X ordinatey
- world Y ordinatep
- object to receive image coordinates (may be null
)Copyright © 2006–2018 GeoSolutions. All rights reserved.