Class JGeometrySegmentUtil


  • public class JGeometrySegmentUtil
    extends java.lang.Object
    • Method Summary

      All Methods Static Methods Concrete Methods 
      Modifier and Type Method Description
      static RTreeIndex buildSegmentTree​(JGeometry geometry)
      Builds an Rtree index for geometry segments.
      static oracle.sdovis.edit.util.JGeometrySegmentPoint getSegmentPoint​(JGeometry geometry, java.awt.geom.Point2D point, double tolerance, boolean checkIsolatedPoints, boolean checkArcs, boolean checkCircles, boolean checkRectangles, RTreeIndex segmentTree, java.lang.String segmentId)
      Get the geometry segment point that is withing tolerance of input point.
      static oracle.sdovis.edit.util.JGeometrySegmentPoint[] getSegmentPointsWithinBox​(JGeometry geometry, java.awt.geom.Rectangle2D box, RTreeIndex segmentTree, java.lang.String segmentId)
      Returns all geometry segment points that are inside the input box.
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
    • Constructor Detail

      • JGeometrySegmentUtil

        public JGeometrySegmentUtil()
    • Method Detail

      • buildSegmentTree

        public static RTreeIndex buildSegmentTree​(JGeometry geometry)
        Builds an Rtree index for geometry segments.
        Parameters:
        geometry -
        Returns:
      • getSegmentPoint

        public static oracle.sdovis.edit.util.JGeometrySegmentPoint getSegmentPoint​(JGeometry geometry,
                                                                                    java.awt.geom.Point2D point,
                                                                                    double tolerance,
                                                                                    boolean checkIsolatedPoints,
                                                                                    boolean checkArcs,
                                                                                    boolean checkCircles,
                                                                                    boolean checkRectangles,
                                                                                    RTreeIndex segmentTree,
                                                                                    java.lang.String segmentId)
        Get the geometry segment point that is withing tolerance of input point.
        Parameters:
        geometry -
        point -
        tolerance -
        checkIsolatedPoints -
        checkArcs -
        checkCircles -
        checkRectangles -
        segmentTree -
        segmentId -
        Returns:
      • getSegmentPointsWithinBox

        public static oracle.sdovis.edit.util.JGeometrySegmentPoint[] getSegmentPointsWithinBox​(JGeometry geometry,
                                                                                                java.awt.geom.Rectangle2D box,
                                                                                                RTreeIndex segmentTree,
                                                                                                java.lang.String segmentId)
        Returns all geometry segment points that are inside the input box. Applies to line string and polygon geometries. Just linear segments are considered (arcs, circles, isolated points, rectangles are not used).
        Parameters:
        geometry - the geometry object
        box - the area to check for segments points that are inside.
        segmentTree - a Rtree index for geometry segments. If null, it will be computed inside this method.
        segmentId - a key value (can be a feature key) to be assigned to segment.
        Returns:
        an array of segment point for this feature.