Class JGeometrySegmentUtil
- java.lang.Object
-
- oracle.spatial.network.nfe.vis.maps.util.JGeometrySegmentUtil
-
public class JGeometrySegmentUtil extends java.lang.Object
-
-
Constructor Summary
Constructors Constructor Description JGeometrySegmentUtil()
-
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.
-
-
-
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 objectbox
- 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.
-
-