Class OperatorSimplifyLocalHelper


  • class OperatorSimplifyLocalHelper
    extends java.lang.Object
    • Constructor Detail

      • OperatorSimplifyLocalHelper

        OperatorSimplifyLocalHelper​(Geometry geometry,
                                    SpatialReference spatialReference,
                                    int knownSimpleResult,
                                    ProgressTracker progressTracker,
                                    boolean bOGCRestrictions)
    • Method Detail

      • isSimplePlanarImpl_

        private int isSimplePlanarImpl_()
      • testToleranceDistance_

        private boolean testToleranceDistance_​(int xyindex1,
                                               int xyindex2)
      • checkStructure_

        private boolean checkStructure_()
      • checkDegenerateSegments_

        private boolean checkDegenerateSegments_​(boolean bTestZs)
      • checkClustering_

        private boolean checkClustering_()
      • checkCracking_

        private boolean checkCracking_()
      • checkCrackingPlanesweep_

        private boolean checkCrackingPlanesweep_()
      • checkCrackingBrute_

        private boolean checkCrackingBrute_()
      • checkSelfIntersections_

        private boolean checkSelfIntersections_()
      • checkSelfIntersectionsPolylinePlanar_

        boolean checkSelfIntersectionsPolylinePlanar_()
      • check_self_intersections_polygons_OGC_

        boolean check_self_intersections_polygons_OGC_()
      • checkValidRingOrientation_

        private int checkValidRingOrientation_()
      • processBunchForSelfIntersectionTest_

        private boolean processBunchForSelfIntersectionTest_​(AttributeStreamOfInt32 bunch)
      • processBunchForRingOrientationTest_

        private boolean processBunchForRingOrientationTest_​(AttributeStreamOfInt32 bunch)
      • multiPointIsSimpleAsFeature_

        int multiPointIsSimpleAsFeature_()
      • polylineIsSimpleAsFeature_

        int polylineIsSimpleAsFeature_()
      • polygonIsSimpleAsFeature_

        int polygonIsSimpleAsFeature_()
      • multiPointSimplifyAsFeature_

        MultiPoint multiPointSimplifyAsFeature_()
      • polylineSimplifyAsFeature_

        Polyline polylineSimplifyAsFeature_()
      • polygonSimplifyAsFeature_

        Polygon polygonSimplifyAsFeature_()
      • isSimplePlanar

        protected static int isSimplePlanar​(Geometry geometry,
                                            SpatialReference spatialReference,
                                            boolean bForce,
                                            ProgressTracker progressTracker)
        The code is executed in the 2D plane only.Attributes are ignored. MultiPoint-check for clustering. Polyline -check for clustering and cracking. Polygon -check for clustering,cracking,absence of self-intersections,and correct ring ordering.
      • isSimpleAsFeature

        protected static int isSimpleAsFeature​(Geometry geometry,
                                               SpatialReference spatialReference,
                                               boolean bForce,
                                               NonSimpleResult result,
                                               ProgressTracker progressTracker)
        Checks if Geometry is simple for storing in DB: MultiPoint:check that no points coincide.tolerance is ignored. Polyline:ensure there no segments degenerate segments. Polygon:Same as IsSimplePlanar.
      • simplifyAsFeature

        protected static Geometry simplifyAsFeature​(Geometry geometry,
                                                    SpatialReference spatialReference,
                                                    boolean bForce,
                                                    ProgressTracker progressTracker)
        Simplifies geometries for storing in DB: MultiPoint:check that no points coincide.tolerance is ignored. Polyline:ensure there no segments degenerate segments. Polygon:cracks and clusters using cluster tolerance and resolves all self intersections, orients rings properly and arranges the rings in the OGC order. Returns simplified geometry.
      • simplifyOGC

        static Geometry simplifyOGC​(Geometry geometry,
                                    SpatialReference spatialReference,
                                    boolean bForce,
                                    ProgressTracker progressTracker)
        Simplifies geometries for storing in OGC format: MultiPoint:check that no points coincide.tolerance is ignored. Polyline:ensure there no segments degenerate segments. Polygon:cracks and clusters using cluster tolerance and resolves all self intersections, orients rings properly and arranges the rings in the OGC order. Returns simplified geometry.
      • compareVertices_

        private int compareVertices_​(int i1,
                                     int i2,
                                     boolean get_paths)
      • compareVerticesMultiPoint_

        private int compareVerticesMultiPoint_​(int i1,
                                               int i2)
      • compareVerticesMultiPoint2_

        private int compareVerticesMultiPoint2_​(int i1,
                                                int i2)