Class OverlayEngine
java.lang.Object
com.vividsolutions.jump.tools.OverlayEngine
Takes two FeatureCollections and returns their overlay, which is a new
FeatureCollection containing the intersections of all pairs of input features.
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionoverlay(FeatureCollection a, FeatureCollection b, TaskMonitor monitor) Creates the overlay of the two datasets.overlay(FeatureCollection a, FeatureCollection b, AttributeMapping mapping, TaskMonitor monitor) Creates the overlay of the two datasets.voidsetAllowingPolygonsOnly(boolean allowingPolygonsOnly) voidsetSplittingGeometryCollections(boolean splittingGeometryCollections)
-
Constructor Details
-
OverlayEngine
public OverlayEngine()Creates a new OverlayEngine.
-
-
Method Details
-
overlay
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 overlayb- 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 overlayb- the second dataset involved in the overlaymapping- 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)
-