public abstract static class GeometryEditorEx.CoordinateOperation extends Object implements GeometryEditorEx.GeometryEditorOperation
GeometryEditorEx.GeometryEditorOperation which edits the coordinate list of a Geometry.
Operates on Geometry subclasses which contains a single coordinate list.| Constructor and Description |
|---|
CoordinateOperation() |
| Modifier and Type | Method and Description |
|---|---|
abstract org.locationtech.jts.geom.Coordinate[] |
edit(org.locationtech.jts.geom.Coordinate[] coordinates,
org.locationtech.jts.geom.Geometry geometry)
Edits the array of
Coordinates from a Geometry. |
org.locationtech.jts.geom.Geometry |
edit(org.locationtech.jts.geom.Geometry geometry,
org.locationtech.jts.geom.GeometryFactory targetFactory)
Edits a Geometry by returning a new Geometry with a modification.
|
public final org.locationtech.jts.geom.Geometry edit(org.locationtech.jts.geom.Geometry geometry,
org.locationtech.jts.geom.GeometryFactory targetFactory)
GeometryEditorEx.GeometryEditorOperationnull if the geometry is to be deleted.edit in interface GeometryEditorEx.GeometryEditorOperationgeometry - the Geometry to modifypublic abstract org.locationtech.jts.geom.Coordinate[] edit(org.locationtech.jts.geom.Coordinate[] coordinates,
org.locationtech.jts.geom.Geometry geometry)
Coordinates 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 listCopyright © 2022. All rights reserved.