Class OperatorShapePreservingDensify

  • Direct Known Subclasses:
    OperatorShapePreservingDensifyLocal

    abstract class OperatorShapePreservingDensify
    extends Operator
    Densifies geometries preserving the shape of the segments in a given spatial reference by length and/or deviation. The elliptic arc lengths of the resulting line segments are no longer than the given max length, and the line segments will be closer than the given max deviation to both the original segment curve and the joining elliptic arcs.
    • Constructor Detail

      • OperatorShapePreservingDensify

        OperatorShapePreservingDensify()
    • Method Detail

      • execute

        public abstract GeometryCursor execute​(GeometryCursor geoms,
                                               SpatialReference sr,
                                               double maxLengthMeters,
                                               double maxDeviationMeters,
                                               double reserved,
                                               ProgressTracker progressTracker)
        Performs the Shape Preserving Densify operation on the geometry set. Attributes are interpolated along the scalar t-values of the input segments obtained from the length ratios along the densified segments.
        Parameters:
        geoms - The geometries to be densified.
        sr - The spatial reference of the geometries.
        maxLengthMeters - The maximum segment length allowed. Must be a positive value to be used. Pass zero or NaN to disable densification by length.
        maxDeviationMeters - The maximum deviation. Must be a positive value to be used. Pass zero or NaN to disable densification by deviation.
        reserved - Must be 0 or NaN. Reserved for future use. Throws and exception if not NaN or 0.
        Returns:
        Returns the densified geometries (It does nothing to geometries with dim less than 1, but simply passes them along). The operation always starts from the lowest point on the segment, thus guaranteeing that topologically equal segments are always densified exactly the same.
      • execute

        public abstract Geometry execute​(Geometry geom,
                                         SpatialReference sr,
                                         double maxLengthMeters,
                                         double maxDeviationMeters,
                                         double reserved,
                                         ProgressTracker progressTracker)
        Performs the Shape Preserving Densify operation on the geometry. Attributes are interpolated along the scalar t-values of the input segments obtained from the length ratios along the densified segments.
        Parameters:
        geom - The geometry to be densified.
        sr - The spatial reference of the geometry.
        maxLengthMeters - The maximum segment length allowed. Must be a positive value to be used. Pass zero or NaN to disable densification by length.
        maxDeviationMeters - The maximum deviation. Must be a positive value to be used. Pass zero or NaN to disable densification by deviation.
        reserved - Must be 0 or NaN. Reserved for future use. Throws and exception if not NaN or 0.
        Returns:
        Returns the densified geometries (It does nothing to geometries with dim less than 1, but simply passes them along). The operation always starts from the lowest point on the segment, thus guaranteeing that topologically equal segments are always densified exactly the same.