|
deegree-core-3.0-pre-nightly (2010/03/05 00:01) - official | |||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object org.deegree.crs.Transformer org.deegree.crs.CoordinateTransformer
public class CoordinateTransformer
Class for transforming coordinates to new a coordinate reference systems.
Constructor Summary | |
---|---|
CoordinateTransformer(CoordinateSystem 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(CoordinateSystem sourceCRS,
double[] input,
double[] out)
Transforms a given coordinate into the CoordinateTransformer's coordinate system. |
List<javax.vecmath.Point3d> |
transform(CoordinateSystem sourceCRS,
List<javax.vecmath.Point3d> points)
Transforms all points to the CoordinateTransformer's coordinate system. |
Methods inherited from class org.deegree.crs.Transformer |
---|
createCRSTransformation, createCRSTransformation, getTargetCRS, getWrappedTargetCRS |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public CoordinateTransformer(CoordinateSystem 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(CoordinateSystem 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(CoordinateSystem sourceCRS, double[] input, double[] out) throws IllegalArgumentException, TransformationException
sourceCRS
- crs of the input coordinate, must not be null
input
- input coordinate, must not be null
and array length must match the number of dimensions
of sourceCRS
out
- 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
|
deegree-core-3.0-pre-nightly (2010/03/05 00:01) - official | |||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |