Class OperatorUnionCursor

    • Field Detail

      • 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
    • 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 class GeometryCursor
      • 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 class GeometryCursor
      • 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 class GeometryCursor
        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.