Package org.locationtech.jts.jump.tools
Class OverlayEngine
- java.lang.Object
-
- org.locationtech.jts.jump.tools.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 Summary
Constructors Constructor Description OverlayEngine()
Creates a new OverlayEngine.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description protected void
addFeature(org.locationtech.jts.geom.Geometry intersection, FeatureCollection overlay, AttributeMapping mapping, Feature a, Feature b)
FeatureCollection
overlay(FeatureCollection a, FeatureCollection b, TaskMonitor monitor)
Creates the overlay of the two datasets.FeatureCollection
overlay(FeatureCollection a, FeatureCollection b, AttributeMapping mapping, TaskMonitor monitor)
Creates the overlay of the two datasets.void
setAllowingPolygonsOnly(boolean allowingPolygonsOnly)
void
setSplittingGeometryCollections(boolean splittingGeometryCollections)
-
-
-
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 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
-
addFeature
protected void addFeature(org.locationtech.jts.geom.Geometry intersection, FeatureCollection overlay, AttributeMapping mapping, Feature a, Feature b)
-
setSplittingGeometryCollections
public void setSplittingGeometryCollections(boolean splittingGeometryCollections)
-
setAllowingPolygonsOnly
public void setAllowingPolygonsOnly(boolean allowingPolygonsOnly)
-
-