geoDifference
Returns a new polygon with the difference of the second polygon clipped from the first polygon.
Syntax
geoDifference(polygon1, polygon2)
Parameters
Parameter | Description |
---|---|
polygon1 | Required. Polygon or MultiPolygon GeoJSON feature. |
polygon2 | Required. Polygon or MultiPolygon GeoJSON feature to remove from polygon1. |
Example
Return a GeoJSON Polygon that removes City Park (polygon2) from Colorado (polygon1).
Last updated