get_map_points {rmacrostrat} | R Documentation |
A function to retrieve data for geologic map point shape elements from various sources.
get_map_points(
point_id = NULL,
point_type = NULL,
min_lat = NULL,
min_lng = NULL,
max_lat = NULL,
max_lng = NULL,
source_id = NULL,
sf = TRUE
)
point_id |
|
point_type |
|
min_lat |
|
min_lng |
|
max_lat |
|
max_lng |
|
source_id |
|
sf |
|
More information can be found relating to the inputs for this
function using the definition functions (beginning with def_
).
An sf
object containing the following columns:
point_id
: The identification number of the point element.
strike
: The strike value of the point element.
dip
: The dip value of the point element.
dip_dir
: The dip direction of the point element.
point_type
: The type of point element (e.g. "bedding").
certainty
: The certainty of the point element location.
comments
: Notes assigned to the point element.
source_id
: The unique identification number of the source
for the point element.
geometry
: The point spatial data.
If sf
is TRUE
(the default), an sf
object is returned, with the
a "geometry" column that contains the spatial data. If sf
is FALSE
,
a data.frame
object is returned with two additional columns (lng,
lat) containing the geographic coordinates of the point elements.
Lewis A. Jones
Bethany Allen
Geologic maps:
def_sources()
,
get_map_legends()
,
get_map_outcrop()
# Return a specific point
ex1 <- get_map_points(point_id = 1)
# Return all points within a user-specified bounding box
ex2 <- get_map_points(min_lng = -80, min_lat = 40,
max_lng = -70, max_lat = 50)