Overview | Package | Class | Tree | Deprecated | Index | Help
PREV CLASS NEXT CLASS | FRAMES NO FRAMES
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD

## org.gdal.osr
Class CoordinateTransformation

    java.lang.Object
      org.gdal.osr.CoordinateTransformation

    public class CoordinateTransformation

extends Object

Object for transforming between coordinate systems.

The CoordinateTransformation class is a binding for the C++ OGRCoordinateTransformation class.

Constructor Summary
`CoordinateTransformation(SpatialReference src, SpatialReference dst)` Create transformation object.

Method Summary
`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.

Methods inherited from class java.lang.Object
`equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait`

Constructor Detail

### CoordinateTransformation

    public CoordinateTransformation(SpatialReference src,
                                    SpatialReference dst)

  Create transformation object. Input spatial reference system objects are assigned by copy (calling clone() method) and no ownership transfer occurs.

  Parameters:
    `src` - source spatial reference system.
    `dst` - target spatial reference system.

Method Detail

### delete

    public void delete()

### TransformPoint

    public double[] TransformPoint(double x,
                                   double y,
                                   double z)

  Transform point from source to destination space.

  Parameters:
    `x` - input x value
    `y` - input y value
  Returns:
    the transformed coordinates
  Since:
    Java bindings 1.7.0

### TransformPoint

    public double[] TransformPoint(double x,
                                   double y)

  Transform point from source to destination space.

  Parameters:
    `x` - input x value
    `y` - input y value
  Returns:
    the transformed coordinates
  Since:
    Java bindings 1.7.0

### TransformPoint

    public void TransformPoint(double[] inout)

  Transform point from source to destination space. The provided array will be modified in place.

  Parameters:
    `inout` - an array of 3 doubles

### TransformPoint

    public void TransformPoint(double[] argout,
                               double x,
                               double y,
                               double z)

  Transform point from source to destination space.

  Parameters:
    `argout` - array of 3 double values where the transformed coordinates will be put.
    `x` - input x value
    `y` - input y value
    `z` - input z value

### TransformPoint

    public void TransformPoint(double[] argout,
                               double x,
                               double y)

  Transform point from source to destination space.

  Parameters:
    `argout` - array of 3 double values where the transformed coordinates will be put.
    `x` - input x value
    `y` - input y value
  Since:
    Java bindings 1.7.0

### TransformPoints

    public void TransformPoints(double[][] pointArray)

  Transform points from source to destination space. The provided array will be modified in place.

  Parameters:
    `pointArray` - an array of coordinates. Each coordinate can be either 2D or 3D

Overview | Package | Class | Tree | Deprecated | Index | Help
PREV CLASS NEXT CLASS | FRAMES NO FRAMES
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD