Package com.esri.core.geometry
Class OperatorUnionCursor
java.lang.Object
com.esri.core.geometry.GeometryCursor
com.esri.core.geometry.OperatorUnionCursor
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescription(package private) static final class
private static final class
-
Field Summary
FieldsModifier and TypeFieldDescriptionprivate int
private boolean
private boolean
private int
private int[]
private boolean[]
private int
private GeometryCursor
private int
private ProgressTracker
private SpatialReferenceImpl
(package private) ArrayList
<TreeMap<Integer, OperatorUnionCursor.Bin_type>> -
Constructor Summary
ConstructorsConstructorDescriptionOperatorUnionCursor
(GeometryCursor inputGeoms1, SpatialReference sr, ProgressTracker progress_tracker) -
Method Summary
Modifier and TypeMethodDescriptionprivate void
collect_geometries_to_union
(int dim) private static int
get_level_
(int sz) private Geometry
get_result_geometry
(int dim) private static int
get_vertex_count_
(Geometry geom) int
Returns the ID of the current geometry.next()
Moves the cursor to the next Geometry.private void
remove_all_bins_with_lower_dimension
(int dim) private boolean
step_()
boolean
tock()
Executes a unit of work on the cursor.
-
Field Details
-
m_inputGeoms
-
m_progress_tracker
-
m_spatial_reference
-
m_index
private int m_index -
m_b_done
private boolean m_b_done -
m_had_geometry
private boolean[] m_had_geometry -
m_dim_geom_counts
private int[] m_dim_geom_counts -
m_b_union_all_dimensions
private boolean m_b_union_all_dimensions -
m_max_dimension
private int m_max_dimension -
m_added_geoms
private int m_added_geoms -
m_current_dim
private int m_current_dim -
m_union_bins
ArrayList<TreeMap<Integer,OperatorUnionCursor.Bin_type>> m_union_bins
-
-
Constructor Details
-
OperatorUnionCursor
OperatorUnionCursor(GeometryCursor inputGeoms1, SpatialReference sr, ProgressTracker progress_tracker)
-
-
Method Details
-
get_result_geometry
-
next
Description copied from class:GeometryCursor
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.- Specified by:
next
in classGeometryCursor
-
getGeometryID
public int getGeometryID()Description copied from class:GeometryCursor
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.- Specified by:
getGeometryID
in classGeometryCursor
-
step_
private boolean step_() -
collect_geometries_to_union
-
remove_all_bins_with_lower_dimension
private void remove_all_bins_with_lower_dimension(int dim) -
add_geom
-
get_level_
private static int get_level_(int sz) -
get_vertex_count_
-
tock
public boolean tock()Description copied from class:GeometryCursor
Executes a unit of work on the cursor.- Overrides:
tock
in classGeometryCursor
- 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.
-