Class GeometryBoxDeleter.BoxDeleteVertexOperation

java.lang.Object
org.locationtech.jts.geom.util.GeometryEditor.CoordinateOperation
org.locationtech.jtstest.testbuilder.geom.GeometryBoxDeleter.BoxDeleteVertexOperation
All Implemented Interfaces:
GeometryEditor.GeometryEditorOperation
Enclosing class:
GeometryBoxDeleter

private static class GeometryBoxDeleter.BoxDeleteVertexOperation extends GeometryEditor.CoordinateOperation
  • Field Details

    • env

      private Envelope env
    • isEdited

      private boolean isEdited
  • Constructor Details

    • BoxDeleteVertexOperation

      public BoxDeleteVertexOperation(Envelope env)
  • Method Details

    • isEdited

      public boolean isEdited()
    • edit

      public Coordinate[] edit(Coordinate[] coords, Geometry geometry)
      Description copied from class: GeometryEditor.CoordinateOperation
      Edits the array of 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.

      Specified by:
      edit in class GeometryEditor.CoordinateOperation
      Parameters:
      coords - the coordinate array to operate on
      geometry - the geometry containing the coordinate list
      Returns:
      an edited coordinate array (which may be the same as the input)
    • hasVertexInBox

      private boolean hasVertexInBox(Coordinate[] coords)