|
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.Objectorg.deegree.crs.Transformer
org.deegree.geometry.GeometryTransformer
public class GeometryTransformer
Transforms a geometry defined in a CoordinateSystem into a geometry defined in another
CoordinateSystem
| Constructor Summary | |
|---|---|
GeometryTransformer(CoordinateSystem targetCRS)
Creates a new GeometryTransformer object. |
|
GeometryTransformer(String targetCRS)
Creates a new GeometryTransformer object, with the given id as the target CRS. |
|
GeometryTransformer(Transformation definedTransformation)
|
|
| Method Summary | |
|---|---|
Geometry |
transform(Geometry geo)
transforms the coordinates of a deegree geometry to the target coordinate reference system. |
Geometry |
transform(Geometry geo,
boolean testValidDomain)
transforms the coordinates of a deegree geometry to the target coordinate reference system. |
Geometry |
transform(Geometry geo,
CoordinateSystem sourceCRS)
transforms the coordinates of a deegree geometry to the target coordinate reference system. |
Geometry |
transform(Geometry geom,
CoordinateSystem sourceCRS,
boolean testValidArea)
transforms the coordinates of a deegree geometry to the target coordinate reference system. |
Geometry |
transform(Geometry geo,
String sourceCRS)
transforms the coordinates of a deegree geometry to the target coordinate reference 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 GeometryTransformer(CoordinateSystem targetCRS)
throws IllegalArgumentException
targetCRS -
IllegalArgumentException - if the given parameter is null.
public GeometryTransformer(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 GeometryTransformer(Transformation definedTransformation)
throws IllegalArgumentException
definedTransformation - to use instead of the CRSFactory.
IllegalArgumentException - if the given parameter is null.| Method Detail |
|---|
public Geometry transform(Geometry geo)
throws TransformationException,
IllegalArgumentException,
UnknownCRSException
geo - to be transformed
TransformationException - if the transformation between the source and target crs cannot be created.
IllegalArgumentException - if the coordinates system of the geometry is null
UnknownCRSException
public Geometry transform(Geometry geo,
boolean testValidDomain)
throws TransformationException,
IllegalArgumentException,
UnknownCRSException
geo - to be transformedtestValidDomain - true if the incoming geometry should be checked against the domain of validity of the CoordinateSystem
it is defined in.
TransformationException - if the transformation between the source and target crs cannot be created.
IllegalArgumentException - if the coordinates system of the geometry is null
UnknownCRSException
public Geometry transform(Geometry geo,
String sourceCRS)
throws TransformationException,
IllegalArgumentException,
UnknownCRSException
geo - to be transformedsourceCRS - the source CRS for the geometry. overwrites the CRS of the geometry.
TransformationException - if the transformation between the source and target crs cannot be created.
IllegalArgumentException - if the coordinates system of the geometry is null
UnknownCRSException - if the given CRS is not found
public Geometry transform(Geometry geo,
CoordinateSystem sourceCRS)
throws TransformationException,
IllegalArgumentException
geo - to be transformedsourceCRS - the source CRS for the geometry. overwrites the CRS of the geometry.
TransformationException - if the transformation between the source and target crs cannot be created.
IllegalArgumentException - if the coordinates system of the geometry is null
public Geometry transform(Geometry geom,
CoordinateSystem sourceCRS,
boolean testValidArea)
throws IllegalArgumentException,
TransformationException
geom - to be transformedsourceCRS - the source CRS for the geometry. overwrites the CRS of the geometry.testValidArea - true if the geometry should be be checked of the valid area of the source crs.
IllegalArgumentException - if the coordinates system of the geometry is null
TransformationException - if the transformation between the source and target crs cannot be created.
|
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 | |||||||||