Skip to contents

Download and parse GIS features from an ArcGIS REST GeoJSON URL, with optional AOI

Usage

get_gis_from_url(url, save_as = NULL, where = NULL, aoi = NULL)

Arguments

url

Character. A full ArcGIS REST API query URL returning GeoJSON (must include f=geojson or f=json).

save_as

Optional character. Base file name (without extension) to save the result as a Shapefile.

where

Optional character. SQL-like WHERE clause to filter features (e.g., "County = 'Columbia'").

aoi

Optional sf polygon. If supplied, calculates an envelope for spatial filtering.

Value

An sf object with the parsed features.