Class OperatorShapePreservingProject


  • public abstract class OperatorShapePreservingProject
    extends Operator
    The Shape Preserving Project Operator. The operation transforms not only the end points of the segments but also the interior points, thus preserving the geographic location of the segment interior. A maximum offset deviation parameter controls how much the result of the projection is allowed to deviate from the true preserved shape.
    • Constructor Detail

      • OperatorShapePreservingProject

        public OperatorShapePreservingProject()
    • Method Detail

      • execute

        public abstract GeometryCursor execute​(GeometryCursor geometries,
                                               Envelope geometriesExtent,
                                               ProjectionTransformation transform,
                                               double minSegmentLengthInDegrees,
                                               double maxDeviationInSrTo,
                                               ProgressTracker progressTracker)
        Performs the Shape Preserving Project operation on a geometry cursor.
        Parameters:
        geometries - The geometry cursor to be projected.
        geometriesExtent - The extent of the geometries in the cursor. Can be null. Providing this may help with horizon clipping.
        transform - The projection transformation.
        minSegmentLengthInDegrees - A lower bound controlling the densification in the input coordinate system. Pass in 0 for default behavior, which is 1e-5 degrees. If the input coordinate system is PCS, then this value is translated to length in linear units at the equator.
        maxDeviationInSrTo - Controls much the result of the projection is allowed to deviate from the true preserved shape. Pass in 0 for default behavior, which is 100 * output tolerance.
        progressTracker - The progress tracker that allows to cancel the operation. Pass nullptr if not needed.
        Returns:
        A geometry cursor of projected geometries.
      • execute

        public abstract Geometry execute​(Geometry geometry,
                                         ProjectionTransformation transform,
                                         double minSegmentLengthInDegrees,
                                         double maxDeviationInSrTo,
                                         ProgressTracker progressTracker)
        Performs the Shape Preserving Project operation of a single geometry.
        Parameters:
        geometry - The geometry to be projected.
        transform - The projection transformation.
        minSegmentLengthInDegrees - A lower bound controlling the densification in the input coordinate system. Pass in 0 for default behavior, which is 1e-5 degrees. If the input coordinate system is PCS, then this value is translated to length in linear units at the equator.
        maxDeviationInSrTo - Controls how much the result of the projection is allowed to deviate from the true preserved shape. Pass in 0 for default behavior, which is 100 * output tolerance.
        progressTracker - The progress tracker that allows to cancel the operation. Pass nullptr if not needed.
        Returns:
        The projected geometry.