View source: R/get_area_data.R
get_area_data | R Documentation |
Returns data for a selected area or areas with an optional buffer. If both
crop and trim are FALSE, the function uses sf::st_intersects()
to
filter data to include the full geometry of anything that overlaps with the
area or bbox (if the area is not provided).
get_area_data(
area = NULL,
bbox = NULL,
data = NULL,
extdata = NULL,
cachedata = NULL,
path = NULL,
url = NULL,
fn = NULL,
diag_ratio = NULL,
dist = NULL,
asp = NULL,
crop = TRUE,
trim = FALSE,
crs = NULL
)
area |
|
bbox |
|
data |
|
extdata |
Character. Name of an external geopackage (.gpkg) file included with the package where selected data is available. Available data includes "trees", "unimproved_property", and "vegetated_area" |
cachedata |
Character. Name of a cached geopackage (.gpkg) file where
selected data is available. Running |
path |
Character. Path to local or remote spatial data file supported by
|
url |
Character. URL for FeatureServer or MapServer layer to pass to get_area_esri_data. |
fn |
Function to apply to area data before returning. |
diag_ratio |
ratio to set map extent based diagonal distance of area's
bounding box. Ignored when |
dist |
buffer distance in meters. Optional. |
asp |
Aspect ratio of width to height as a numeric value (e.g. 0.33) or character (e.g. "1:3"). |
crop |
If TRUE, data cropped to area or bounding box
|
trim |
If TRUE, data trimmed to area with
|
crs |
Coordinate Reference System (CRS) to use for the returned data. The CRS of the provided data and bounding box or area must match one another but are not required to match the CRS provided by this parameter. |
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.