Package com.esri.core.geometry
Class OperatorUnionCursor
- java.lang.Object
-
- com.esri.core.geometry.GeometryCursor
-
- com.esri.core.geometry.OperatorUnionCursor
-
final class OperatorUnionCursor extends GeometryCursor
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description (package private) static class
OperatorUnionCursor.Bin_type
private static class
OperatorUnionCursor.Geom_pair
-
Field Summary
Fields Modifier and Type Field Description private int
m_added_geoms
private boolean
m_b_done
private boolean
m_b_union_all_dimensions
private int
m_current_dim
private int[]
m_dim_geom_counts
private boolean[]
m_had_geometry
private int
m_index
private GeometryCursor
m_inputGeoms
private int
m_max_dimension
private ProgressTracker
m_progress_tracker
private SpatialReferenceImpl
m_spatial_reference
(package private) java.util.ArrayList<java.util.TreeMap<java.lang.Integer,OperatorUnionCursor.Bin_type>>
m_union_bins
-
Constructor Summary
Constructors Constructor Description OperatorUnionCursor(GeometryCursor inputGeoms1, SpatialReference sr, ProgressTracker progress_tracker)
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description private void
add_geom(int dimension, boolean unioned, Geometry geom)
(package private) java.util.ArrayList<Geometry>
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
getGeometryID()
Returns the ID of the current geometry.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 Detail
-
m_inputGeoms
private GeometryCursor m_inputGeoms
-
m_progress_tracker
private ProgressTracker m_progress_tracker
-
m_spatial_reference
private SpatialReferenceImpl 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
java.util.ArrayList<java.util.TreeMap<java.lang.Integer,OperatorUnionCursor.Bin_type>> m_union_bins
-
-
Constructor Detail
-
OperatorUnionCursor
OperatorUnionCursor(GeometryCursor inputGeoms1, SpatialReference sr, ProgressTracker progress_tracker)
-
-
Method Detail
-
get_result_geometry
private Geometry get_result_geometry(int dim)
-
next
public 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
java.util.ArrayList<Geometry> collect_geometries_to_union(int dim)
-
remove_all_bins_with_lower_dimension
private void remove_all_bins_with_lower_dimension(int dim)
-
add_geom
private void add_geom(int dimension, boolean unioned, Geometry geom)
-
get_level_
private static int get_level_(int sz)
-
get_vertex_count_
private static int get_vertex_count_(Geometry geom)
-
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.
-
-