|
||||||||||
| 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(CoordinateSystem targetCRS)
Creates a new CoordinateTransformer object. |
|
CoordinateTransformer(java.lang.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. |
java.util.List<javax.vecmath.Point3d> |
transform(CoordinateSystem sourceCRS,
java.util.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, 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 java.lang.IllegalArgumentException
targetCRS -
java.lang.IllegalArgumentException - if the given parameter is null.
public CoordinateTransformer(java.lang.String targetCRS)
throws UnknownCRSException,
java.lang.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.
java.lang.IllegalArgumentException - if the given parameter is null.
public CoordinateTransformer(Transformation transformation)
throws java.lang.IllegalArgumentException
transformation - to be used.
java.lang.IllegalArgumentException - if the given parameter is null.| Method Detail |
|---|
public java.util.List<javax.vecmath.Point3d> transform(CoordinateSystem sourceCRS,
java.util.List<javax.vecmath.Point3d> points)
throws TransformationException,
java.lang.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.
java.lang.IllegalArgumentException - if the sourceCRS is null
public double[] transform(CoordinateSystem sourceCRS,
double[] input,
double[] out)
throws java.lang.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
java.lang.IllegalArgumentException
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||