get_baltimore_esri_data: Get Baltimore data

View source: R/get_baltimore_esri_data.R

get_baltimore_esri_dataR Documentation

Get Baltimore data

Description

A wrapper for getdata::get_esri_data()

Usage

get_baltimore_esri_data(area = NULL, nm = NULL, type = NULL, crs = NULL, ...)

Arguments

area

Area (passed to location), Default: NULL

nm

nm (should match a single value from baltimore_gis_index$nm), Default: NULL

type

Type used as an alias for a nm value, Default: NULL

crs

Coordinate reference system, Default: NULL

...

Arguments passed on to getdata::get_esri_data

url

FeatureServer or MapServer url to retrieve data from. Passed to url parameter of esri2sf::esri2sf() or esri2sf::esri2df() functions. For get_esri_layers(), the optional url must be a service url which is the base url for one or more layer urls.

location

sf, sfc, or bbox object (or other object convertible with as_bbox(). Optional.

dist

buffer distance in units. Optional.

diag_ratio

ratio of diagonal distance of area's bounding box used as buffer distance. e.g. if the diagonal distance is 3000 meters and the "diag_ratio = 0.1" a 300 meter will be used. Ignored when dist is provided.

unit

Units for buffer. Supported options include "meter", "foot", "kilometer", and "mile", "nautical mile" Common abbreviations (e.g. "km" instead of "kilometer") are also supported. Distance in units is converted to units matching GDAL units for x; defaults to "meter"

asp

Aspect ratio of width to height as a numeric value (e.g. 0.33) or character (e.g. "1:3"). If numeric, get_asp() returns the same value without modification.

where

where query string passed to esri2sf, Default: NULL

name,name_col

Name value and name column found in the ArcGIS FeatureServer or MapServer data.

coords

Coordinate columns for input data.frame or output sf object (if geometry is 'centroid' or 'point') Default: c("lon", "lat").

from_crs

For df_to_sf(), coordinate reference system used by coordinates or well known text in data frame.

clean_names

If TRUE, set .name_repair to janitor::make_clean_names() Ignored when get_esri_metadata() is not returning a data.frame, e.g. meta = "id".

token

string for authentication token. defaults to NULL.

progress

Show progress bar from cli::cli_progress_along() if TRUE. Default FALSE.

quiet

If TRUE, use suppressMessages() to prevent the printing of messages about the requested layer. Defaults to FALSE.

.name_repair

Defaults to "check_unique"

Value

A dataframe or simple feature object

See Also

getdata::get_esri_data()


elipousson/mapbaltimore documentation built on Dec. 1, 2024, 1:22 p.m.