Package com.esri.core.geometry
Class ListeningGeometryCursor
- java.lang.Object
-
- com.esri.core.geometry.GeometryCursor
-
- com.esri.core.geometry.ListeningGeometryCursor
-
public final class ListeningGeometryCursor extends GeometryCursor
A GeometryCursor implementation that allows pushing geometries into it. To be used with aggregating operations, OperatorUnion and OperatorConvexHull, when the geometries are not available at the time of the execute method call, but are coming in a stream.
-
-
Field Summary
Fields Modifier and Type Field Description (package private) java.util.LinkedList<Geometry>m_geomList(package private) intm_index
-
Constructor Summary
Constructors Constructor Description ListeningGeometryCursor()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description intgetGeometryID()Returns the ID of the current geometry.Geometrynext()Moves the cursor to the next Geometry.voidtick(Geometry geom)Call this method to add geometry to the cursor.-
Methods inherited from class com.esri.core.geometry.GeometryCursor
tock
-
-
-
-
Field Detail
-
m_geomList
java.util.LinkedList<Geometry> m_geomList
-
m_index
int m_index
-
-
Method Detail
-
getGeometryID
public int getGeometryID()
Description copied from class:GeometryCursorReturns 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.- Specified by:
getGeometryIDin classGeometryCursor
-
next
public Geometry next()
Description copied from class:GeometryCursorMoves the cursor to the next Geometry. Returns null when reached the end. The behavior of the cursor is undefined after the method returns null.- Specified by:
nextin classGeometryCursor
-
tick
public void tick(Geometry geom)
Call this method to add geometry to the cursor. After this method is called, call immediately the tock() method on the GeometryCursor returned by the OperatorUnion (or OperatorConvexHull with b_merge == true). Call next() on the GeometryCursor returned by the OperatorUnion when done listening to incoming geometries to finish the union operation.- Parameters:
geom- The geometry to be pushed into the cursor.
-
-