Package com.esri.core.geometry
Class GeometryCursor
- java.lang.Object
-
- com.esri.core.geometry.GeometryCursor
-
- Direct Known Subclasses:
Bufferer.GeometryCursorForMultiPoint
,Bufferer.GeometryCursorForPolygon
,Bufferer.GeometryCursorForPolyline
,Bufferer.GlueingCursorForPolyline
,GeometryCursorAppend
,ListeningGeometryCursor
,OGCConcreteGeometryCollection.FlatteningCollectionCursor
,OGCConcreteGeometryCollection.GeometryCursorOGC
,OGCStructureInternal.EditShapeCursor
,OperatorBoundaryLocalCursor
,OperatorBufferCursor
,OperatorClipCursor
,OperatorConvexHullCursor
,OperatorCutCursor
,OperatorDensifyByLengthCursor
,OperatorDifferenceCursor
,OperatorGeneralizeCursor
,OperatorImportFromESRIShapeCursor
,OperatorIntersectionCursor
,OperatorOffsetCursor
,OperatorSimplifyCursor
,OperatorSimplifyCursorOGC
,OperatorSymmetricDifferenceCursor
,OperatorUnionCursor
,SimpleGeometryCursor
public abstract class GeometryCursor extends java.lang.Object
An abstract Geometry Cursor class.
-
-
Constructor Summary
Constructors Constructor Description GeometryCursor()
-
Method Summary
All Methods Instance Methods Abstract Methods Concrete Methods Modifier and Type Method Description abstract int
getGeometryID()
Returns the ID of the current geometry.abstract Geometry
next()
Moves the cursor to the next Geometry.boolean
tock()
Executes a unit of work on the cursor.
-
-
-
Method Detail
-
next
public abstract Geometry next()
Moves the cursor to the next Geometry. Returns null when reached the end. The behavior of the cursor is undefined after the method returns null.
-
getGeometryID
public abstract int getGeometryID()
Returns the ID of the current geometry. The ID is propagated across the operations (when possible). Returns an ID associated with the current Geometry. The ID is passed along and is returned by some operators to preserve relationship between the input and output geometry classes. It is not always possible to preserve an ID during an operation.
-
tock
public boolean tock()
Executes a unit of work on the cursor.- Returns:
- Returns true, if there is a geometry ready to be pulled using next(). This method is to be used together with the tick() method on the ListeningGeometryCursor. Call tock() for each tick() on the ListeningGeometryCursor.
-
-