% Generated by roxygen2: do not edit by hand
% Please edit documentation in R/grid_region_escape.R
\name{make_region_area}
\alias{make_region_area}
\title{Create a broader analysis region around a study area}
\usage{
make_region_area(hazard_zone, study_area, buffer_m = 5000)
}
\arguments{
\item{hazard_zone}{Full hazard/evacuation zone.}

\item{study_area}{Local study area.}

\item{buffer_m}{Buffer distance in map units, typically meters.}
}
\value{
A polygon \code{SpatVector} for the broader analysis region.
}
\description{
Dissolves the full hazard zone, buffers a smaller study area, and crops the
full zone to that buffer. This is useful when escape/safety points outside a
municipality or local study area should still be considered.
}
\examples{
r <- terra::rast(nrows = 4, ncols = 4, xmin = 0, xmax = 4, ymin = 0, ymax = 4,
  vals = 1, crs = "EPSG:3857")
zone <- terra::as.polygons(r, dissolve = TRUE)
study <- terra::as.polygons(terra::crop(r, terra::ext(1, 3, 1, 3)), dissolve = TRUE)
make_region_area(zone, study, buffer_m = 1)
}
