|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
ObjectGeometryCoordinateSequenceTransformer
public class GeometryCoordinateSequenceTransformer
Service object that takes a geometry an applies a MathTransform on top of it.
Constructor Summary | |
---|---|
GeometryCoordinateSequenceTransformer()
|
|
GeometryCoordinateSequenceTransformer(CoordinateSequenceTransformer transformer)
|
Method Summary | |
---|---|
CoordinateSequence |
projectCoordinateSequence(CoordinateSequence cs)
|
void |
setCoordinateReferenceSystem(CoordinateReferenceSystem crs)
Sets the target coordinate reference system. |
void |
setMathTransform(MathTransform transform)
Sets the math transform to be used for transformation |
Geometry |
transform(Geometry g)
Applies the transform to the provided geometry, given |
LineString |
transformLineString(LineString ls,
GeometryFactory gf)
|
Point |
transformPoint(Point point,
GeometryFactory gf)
|
Polygon |
transformPolygon(Polygon polygon,
GeometryFactory gf)
|
Methods inherited from class Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public GeometryCoordinateSequenceTransformer()
public GeometryCoordinateSequenceTransformer(CoordinateSequenceTransformer transformer)
Method Detail |
---|
public void setMathTransform(MathTransform transform)
transform
- public void setCoordinateReferenceSystem(CoordinateReferenceSystem crs)
This value is used to set the coordinate reference system of geometries after they have been transformed.
crs
- The target coordinate reference system.public Geometry transform(Geometry g) throws TransformException
g
-
TransformException
public LineString transformLineString(LineString ls, GeometryFactory gf) throws TransformException
TransformException
public Point transformPoint(Point point, GeometryFactory gf) throws TransformException
point
-
TransformException
public CoordinateSequence projectCoordinateSequence(CoordinateSequence cs) throws TransformException
cs
- a CoordinateSequence
TransformException
public Polygon transformPolygon(Polygon polygon, GeometryFactory gf) throws TransformException
polygon
-
TransformException
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |