diff --git a/docs/pkgdown.yml b/docs/pkgdown.yml index 8f9aa4c8..ade10203 100644 --- a/docs/pkgdown.yml +++ b/docs/pkgdown.yml @@ -8,7 +8,7 @@ articles: nhdplushr: nhdplushr.html nhdplusTools: nhdplusTools.html plot_nhdplus: plot_nhdplus.html -last_built: 2024-05-21T18:13Z +last_built: 2024-05-22T21:02Z urls: reference: https://doi-usgs.github.io/nhdplusTools/reference article: https://doi-usgs.github.io/nhdplusTools/articles diff --git a/docs/reference/get_geoconnex_reference.html b/docs/reference/get_geoconnex_reference.html index 938d5b61..8a8b92b1 100644 --- a/docs/reference/get_geoconnex_reference.html +++ b/docs/reference/get_geoconnex_reference.html @@ -79,8 +79,7 @@
get_geoconnex_reference(
- AOI = NULL,
- ids = NULL,
+ AOI,
type = NULL,
t_srs = NULL,
buffer = 0.5,
@@ -91,20 +90,12 @@ get geoconnex reference feature layers
Arguments
- AOI
-sf (MULTI)POINT or (MULTI)POLYGON. An 'area of interest' can
-be provided as either a location (sf POINT) or area (sf POLYGON)
-in any Spatial Reference System.
-
-
-- ids
-character or numeric. A set of identifier(s) from the data
-type requested, for example if NHD, then a set of COMID(s).
+bbox, sf polygon or point, or a URL that will return an sf object when passed to
+read_sf
- type
-character. Type of feature to return
-('huc08','huc12', 'nhd', 'catchment', 'waterbodies', 'gagesII').
-If NULL (default) a data.frame of available resources is returned
+character the feature type chosen from discover_geoconnex_reference
- t_srs
@@ -161,53 +152,61 @@ Examples
crs = "+proj=longlat +datum=WGS84 +no_defs"))
get_geoconnex_reference(AOI, type = "hu04")
-#> Starting download of first 1000 features.
+#> Starting download of first set of features.
#> Simple feature collection with 2 features and 7 fields
#> Geometry type: MULTIPOLYGON
#> Dimension: XY
#> Bounding box: xmin: -91.15213 ymin: 41.22784 xmax: -88.18307 ymax: 46.21648
#> Geodetic CRS: WGS 84
#> # A tibble: 2 × 8
-#> id name fid gnis_id loaddate gnis_url uri
-#> * <chr> <chr> <int> <chr> <dttm> <chr> <chr>
-#> 1 0707 Wisconsin 189 NA 2017-02-01 00:53:08 "" https://geoconnex.…
-#> 2 0709 Rock 65 NA 2012-06-11 07:54:59 "" https://geoconnex.…
+#> id fid gnis_id loaddate name uri gnis_url
+#> * <chr> <int> <chr> <dttm> <chr> <chr> <chr>
+#> 1 0707 189 NA 2017-02-01 00:53:08 Wisconsin https://geoconnex.… ""
+#> 2 0709 65 NA 2012-06-11 07:54:59 Rock https://geoconnex.… ""
#> # ℹ 1 more variable: geometry <MULTIPOLYGON [°]>
-get_geoconnex_reference(type = "hu04", ids = c("0707", "0709"))
-#> Simple feature collection with 2 features and 7 fields
+get_geoconnex_reference("https://geoconnex.us/ref/mainstems/315626", type = "hu04", )
+#> Starting download of first set of features.
+#> Simple feature collection with 15 features and 7 fields
#> Geometry type: MULTIPOLYGON
#> Dimension: XY
-#> Bounding box: xmin: -91.15213 ymin: 41.22784 xmax: -88.18307 ymax: 46.21648
+#> Bounding box: xmin: -106.7484 ymin: 30.05369 xmax: -91.8491 ymax: 39.38306
#> Geodetic CRS: WGS 84
-#> # A tibble: 2 × 8
-#> id gnis_id fid name loaddate uri gnis_url
-#> * <chr> <chr> <int> <chr> <dttm> <chr> <chr>
-#> 1 0707 NA 189 Wisconsin 2017-02-01 00:53:08 https://geoconnex.… ""
-#> 2 0709 NA 65 Rock 2012-06-11 07:54:59 https://geoconnex.… ""
+#> # A tibble: 15 × 8
+#> id uri name gnis_id loaddate gnis_url fid
+#> * <chr> <chr> <chr> <chr> <dttm> <chr> <int>
+#> 1 1102 https://geoconnex.us/… Uppe… NA 2017-04-17 09:39:52 "" 29
+#> 2 1103 https://geoconnex.us/… Midd… NA 2012-06-11 07:54:59 "" 70
+#> 3 1104 https://geoconnex.us/… Uppe… NA 2012-06-11 07:54:59 "" 133
+#> 4 1105 https://geoconnex.us/… Lowe… NA 2012-06-11 07:54:59 "" 143
+#> 5 1106 https://geoconnex.us/… Arka… NA 2017-04-21 13:34:18 "" 144
+#> 6 1107 https://geoconnex.us/… Neos… NA 2017-04-21 13:34:23 "" 145
+#> 7 1108 https://geoconnex.us/… Uppe… NA 2017-09-20 20:59:45 "" 126
+#> 8 1109 https://geoconnex.us/… Lowe… NA 2017-04-24 11:26:44 "" 148
+#> 9 1110 https://geoconnex.us/… Nort… NA 2017-04-21 13:15:51 "" 146
+#> 10 1111 https://geoconnex.us/… Lowe… NA 2017-04-21 13:15:55 "" 7
+#> 11 1112 https://geoconnex.us/… Red … NA 2017-04-24 08:53:22 "" 147
+#> 12 1113 https://geoconnex.us/… Red-… NA 2017-04-24 08:53:22 "" 179
+#> 13 1114 https://geoconnex.us/… Red-… NA 2017-10-15 23:35:54 "" 175
+#> 14 1305 https://geoconnex.us/… Rio … NA 2017-11-05 19:43:51 "" 178
+#> 15 1306 https://geoconnex.us/… Uppe… NA 2017-09-20 20:59:52 "" 129
#> # ℹ 1 more variable: geometry <MULTIPOLYGON [°]>
AOI <- sf::st_sfc(sf::st_point(c(-89.56684, 42.99816)),
crs = "+proj=longlat +datum=WGS84 +no_defs")
get_geoconnex_reference(AOI, type = "hu04", buffer = 100000)
-#> Starting download of first 1000 features.
-#> Simple feature collection with 8 features and 7 fields
+#> Starting download of first set of features.
+#> Simple feature collection with 2 features and 7 fields
#> Geometry type: MULTIPOLYGON
#> Dimension: XY
-#> Bounding box: xmin: -93.95968 ymin: 40.31667 xmax: -84.7235 ymax: 46.73351
+#> Bounding box: xmin: -91.15213 ymin: 41.22784 xmax: -88.18307 ymax: 46.21648
#> Geodetic CRS: WGS 84
-#> # A tibble: 8 × 8
-#> id uri loaddate gnis_url fid gnis_id name
-#> * <chr> <chr> <dttm> <chr> <int> <chr> <chr>
-#> 1 0403 https://geoconnex.us/r… 2019-04-02 12:17:54 "" 187 NA Nort…
-#> 2 0404 https://geoconnex.us/r… 2019-03-15 10:49:16 "" 66 NA Sout…
-#> 3 0704 https://geoconnex.us/r… 2017-04-18 15:32:25 "" 96 NA Uppe…
-#> 4 0706 https://geoconnex.us/r… 2017-02-01 00:53:13 "" 57 NA Uppe…
-#> 5 0707 https://geoconnex.us/r… 2017-02-01 00:53:08 "" 189 NA Wisc…
-#> 6 0708 https://geoconnex.us/r… 2012-06-11 07:54:59 "" 61 NA Uppe…
-#> 7 0709 https://geoconnex.us/r… 2012-06-11 07:54:59 "" 65 NA Rock
-#> 8 0712 https://geoconnex.us/r… 2019-03-15 10:49:32 "" 62 NA Uppe…
+#> # A tibble: 2 × 8
+#> id fid gnis_id loaddate name uri gnis_url
+#> * <chr> <int> <chr> <dttm> <chr> <chr> <chr>
+#> 1 0707 189 NA 2017-02-01 00:53:08 Wisconsin https://geoconnex.… ""
+#> 2 0709 65 NA 2012-06-11 07:54:59 Rock https://geoconnex.… ""
#> # ℹ 1 more variable: geometry <MULTIPOLYGON [°]>
# }