Package com.esri.core.geometry
Class OperatorProject
- java.lang.Object
-
- com.esri.core.geometry.Operator
-
- com.esri.core.geometry.OperatorProject
-
- Direct Known Subclasses:
OperatorProjectLocal
abstract class OperatorProject extends Operator
Projection of geometries to different coordinate systems.
-
-
Nested Class Summary
-
Nested classes/interfaces inherited from class com.esri.core.geometry.Operator
Operator.Type
-
-
Constructor Summary
Constructors Constructor Description OperatorProject()
-
Method Summary
All Methods Static Methods Instance Methods Abstract Methods Concrete Methods Modifier and Type Method Description abstract GeometryCursor
execute(GeometryCursor inputGeoms, ProjectionTransformation projection, ProgressTracker progressTracker)
Performs the Project operation on a geometry cursorabstract Geometry
execute(Geometry geometry, ProjectionTransformation projection, ProgressTracker progressTracker)
Performs the Project operation on a single geometry instanceabstract Geometry
foldInto360Range(Geometry geom, SpatialReference pannableSR)
Folds a geometry into the 360 degree range of the associated spatial reference.abstract Geometry
foldInto360RangeGeodetic(Geometry geom, SpatialReference pannableSR, int curveType)
Same as fold_into_360_range.Operator.Type
getType()
static OperatorProject
local()
abstract double[]
transform(ProjectionTransformation transform, double[] coordsSrc, int pointCount)
Transforms an array of 2D points and returns it.abstract int
transform(ProjectionTransformation transform, Point[] coordsSrc, int length, Point[] coordsDst)
Transforms an array of points.-
Methods inherited from class com.esri.core.geometry.Operator
accelerateGeometry, canAccelerateGeometry, deaccelerateGeometry
-
-
-
-
Method Detail
-
getType
public Operator.Type getType()
-
execute
public abstract GeometryCursor execute(GeometryCursor inputGeoms, ProjectionTransformation projection, ProgressTracker progressTracker)
Performs the Project operation on a geometry cursor- Returns:
- Returns a GeometryCursor.
-
execute
public abstract Geometry execute(Geometry geometry, ProjectionTransformation projection, ProgressTracker progressTracker)
Performs the Project operation on a single geometry instance- Returns:
- Returns the Geometry after projection
-
transform
public abstract int transform(ProjectionTransformation transform, Point[] coordsSrc, int length, Point[] coordsDst)
Transforms an array of points. Returns the number of points transformed.
-
transform
public abstract double[] transform(ProjectionTransformation transform, double[] coordsSrc, int pointCount)
Transforms an array of 2D points and returns it. The points are stored in an interleaved array (x0, y0, x1, y1, x2, y2, ...).- Parameters:
transform
- ProjectionTransformationcoordsSrc
- 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.
-
foldInto360Range
public abstract Geometry foldInto360Range(Geometry geom, SpatialReference pannableSR)
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.- Parameters:
geom
- The geometry to be folded.pannableSR
- The pannable Spatial Reference.- Returns:
- Folded geometry.
-
foldInto360RangeGeodetic
public abstract Geometry foldInto360RangeGeodetic(Geometry geom, SpatialReference pannableSR, int curveType)
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.- 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.
-
local
public static OperatorProject local()
-
-