org.gdal.osr
public class CoordinateTransformation extends Object
The CoordinateTransformation class is a binding for the C++ OGRCoordinateTransformation class.
Constructor and Description |
---|
CoordinateTransformation(SpatialReference src,
SpatialReference dst)
Create transformation object.
|
Modifier and Type | Method and Description |
---|---|
void |
delete() |
void |
TransformPoint(double[] inout)
Transform point from source to destination space.
|
void |
TransformPoint(double[] argout,
double x,
double y)
Transform point from source to destination space.
|
void |
TransformPoint(double[] argout,
double x,
double y,
double z)
Transform point from source to destination space.
|
double[] |
TransformPoint(double x,
double y)
Transform point from source to destination space.
|
double[] |
TransformPoint(double x,
double y,
double z)
Transform point from source to destination space.
|
void |
TransformPoints(double[][] pointArray)
Transform points from source to destination space.
|
public CoordinateTransformation(SpatialReference src, SpatialReference dst)
Input spatial reference system objects are assigned by copy (calling clone() method) and no ownership transfer occurs.
src
- source spatial reference system.dst
- target spatial reference system.public void delete()
public double[] TransformPoint(double x, double y, double z)
x
- input x valuey
- input y valuepublic double[] TransformPoint(double x, double y)
x
- input x valuey
- input y valuepublic void TransformPoint(double[] inout)
The provided array will be modified in place.
inout
- an array of 3 doublespublic void TransformPoint(double[] argout, double x, double y, double z)
argout
- array of 3 double values where the transformed coordinates will be put.x
- input x valuey
- input y valuez
- input z valuepublic void TransformPoint(double[] argout, double x, double y)
argout
- array of 3 double values where the transformed coordinates will be put.x
- input x valuey
- input y valuepublic void TransformPoints(double[][] pointArray)
The provided array will be modified in place.
pointArray
- an array of coordinates. Each coordinate can be either 2D or 3D