Class OverlayEngine


  • public class OverlayEngine
    extends Object
    Takes two FeatureCollections and returns their overlay, which is a new FeatureCollection containing the intersections of all pairs of input features.
    • Constructor Detail

      • OverlayEngine

        public OverlayEngine()
        Creates a new OverlayEngine.
    • Method Detail

      • overlay

        public FeatureCollection overlay​(FeatureCollection a,
                                         FeatureCollection b,
                                         TaskMonitor monitor)
        Creates the overlay of the two datasets. The attributes from both datasets will be transferred to the overlay.
        Parameters:
        a - the first dataset involved in the overlay
        b - the second dataset involved in the overlay
        Returns:
        intersections of all pairs of input features
      • overlay

        public FeatureCollection overlay​(FeatureCollection a,
                                         FeatureCollection b,
                                         AttributeMapping mapping,
                                         TaskMonitor monitor)
        Creates the overlay of the two datasets. The attributes from the datasets will be transferred as specified by the AttributeMapping.
        Parameters:
        a - the first dataset involved in the overlay
        b - the second dataset involved in the overlay
        mapping - specifies which attributes are transferred
        Returns:
        intersections of all pairs of input features
      • setSplittingGeometryCollections

        public void setSplittingGeometryCollections​(boolean splittingGeometryCollections)
      • setAllowingPolygonsOnly

        public void setAllowingPolygonsOnly​(boolean allowingPolygonsOnly)