Creates a new spatial dataset that merges regulatory zones with closure areas.
Arguments
- spat
Spatial file containing regulatory zones.
- closure
Closure file containing closure areas.
- grid.nm
Character, column name containing grid ID.
- closure.nm
Character, column name containing closure ID.
- recast
Logical, if
TRUE
combined
is passed torecast_multipoly
.
Details
To combine zones with closure areas, this function performs the following steps:
Create the union of the closure area
Take the difference between the closure union and the zone file
Take the intersection of zone and the closure union
Combine the difference and intersection objects into one spatial dataframe
Assign new zone IDs to intersecting polygons
The result is a single spatial dataset containing all polygons from both spat
and closure
with overlapping (intersecting) polygons receiving new
IDs (see new_zone_id
). This allows users to partially close
regulatory zones during the model design stage.