Class OperatorProjectLocal


class OperatorProjectLocal extends OperatorProject
  • Constructor Details

    • OperatorProjectLocal

      OperatorProjectLocal()
  • Method Details

    • execute

      public GeometryCursor execute(GeometryCursor inputGeoms, ProjectionTransformation transform, ProgressTracker progressTracker)
      Description copied from class: OperatorProject
      Performs the Project operation on a geometry cursor
      Specified by:
      execute in class OperatorProject
      Returns:
      Returns a GeometryCursor.
    • execute

      public Geometry execute(Geometry inputGeom, ProjectionTransformation transform, ProgressTracker progressTracker)
      Description copied from class: OperatorProject
      Performs the Project operation on a single geometry instance
      Specified by:
      execute in class OperatorProject
      Returns:
      Returns the Geometry after projection
    • transform

      public int transform(ProjectionTransformation transform, Point[] pointsIn, int count, Point[] pointsOut)
      Description copied from class: OperatorProject
      Transforms an array of points. Returns the number of points transformed.
      Specified by:
      transform in class OperatorProject
    • transform

      public double[] transform(ProjectionTransformation transform, double[] coordsSrc, int pointCount)
      Description copied from class: OperatorProject
      Transforms an array of 2D points and returns it. The points are stored in an interleaved array (x0, y0, x1, y1, x2, y2, ...).
      Specified by:
      transform in class OperatorProject
      Parameters:
      transform - ProjectionTransformation
      coordsSrc - source coordinates to project.
      pointCount - the point count in the coordSrc. THere has to be at least pointCount * 2 elements in the coordsSrc array.
      Returns:
      projected coordinates in the interleaved form.
    • foldInto360RangeGeodetic

      public Geometry foldInto360RangeGeodetic(Geometry _geom, SpatialReference pannableSR, int curveType)
      Description copied from class: OperatorProject
      Same as fold_into_360_range. The difference is that this function preserves geodetic area of polygons and geodetic length of polylines. It does not preserve regular area and length or perimeter of polygons. Also, this function might change tangent of the lines at the points of folding. If the geometry is an Envelope fold_into_360_range returns a polygon, unless the Envelope is empty, in which case the empty envelope is returned. The result geometry will be completely inside of the coordinate system extent. The folding happens where geometry intersects the min or max meridian of the spatial reference and when geometry is completely outside of the min-max meridian range.
      Specified by:
      foldInto360RangeGeodetic in class OperatorProject
      Parameters:
      _geom - The geometry to be folded.
      pannableSR - The pannable Spatial Reference.
      curveType - The type of geodetic curve to use to produce vertices at the points of folding. \return Folded geometry.
    • foldInto360Range

      public Geometry foldInto360Range(Geometry geom, SpatialReference pannableSR)
      Description copied from class: OperatorProject
      Folds a geometry into the 360 degree range of the associated spatial reference. If the spatial reference be a 'pannable' PCS or GCS. For other spatial types, the function throws an invalid argument exception. A pannable PCS it a Rectangular PCS where the x coordinate range is equivalent to a 360 degree range on the defining geographic Coordinate System(GCS). If the spatial reference is a GCS then it is always pannable(default 360 range for spatial reference in GCS coordinates is -180 to 180) If the geometry is an Envelope fold_into_360_range returns a polygon, unless the Envelope is empty, in which case the empty envelope is returned. The result geometry will be completely inside of the coordinate system extent. The folding happens where geometry intersects the min or max meridian of the spatial reference and when geometry is completely outside of the min-max meridian range. Folding does not preserve geodetic area or length. Folding does not preserve perimeter of a polygon.
      Specified by:
      foldInto360Range in class OperatorProject
      Parameters:
      geom - The geometry to be folded.
      pannableSR - The pannable Spatial Reference.
      Returns:
      Folded geometry.