get_map_outcrop {rmacrostrat}R Documentation

Retrieve geologic map outcrop shape element data

Description

A function to retrieve data for geologic map outcrop shape elements from various sources.

Usage

get_map_outcrop(
  map_id = NULL,
  unit_id = NULL,
  strat_name_id = NULL,
  lat = NULL,
  lng = NULL,
  scale = NULL,
  sf = TRUE
)

Arguments

map_id

integer. The unique identification number(s) of the map outcrop shape element(s) to return.

unit_id

integer. Filter outcrop shape elements to those that match one or more Macrostrat unit(s) as specified by their unique identification number(s).

strat_name_id

integer. Filter outcrop shape elements to those that match one or more stratigraphic name(s) as specified by their unique identification number(s).

lat

numeric. Return the outcrop shape element(s) at the specified decimal degree latitude. Must also specify lng.

lng

numeric. Return the outcrop shape element(s) at the specified decimal degree longitude. Must also specify lat.

scale

character. The Macrostrat map scale to use (a vector of scales is also supported). Options are "tiny" (global), "small" (continental), "medium" (regional), or "large" (local).

sf

logical. Should the results be returned as an sf object? Defaults to TRUE. If FALSE, a data.frame is returned.

Details

More information can be found for the inputs for this function using the definition functions (beginning with def_).

Value

A data.frame containing the following columns:

If sf is TRUE (the default), an sf object is returned instead, with the same columns plus a "geometry" column that contains the spatial data.

Developer(s)

William Gearty

Reviewer(s)

Lewis A. Jones

See Also

Geologic maps: def_sources(), get_map_legends(), get_map_points()

Examples


ex1 <- get_map_outcrop(lat = 43, lng = -89.3)
ex2 <- get_map_outcrop(lat = 43, lng = -89.3, scale = "tiny")


[Package rmacrostrat version 1.0.0 Index]