Package com.esri.core.geometry
Class OperatorProjectLocal
java.lang.Object
com.esri.core.geometry.Operator
com.esri.core.geometry.OperatorProject
com.esri.core.geometry.OperatorProjectLocal
-
Nested Class Summary
Nested classes/interfaces inherited from class com.esri.core.geometry.Operator
Operator.Type
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionexecute
(GeometryCursor inputGeoms, ProjectionTransformation transform, ProgressTracker progressTracker) Performs the Project operation on a geometry cursorexecute
(Geometry inputGeom, ProjectionTransformation transform, ProgressTracker progressTracker) Performs the Project operation on a single geometry instancefoldInto360Range
(Geometry geom, SpatialReference pannableSR) Folds a geometry into the 360 degree range of the associated spatial reference.foldInto360RangeGeodetic
(Geometry _geom, SpatialReference pannableSR, int curveType) Same as fold_into_360_range.double[]
transform
(ProjectionTransformation transform, double[] coordsSrc, int pointCount) Transforms an array of 2D points and returns it.int
transform
(ProjectionTransformation transform, Point[] pointsIn, int count, Point[] pointsOut) Transforms an array of points.Methods inherited from class com.esri.core.geometry.OperatorProject
getType, local
Methods inherited from class com.esri.core.geometry.Operator
accelerateGeometry, canAccelerateGeometry, deaccelerateGeometry
-
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 classOperatorProject
- 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 classOperatorProject
- 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 classOperatorProject
-
transform
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 classOperatorProject
- 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.
-
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 classOperatorProject
- 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
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 classOperatorProject
- Parameters:
geom
- The geometry to be folded.pannableSR
- The pannable Spatial Reference.- Returns:
- Folded geometry.
-