oracle.sdoapi.sref
Interface Transform


public interface Transform

Transforms geometry between spatial reference systems.

A transform has a source spatial reference system (SRS) and a target spatial reference system (SRS).

A transform is created by the SRManager and transfroms geometries from a source spatial reference system to a target spatial reference system.


Method Summary
 SpatialReference getSourceSRS()
          Returns the source spatial reference system of this transform.
 SpatialReference getTargetSRS()
          Returns the target spatial reference system of this transform.
 boolean transform(double[] src, double[] dst)
          Transforms a pair of ordinates from source to target spatial reference system.
 Geometry transform(Geometry input)
          Transforms input geometry to the target spatial reference system (SRS).
 

Method Detail

getSourceSRS

public SpatialReference getSourceSRS()
Returns the source spatial reference system of this transform.

getTargetSRS

public SpatialReference getTargetSRS()
Returns the target spatial reference system of this transform.

transform

public Geometry transform(Geometry input)
                   throws SRException
Transforms input geometry to the target spatial reference system (SRS). A new geometry is returned which has the exact same set of coordinates but are in the target SRS. The input geometry is not changed.
Returns:
the new geometry in target SRS

transform

public boolean transform(double[] src,
                         double[] dst)
Transforms a pair of ordinates from source to target spatial reference system.
Parameters:
src - pair of source ordinates ([x,y] or [lon, lat])
dst - pair of destination ordinates