|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.deegree.cs.Transformer
org.deegree.cs.CoordinateTransformer
public class CoordinateTransformer
Base class for transforming coordinates to new a coordinate reference systems.
| Constructor Summary | |
|---|---|
CoordinateTransformer(ICRS targetCRS)
Creates a new CoordinateTransformer object. |
|
CoordinateTransformer(String targetCRS)
Creates a new CoordinateTransformer object, with the given id as the target CRS. |
|
CoordinateTransformer(Transformation transformation)
Creates a new CoordinateTransformer object, with the given id as the target CRS. |
|
| Method Summary | |
|---|---|
double[] |
transform(ICRS sourceCRS,
double[] input,
double[] out)
Transforms a given coordinate into the CoordinateTransformer's coordinate system. |
List<javax.vecmath.Point3d> |
transform(ICRS sourceCRS,
List<javax.vecmath.Point3d> points)
Transforms all points to the CoordinateTransformer's coordinate system. |
| Methods inherited from class org.deegree.cs.Transformer |
|---|
createCRSTransformation, createCRSTransformation, createCRSTransformation, getTargetCRS |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public CoordinateTransformer(ICRS targetCRS)
throws IllegalArgumentException
targetCRS -
IllegalArgumentException - if the given parameter is null.
public CoordinateTransformer(String targetCRS)
throws UnknownCRSException,
IllegalArgumentException
targetCRS - an identifier to which all other CRS's shall be transformed.
UnknownCRSException - if the given crs name could not be mapped to a valid (configured) crs.
IllegalArgumentException - if the given parameter is null.
public CoordinateTransformer(Transformation transformation)
throws IllegalArgumentException
transformation - to be used.
IllegalArgumentException - if the given parameter is null.| Method Detail |
|---|
public List<javax.vecmath.Point3d> transform(ICRS sourceCRS,
List<javax.vecmath.Point3d> points)
throws TransformationException,
IllegalArgumentException
sourceCRS - in which the given points are referenced.points - to transform.
null
TransformationException - if no transformation could be created for the given source and target crs.
IllegalArgumentException - if the sourceCRS is null
public double[] transform(ICRS sourceCRS,
double[] input,
double[] out)
throws IllegalArgumentException,
TransformationException
sourceCRS - crs of the input coordinate, must not be nullinput - input coordinate, must not be null and array length must match the number of dimensions
of sourceCRSout - output coordinate, used to store the transformed ordinates, must not be null and array
length must match the number of dimensions of the target crs
out
TransformationException
IllegalArgumentException
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||