Static
addAdds a buffer to a given geometry.
If the target is of type ol.Feature it will return an ol.Feature. If the target is of type ol.geom.Geometry it will return ol.geom.Geometry.
The geometry.
The buffer to add in meters.
The projection of the input geometry as EPSG code. Default is to EPSG:3857.
The geometry or feature with the added buffer.
Static
addAdds a buffer to a given geometry.
The geometry.
The buffer to add in meters.
The projection of the input geometry as EPSG code. Default is to EPSG:3857.
The geometry with the added buffer.
Static
differenceFinds the difference between two polygons by clipping the second polygon from the first.
If both polygons are of type ol.Feature it will return an ol.Feature. Else it will return an ol.geom.Geometry.
The projection of the input polygons as EPSG code. Default is to EPSG:3857.
A Feature or geometry with the area of polygon1 excluding the area of polygon2.
Static
geometryFinds the difference between two polygons by clipping the second polygon from the first.
An ol.geom.Geometry
An ol.geom.Geometry
The projection of the input polygons as EPSG code. Default is to EPSG:3857.
A with the area of polygon1 excluding the area of polygon2.
Static
geometryTakes two polygons and finds their intersection.
An ol.geom.Geometry
An ol.geom.Geometry
The projection of the input polygons as EPSG code. Default is to EPSG:3857.
A Geometry with the shared area of the two polygons or null if the polygons don't intersect.
Static
getOptional
extent: null | ExtentStatic
intersectionTakes two polygons and finds their intersection.
If both polygons are of type ol.Feature it will return an ol.Feature. Else it will return an ol.geom.Geometry.
The projection of the input polygons as EPSG code. Default is to EPSG:3857.
A Feature or Geometry with the shared area of the two polygons or null if the polygons don't intersect.
Static
mergeMerges multiple geometries into one MultiGeometry.
An array of ol.geom.geometries;
A Multigeometry.
Static
separateSplits an array of geometries (and multi geometries) or a single MultiGeom into an array of single geometries.
An (array of) ol.geom.geometries;
An array of geometries.
Static
splitSplits an OlFeature with/or ol.geom.Polygon by an OlFeature with/or ol.geom.LineString into an array of instances of OlFeature with/or ol.geom.Polygon. If the target polygon (first param) is of type ol.Feature it will return an array with ol.Feature. If the target polygon (first param) is of type ol.geom.Geometry it will return an array with ol.geom.Geometry.
The polygon geometry to split.
The line geometry to split the polygon geometry with.
The EPSG code of the input features. Default is to EPSG:3857.
An array of instances of OlFeature with/or ol.geom.Polygon
Static
splitSplits an ol.geom.Polygon by an ol.geom.LineString into an array of instances of ol.geom.Polygon.
The polygon geometry to split.
The line geometry to split the polygon geometry with.
The EPSG code of the input features. Default is to EPSG:3857.
An array of instances of ol.geom.Polygon
Static
unionTakes two or more polygons and returns a combined (Multi-)polygon.
An array of ol.Feature or ol.geom.Geometry instances of type (Multi)-Polygon.
The projection of the input polygons as EPSG code. Default is to EPSG:3857.
A Feature or Geometry with the combined area of the (Multi-)polygons.
Static
unionTakes two or more polygons and returns a combined (Multi-)polygon.
An array of ol.geom.Geometry instances of type (Multi-)polygon.
The projection of the input polygons as EPSG code. Default is to EPSG:3857.
A FGeometry with the combined area of the (Multi-)polygons.
Helper class for the geospatial analysis. Makes use of Turf.js.
GeometryUtil