Class SnapVerticesOp

java.lang.Object
com.vividsolutions.jump.workbench.ui.cursortool.editing.SnapVerticesOp

public class SnapVerticesOp extends Object
  • Field Details

    • INSERT_VERTICES_IF_NECESSARY_KEY

      public static final String INSERT_VERTICES_IF_NECESSARY_KEY
  • Constructor Details

    • SnapVerticesOp

      public SnapVerticesOp()
  • Method Details

    • pickTarget

      public org.locationtech.jts.geom.Coordinate pickTarget(org.locationtech.jts.geom.Geometry targetGeometry, org.locationtech.jts.geom.Geometry fence, org.locationtech.jts.geom.Coordinate suggestedTarget)
      Returns:
      null if the geometries have no vertices in the fence
    • execute

      public boolean execute(org.locationtech.jts.geom.Geometry fence, Collection<Layer> editableLayers, boolean rollingBackInvalidEdits, LayerViewPanel panel, Task task, org.locationtech.jts.geom.Coordinate suggestedTarget, Feature targetFeature, boolean insertVerticesIfNecessary) throws Exception
      Parameters:
      insertVerticesIfNecessary - whether to insert vertices into editable features with line segments (but not vertices) inside the fence
      Throws:
      Exception