View source: R/process_polygon.R
invert_polygon | R Documentation |
This function inverts a polygon by calculating the difference between the bounding box and the polygon.
invert_polygon(polygon, bbox = NULL)
polygon |
An sf object representing the polygon to be inverted. |
bbox |
Optional. An sf or bbox object representing the bounding box. If NULL, the bounding box of the input polygon is used. |
An sf object representing the inverted polygon.
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.