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 classOperatorUnionCursor.Bin_typeprivate static classOperatorUnionCursor.Geom_pair
-
Field Summary
Fields Modifier and Type Field Description private intm_added_geomsprivate booleanm_b_doneprivate booleanm_b_union_all_dimensionsprivate intm_current_dimprivate int[]m_dim_geom_countsprivate boolean[]m_had_geometryprivate intm_indexprivate GeometryCursorm_inputGeomsprivate intm_max_dimensionprivate ProgressTrackerm_progress_trackerprivate SpatialReferenceImplm_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 voidadd_geom(int dimension, boolean unioned, Geometry geom)(package private) java.util.ArrayList<Geometry>collect_geometries_to_union(int dim)private static intget_level_(int sz)private Geometryget_result_geometry(int dim)private static intget_vertex_count_(Geometry geom)intgetGeometryID()Returns the ID of the current geometry.Geometrynext()Moves the cursor to the next Geometry.private voidremove_all_bins_with_lower_dimension(int dim)private booleanstep_()booleantock()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: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
-
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
-
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:GeometryCursorExecutes a unit of work on the cursor.- Overrides:
tockin 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.
-
-