Extra functions to interact with the GIS module of LAGOSNE.
-
Easy: Convenience functions allow for straight-forward subsetting.
-
Fast: Queries are optimized for speed to avoid loading the entirety of massive layers.
-
Flexible : Custom queries can be constructed using
SQL
statements.
remotes::install_github("cont-limno/LAGOSNEgis")
library(LAGOSNEgis)
lagosnegis_get()
library(sf)
sf::st_layers(LAGOSNEgis:::lagosnegis_path())
res_iws <- query_gis(layer = "IWS",
id_name = "lagoslakeid", ids = c(34352))
res_lake <- query_gis(layer = "LAGOS_NE_All_Lakes_4ha",
id_name = "lagoslakeid", ids = 34352)
res_pnt <- query_gis(layer = "LAGOS_NE_All_Lakes_4ha_POINTS",
id_name = "lagoslakeid", ids = 34352)
res <- query_wbd(lagoslakeid = c(7010))
res <- query_gis_(query = "SELECT * FROM IWS WHERE lagoslakeid IN ('7010');")
Soranno P., K. Cheruvelil. 2017. LAGOS-NE-GIS v1.0: A module for LAGOS-NE, a multi-scaled geospatial and temporal database of lake ecological context and water quality for thousands of U.S. Lakes: 2013-1925. Environmental Data Initiative. http://dx.doi.org/10.6073/pasta/fb4f5687339bec467ce0ed1ea0b5f0ca. Dataset accessed 9/26/2017.