com.vividsolutions.jump.tools
Class OverlayEngine

java.lang.Object
  extended by com.vividsolutions.jump.tools.OverlayEngine

public class OverlayEngine
extends java.lang.Object

Takes two FeatureCollections and returns their overlay, which is a new FeatureCollection containing the intersections of all pairs of input features.


Constructor Summary
OverlayEngine()
          Creates a new OverlayEngine.
 
Method Summary
 FeatureCollection overlay(FeatureCollection a, FeatureCollection b, AttributeMapping mapping, TaskMonitor monitor)
          Creates the overlay of the two datasets.
 FeatureCollection overlay(FeatureCollection a, FeatureCollection b, TaskMonitor monitor)
          Creates the overlay of the two datasets.
 void setAllowingPolygonsOnly(boolean allowingPolygonsOnly)
           
 void setSplittingGeometryCollections(boolean splittingGeometryCollections)
           
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

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)