com.vividsolutions.jts.geom.util
Class GeometryEditor.CoordinateOperation
java.lang.Object
com.vividsolutions.jts.geom.util.GeometryEditor.CoordinateOperation
- GeometryEditor
- GeometryEditor.GeometryEditorOperation
public static abstract class GeometryEditor.CoordinateOperation
extends java.lang.Object
edit
public abstract Coordinate[] edit(Coordinate[] coordinates,
Geometry geometry)
coordinates
- the coordinate array to operate ongeometry
- the geometry containing the coordinate list
- an edited coordinate array (which may be the same as the input)
edit
public Geometry edit(Geometry geometry,
GeometryFactory factory)
Edits a Geometry by returning a new Geometry with a modification.
The returned Geometry might be the same as the Geometry passed in.
- 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)
- a new Geometry which is a modification of the input Geometry