|
JTS Topology Suite version 1.12 | ||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object com.vividsolutions.jts.geom.util.GeometryEditor.CoordinateOperation
public abstract static class GeometryEditor.CoordinateOperation
A GeometryEditor.GeometryEditorOperation
which modifies the coordinate list of a Geometry
.
Operates on Geometry subclasses which contains a single coordinate list.
Constructor Summary | |
---|---|
GeometryEditor.CoordinateOperation()
|
Method Summary | |
---|---|
abstract Coordinate[] |
edit(Coordinate[] coordinates,
Geometry geometry)
Edits the array of Coordinate s from a Geometry . |
Geometry |
edit(Geometry geometry,
GeometryFactory factory)
Edits a Geometry by returning a new Geometry with a modification. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public GeometryEditor.CoordinateOperation()
Method Detail |
---|
public final Geometry edit(Geometry geometry, GeometryFactory factory)
GeometryEditor.GeometryEditorOperation
edit
in interface GeometryEditor.GeometryEditorOperation
geometry
- the Geometry to modifyfactory
- the factory with which to construct the modified Geometry
(may be different to the factory of the input geometry)
public abstract Coordinate[] edit(Coordinate[] coordinates, Geometry geometry)
Coordinate
s from a Geometry
.
If it is desired to preserve the immutability of Geometrys, if the coordinates are changed a new array should be created and returned.
coordinates
- the coordinate array to operate ongeometry
- the geometry containing the coordinate list
|
JTS Topology Suite version 1.12 | ||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |