nhd_query: Select NHD features clipped by a circular buffer a coordinate...

Description Usage Arguments Examples

View source: R/query.R

Description

Select NHD features clipped by a circular buffer a coordinate pair

Usage

1
nhd_query(lon, lat, dsn, buffer_dist = 0.05)

Arguments

lon

numeric longitude

lat

numeric latitude

dsn

character data source

buffer_dist

numeric buffer in units of coordinate degrees

Examples

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
## Not run: 
wk <- wikilake::lake_wiki("Worden Pond")
qry <- nhd_query(wk$Lon, wk$Lat, dsn = c("NHDWaterbody", "NHDFlowline"))

plot(sf::st_geometry(qry$sp$NHDWaterbody), col = "blue")
plot(sf::st_geometry(qry$sp$NHDFlowline), col = "cyan", add = TRUE)
plot(qry$pnt, col = "red", pch = 19, add = TRUE)
axis(1)
axis(2)

## End(Not run)

nhdR documentation built on July 17, 2021, 5:06 p.m.