org.geotools.geometry.jts
Class GeometryCoordinateSequenceTransformer
java.lang.Object
org.geotools.geometry.jts.GeometryCoordinateSequenceTransformer
- public class GeometryCoordinateSequenceTransformer
- extends java.lang.Object
Service object that takes a geometry an applies a MathTransform on top
of it.
- Author:
- Andrea Aime
Method Summary |
com.vividsolutions.jts.geom.CoordinateSequence |
projectCoordinateSequence(com.vividsolutions.jts.geom.CoordinateSequence cs)
|
void |
setMathTransform(org.opengis.referencing.operation.MathTransform transform)
Sets the math transform to be used for transformation |
com.vividsolutions.jts.geom.Geometry |
transform(com.vividsolutions.jts.geom.Geometry g)
Applies the transform to the provided geometry, given |
com.vividsolutions.jts.geom.LineString |
transformLineString(com.vividsolutions.jts.geom.LineString ls,
com.vividsolutions.jts.geom.GeometryFactory gf)
|
com.vividsolutions.jts.geom.Point |
transformPoint(com.vividsolutions.jts.geom.Point point,
com.vividsolutions.jts.geom.GeometryFactory gf)
|
com.vividsolutions.jts.geom.Polygon |
transformPolygon(com.vividsolutions.jts.geom.Polygon polygon,
com.vividsolutions.jts.geom.GeometryFactory gf)
|
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
GeometryCoordinateSequenceTransformer
public GeometryCoordinateSequenceTransformer()
GeometryCoordinateSequenceTransformer
public GeometryCoordinateSequenceTransformer(CoordinateSequenceTransformer transformer)
setMathTransform
public void setMathTransform(org.opengis.referencing.operation.MathTransform transform)
- Sets the math transform to be used for transformation
- Parameters:
transform
-
transform
public com.vividsolutions.jts.geom.Geometry transform(com.vividsolutions.jts.geom.Geometry g)
throws org.opengis.referencing.operation.TransformException
- Applies the transform to the provided geometry, given
- Parameters:
g
-
- Returns:
-
- Throws:
org.opengis.referencing.operation.TransformException
transformLineString
public com.vividsolutions.jts.geom.LineString transformLineString(com.vividsolutions.jts.geom.LineString ls,
com.vividsolutions.jts.geom.GeometryFactory gf)
throws org.opengis.referencing.operation.TransformException
- Returns:
-
- Throws:
org.opengis.referencing.operation.TransformException
transformPoint
public com.vividsolutions.jts.geom.Point transformPoint(com.vividsolutions.jts.geom.Point point,
com.vividsolutions.jts.geom.GeometryFactory gf)
throws org.opengis.referencing.operation.TransformException
- Parameters:
point
-
- Returns:
-
- Throws:
org.opengis.referencing.operation.TransformException
projectCoordinateSequence
public com.vividsolutions.jts.geom.CoordinateSequence projectCoordinateSequence(com.vividsolutions.jts.geom.CoordinateSequence cs)
throws org.opengis.referencing.operation.TransformException
- Returns:
-
- Throws:
org.opengis.referencing.operation.TransformException
transformPolygon
public com.vividsolutions.jts.geom.Polygon transformPolygon(com.vividsolutions.jts.geom.Polygon polygon,
com.vividsolutions.jts.geom.GeometryFactory gf)
throws org.opengis.referencing.operation.TransformException
- Parameters:
polygon
-
- Returns:
-
- Throws:
org.opengis.referencing.operation.TransformException
Copyright © GeoTools. All Rights Reserved.