Skip to content
Closed
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -106,7 +106,7 @@ public BoxDeleteVertexOperation(Envelope env)

public boolean isEdited() { return isEdited; }

public Coordinate[] edit(Coordinate[] coords,
public Coordinate[] editCoordinates(Coordinate[] coords,
Geometry geometry)
{
if (isEdited) return coords;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -41,7 +41,7 @@ public DeleteVertexOperation(LineString line, int vertexIndex)
this.vertexIndex = vertexIndex;
}

public Coordinate[] edit(Coordinate[] coords,
public Coordinate[] editCoordinates(Coordinate[] coords,
Geometry geometry)
{
if (geometry != line) return coords;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -41,7 +41,7 @@ public InsertVertexOperation(LineString line, int segIndex, Coordinate newVertex
this.newVertex = newVertex;
}

public Coordinate[] edit(Coordinate[] coords,
public Coordinate[] editCoordinates(Coordinate[] coords,
Geometry geometry)
{
if (geometry != line) return coords;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -37,7 +37,7 @@ public MoveVertexOperation(Coordinate fromLoc, Coordinate toLoc)
this.toLoc = toLoc;
}

public Coordinate[] edit(Coordinate[] coords,
public Coordinate[] editCoordinates(Coordinate[] coords,
Geometry geometry)
{
Coordinate[] newPts = new Coordinate[coords.length];
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -59,7 +59,7 @@ public MoveVerticesOperation(Map moves)
}


public Coordinate[] edit(Coordinate[] coords,
public Coordinate[] editCoordinates(Coordinate[] coords,
Geometry geometry)
{
Coordinate[] newPts = new Coordinate[coords.length];
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -279,17 +279,17 @@ public abstract static class CoordinateOperation
{
public final Geometry edit(Geometry geometry, GeometryFactory factory) {
if (geometry instanceof LinearRing) {
return factory.createLinearRing(edit(geometry.getCoordinates(),
return factory.createLinearRing(editCoordinates(geometry.getCoordinates(),
geometry));
}

if (geometry instanceof LineString) {
return factory.createLineString(edit(geometry.getCoordinates(),
return factory.createLineString(editCoordinates(geometry.getCoordinates(),
geometry));
}

if (geometry instanceof Point) {
Coordinate[] newCoordinates = edit(geometry.getCoordinates(),
Coordinate[] newCoordinates = editCoordinates(geometry.getCoordinates(),
geometry);

return factory.createPoint((newCoordinates.length > 0)
Expand All @@ -310,7 +310,7 @@ public final Geometry edit(Geometry geometry, GeometryFactory factory) {
* @param geometry the geometry containing the coordinate list
* @return an edited coordinate array (which may be the same as the input)
*/
public abstract Coordinate[] edit(Coordinate[] coordinates,
public abstract Coordinate[] editCoordinates(Coordinate[] coordinates,
Geometry geometry);
}

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -31,7 +31,7 @@ public PrecisionReducerCoordinateOperation(PrecisionModel targetPM, boolean remo
this.removeCollapsed = removeCollapsed;
}

public Coordinate[] edit(Coordinate[] coordinates, Geometry geom) {
public Coordinate[] editCoordinates(Coordinate[] coordinates, Geometry geom) {
if (coordinates.length == 0)
return null;

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -109,7 +109,7 @@ public Geometry reduce(Geometry geom)
private class PrecisionReducerCoordinateOperation
extends GeometryEditor.CoordinateOperation
{
public Coordinate[] edit(Coordinate[] coordinates, Geometry geom)
public Coordinate[] editCoordinates(Coordinate[] coordinates, Geometry geom)
{
if (coordinates.length == 0) return null;

Expand Down