Calls the 3DHP_all web service and returns sf data.frames for the selected layers. See https://hydro.nationalmap.gov/arcgis/rest/services/3DHP_all/MapServer for source data documentation.

get_3dhp(
  AOI = NULL,
  ids = NULL,
  type = NULL,
  universalreferenceid = NULL,
  t_srs = NULL,
  buffer = 0.5,
  page_size = 2000
)

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 vector of id3dhp ids or mainstem uris

type

character. Type of feature to return. e.g. ("hydrolocation", "flowline", "waterbody", "drainage area", "catchment"). If NULL (default) a data.frame of available types is returned

universalreferenceid

character vector of hydrolocation universal reference ids such as reachcodes

t_srs

character (PROJ string or EPSG code) or numeric (EPSG code). A user specified - target -Spatial Reference System (SRS/CRS) for returned objects. Will default to the CRS of the input AOI if provided, and to 4326 for ID requests.

buffer

numeric. The amount (in meters) to buffer a POINT AOI by for an extended search. Default = 0.5

page_size

numeric default number of features to request at a time. Reducing may help if 500 errors are experienced.

Value

a simple features (sf) object or valid types if no type supplied

Details

The returned object(s) will have the same Spatial Reference System (SRS) as the input AOI. If a individual or set of IDs are used to query, then the default CRS of EPSG:4269 is preserved. In all cases, a user-defined SRS can be passed to t_srs which will override all previous SRS (either input or default). All buffer and distance operations are handled internally using in EPSG:5070 Albers Equal Area projection

Examples

# \donttest{
AOI <- sf::st_as_sfc(sf::st_bbox(c(xmin = -89.56684, ymin = 42.99816,
                                   xmax = -89.24681, ymax = 43.17192),
                                 crs = "+proj=longlat +datum=WGS84 +no_defs"))

# get flowlines and hydrolocations
flowlines <- get_3dhp(AOI = AOI, type = "flowline")
#> https://hydro.nationalmap.gov/arcgis/rest/services/3DHP_all/MapServer/50/query 
#> {"xmin":-89.5668,"ymin":42.9982,"xmax":-89.2468,"ymax":43.1719,"spatialReference":{"wkid":4326}}NULLjsontrue
#> https://hydro.nationalmap.gov/arcgis/rest/services/3DHP_all/MapServer/50/query 
#> 165866,166213,167217,167451,167498,393097,393368,393467,394662,394684,394717,621498,621542,846581,846598,847554,847561,847797,1073146,1074218,1074440,1074511,1299742,1299782,1301006,1301028,1549482,1549567,1549603,1550576,1550941,1775804,1776864,2004144,2289877,2290163,2517471,2744886,2744907,2970327,2971463,3197582,3197599,3198834,3198858,3424049,3425403,3651074,3652332,3877581,3878835,3878836,4105655,4331183,4331438,4331454,4331460,4331584,4332800,4332802,4558123,4559754,4559828,4786621,4786633,5013161,5013402,5239207,5239230,5466135,5467740,5920205,5921202,6147404,6148313,6374284,6374307,6601034,6601088,6601097,6601098,6602292,6828834,6829077,7054430,7055717,7283171,7508804,7510099,7737569,7737577,7886840,7888385,7937044,7937155,7963930,7965068,7965265,7965345,8190638,8191845,8191884,8418397,8419418,8419657,8419702,8419744,8647907,8648166,8648195,8648203,8875216,8876166,8876399,8876412,8876414,8876485,9102502,9102846,9329748,9329794,9330960,9330974,9331030,9556917,9557037,9558172,9785007,9786065,10013193,10241425,10241435,10241529,10242452,10242738,10242799,10242814,10468198,10469549,10469797,10696532,10696651,10697844,10924203,11152206,11152238,11152696,11153550,11153822,11153834,11153836,11379942,11607538,11608492,11608800,11835227,11835503,11835537,11836792,12063169,12064600,12064789,12064803,12291450,12291475,12292813,12518411,12519432,12519627,12519652,12519658,12746437,12746546,12747783,12747811,12747854,12747876,12747885,12974051,12975174,12975387,12975400,13202405,13203692,13203722,13430671,13430763,13432047,13660404,13660431,13887113,14116914,14343901,14343922,14343929,14343987,14571341,14572750,14572771,14799365,14800752,15026045,15026260,15027620,15254082,15255160,15481610,15481917,15481946,15482926,15711269,15937262,15937559,15937593,15937608,15938905,15938963,16081498,16125381,16165458,16166767,16166803,16393630,16394844,16394860,16621558,16621590,16622885,16622931,16622939,16622979,16849225,16849476,16850486,16850492,17077924,17077967,17303902,17305470,17305487,17533557,17759873,17761289,17988765,18214477,18215453,18215738,18215802,18670644,18670666,18670757,18671997,18898963,18900004,19126070,19126082,19126083,19127447,19353330,19353335,19354346,19354567,19580458,19581692,19808379,19809718,20036899,20038107,20263656,20263966,20493590,20493860,20493876,20721104,20722374,20722422,20948504,20948540,20948569,20949823,20949855,21177370,21177463,21402784,21402790,21630471,21630836,21860402,21860412,22086317,22087419,22087602,22087622,22314093,22314192,22315380,22315442,22542087,22542093,22543075,22543161,22770581,22770615,22770704,22999180,23000786,23227985,23228225,23455283,23455539,23455548,23455583,23456863,23684249,23685241,23685255,23911896,23911903,23911948,23911971,23912990,23913182,23913189,23913225,23913233,24140935,24141194,24141231,24285606,24369257,24369279,24595111,24595135,24596182,24596435,24822724,24822964,24824008,24824322,25051544,25051559,25279647,25279668,25279746,25280658,25280734,25280968,25509543,25509611,25509628,25961895,25961984,25963288,25963315,26189246,26190281,26190630,26416352,26645132,26646072,26873293,26874424,27103141,27104434,27104517,27331676,27332638,27332920,27332926,29329624,29330882,29556730,29557967,29778960,29783982,29783983,29784012,29785202,29785231,29827745,30010564,30011791,30011806*geojson
hydrolocation <- get_3dhp(AOI = AOI, type = "hydrolocation")
#> https://hydro.nationalmap.gov/arcgis/rest/services/3DHP_all/MapServer/20/query 
#> {"xmin":-89.5668,"ymin":42.9982,"xmax":-89.2468,"ymax":43.1719,"spatialReference":{"wkid":4326}}NULLjsontrue
#> Warning: No sink, spring, waterbody outlet features found in area of interest.
#> https://hydro.nationalmap.gov/arcgis/rest/services/3DHP_all/MapServer/30/query 
#> {"xmin":-89.5668,"ymin":42.9982,"xmax":-89.2468,"ymax":43.1719,"spatialReference":{"wkid":4326}}NULLjsontrue
#> Warning: No headwater, terminus, divergence, confluence, catchment outlet features found in area of interest.
#> https://hydro.nationalmap.gov/arcgis/rest/services/3DHP_all/MapServer/40/query 
#> {"xmin":-89.5668,"ymin":42.9982,"xmax":-89.2468,"ymax":43.1719,"spatialReference":{"wkid":4326}}NULLjsontrue
#> https://hydro.nationalmap.gov/arcgis/rest/services/3DHP_all/MapServer/40/query 
#> 5800906,5800907,5802472,5861549,5861557,5861577,5861579,5861582,5861588,5861601,5861631,5861647,5861656,5861680,5861683,5861687,5861699,5861715,5861717,5861726,5861755,5861760,5861766,5861786,5861799,5861814,5861825,5861833,5861838,5861845,5861846,5861853,5861867,5861882,5861900,5861906,5861918,5861939,5861988,5862039,5862064,5862078,5862080,5862085,5862112,5862121,5862131,5862132,5862146,5862153,5862161,5862169,5862177,5862179,5862203,5862205,5862212,5862218,5862222,5862228,5862238,5862270,5862284,5862293,5862296,5862299,5862304,5862309,5862313,5862331,5862332,5862342,5862345,5862347,5862359,5862378,5862399,5862420,5862423,5862426,5862429,5862435,5862436,5862442,5862451,5862458,5862470,5862489,5862495,5862498,5862506,5862528,5862537,5862545,5862546,5862586,5862593,5862609,5862621,5862623,5862634,5862652,5862658,5862681,5862691,5862723,5862726,5862746,5862751,5862766,5862772,5862789,5862793,5862794,5862797,5862827,5862841,5862843,5862845,5862861,5862863,5862864,5862875,5862877,5862896,5862902,5862912,5862940,5862964,5862968,5862978,5862980,5862987,5863008,5863019,5863026,5863029,5863030,5863032,5863033,5863046,5863049,5863050,5863066,5863073,5863075,5863077,5863087,5863088,5863107,5863112,5863118,5863128,5863144,5863147,5863155,5863176,5863193,5863195,5863219,5863220,5863221,5863222,5863223,5863254,5863292,5863315,5863332,5863344,5863345,5863348,5863359,5863387,5863401,5863409,5863443,5863468,5863474,5863475,5863477,5863481,5863487,5863501,5863509,5863517,5863518,5863560,5863571,5863579,5863597,5863617,5863634,5863640,5863647,5863652,5863676,5863680,5863691,5863716,5863758,5863775,5863790,5863792,5863794,5863796,5863802,5863805,5863818,5863826,5863827,5863837,5863855,5863875,5863881,5863885,5863886,5863887,5863902,5863919,5863933,5863935,5863952,5863986,5863995,5864027,5864028,5864041,5864060,5864085,5864102,5864105,5864112,5864114,5864119,5864125,5864143,5864152,5864163,5864185,5864197,5864199,5864206,5864209,5864217,5864220,5864226,5868610,5868611,5868691,5868902,5869168,5869189,5869190,5869193,5869211,5869227,5869229,5869230,5869232,5869237,5870005,25272102,25332744,25332752,25332772,25332774,25332777,25332783,25332796,25332826,25332842,25332851,25332875,25332878,25332882,25332894,25332910,25332912,25332921,25332950,25332955,25332961,25332981,25332994,25333000,25333009,25333020,25333033,25333040,25333041,25333048,25333054,25333062,25333077,25333095,25333101,25333113,25333114,25333183,25333234,25333259,25333273,25333275,25333307,25333316,25333326,25333327,25333341,25333348,25333356,25333364,25333372,25333374,25333388,25333398,25333400,25333407,25333413,25333417,25333423,25333433,25333465,25333479,25333482,25333488,25333494,25333499,25333504,25333508,25333526,25333527,25333537,25333540,25333542,25333554,25333573,25333594,25333615,25333618,25333621,25333624,25333630,25333631,25333643,25333646,25333653,25333665,25333684,25333690,25333693,25333701,25333720,25333723,25333732,25333740,25333741,25333781,25333788,25333804,25333816,25333818,25333829,25333853,25333876,25333886,25333918,25333921,25333941,25333946,25333961,25333967,25333984,25333988,25333989,25333992,25334022,25334036,25334038,25334040,25334041,25334056,25334058,25334059,25334065,25334070,25334072,25334091,25334097,25334107,25334119,25334135,25334159,25334163,25334173,25334175,25334182,25334203,25334214,25334221,25334224,25334227,25334228,25334241,25334244,25334245,25334261,25334268,25334270,25334272,25334282,25334283,25334302,25334307,25334313,25334323,25334339,25334342,25334350,25334371,25334388,25334390,25334414,25334415,25334416,25334417,25334418,25334449,25334476,25334487,25334510,25334527,25334539,25334540,25334543,25334554,25334582,25334596,25334604,25334638,25334663,25334669,25334670,25334672,25334676,25334696,25334704,25334712,25334713,25334755,25334766,25334773,25334774,25334792,25334812,25334829,25334835,25334842,25334871,25334875,25334886,25334911,25334944,25334953,25334956,25334968,25334970,25334985,25334987,25334989,25334991,25334997,25335000,25335013,25335021,25335022,25335032,25335050,25335070,25335076,25335080,25335081,25335082,25335097,25335114,25335130,25335181,25335190,25335197,25335222,25335223,25335236,25335255,25335280,25335286,25335297,25335300,25335307,25335309,25335314,25335320,25335338,25335347,25335358,25335369,25335380,25335392,25335401,25335404,25335412,25335415,25335421,25339806,25339886,25340097,25340363,25340384,25340385,25340388,25340406,25340422,25340424,25340425,25340427,25340432,25341200*geojson
waterbody <- get_3dhp(AOI = AOI, type = "waterbody")
#> https://hydro.nationalmap.gov/arcgis/rest/services/3DHP_all/MapServer/60/query 
#> {"xmin":-89.5668,"ymin":42.9982,"xmax":-89.2468,"ymax":43.1719,"spatialReference":{"wkid":4326}}NULLjsontrue
#> https://hydro.nationalmap.gov/arcgis/rest/services/3DHP_all/MapServer/60/query 
#> 338982,338986,339165,339194,339200,339337,339345,339351,339360,339367,339520,339526,339549,339737,339742,339937,339938,339939,339969,339970,340164,340198,340201,340202,340428,340429,341060,341071,341074,341083,341277,341282,341453,341458,341466,341665,341857,341863,420912,434095,434106,434116,435320,435321,435336,435342,435515,437208,1233554,1486468,1486469,1509671,1510899,1550877,1573825,1596806,1655603,1717443,1821876,1895203,1896913,1898134,1908180,1909343,1947464,1983376,2023956,2026530,2093784,2121703,2140494,2150889,2220051,2235654,2268081,2328533,2329610,2332206,2357247,2388146,2427595,2434026,2457364,2459842,2463424,2551551,2571010,2572164,2574697,2684765,2765900,2793471,2816743,2884861,2895089,3006368,3022604,3040301,3079063,3086485,3116157,3134797,3187406,3206411,3226311,3323388,3325871,3325872,3329853,3412846,3440888,3440960,3644204,3654028,3686437,3703244,3796209,3797676,3807922,3866825,3873029,3998093,4015564,4022624,4027310,4065961,4142168,4192542,4221554,4244256,4292769,4336331,4344536,4411673,4424003,4443947,4456264,4463109,4471953,4523064,4523070,4536854,4541928,4551406,4570632,4572149,4724439,4724486,4738490,4748838,4749884,4778715,4838865,4860506,4874406,4878330,4894641,4947517,4974101,4998025,5013353,5065430,5065431,5065432,5092056,5097844,5183812,5194083,5214764,5335881,5432089,5507997,5515639,5555297,5640745,5720371,5753073,5782728,5895854,5901350,5970040,5971537,5991835,6041814,6045727,6057293,6058670,6093303,6103245,6121372,6299874,6332782,6337229,6373402,6378377,6390484,6429621,6516824,6518492,6597767,6598964,6658339,6660574,6723680,6819285,6848895,6876184,6927739,6934231,6948096,6993736,7086579,7113521,7113535,7113540,7113543,7113547,7113771,7113785,7113793,7113797,7113802,7113803,7113807*geojson

if(!is.null(waterbody) & !is.null(flowlines) & !is.null(hydrolocation)) {
plot(sf::st_geometry(waterbody), col = "lightblue", border = "lightgrey")
plot(sf::st_geometry(flowlines), col = "blue", add = TRUE)
plot(sf::st_geometry(hydrolocation), col = "grey", pch = "+", add = TRUE) }


# given mainstem ids from any source, can query for them in ids.

CO <- get_3dhp(ids = "https://geoconnex.us/ref/mainstems/29559",
               type = "flowline")
#> https://hydro.nationalmap.gov/arcgis/rest/services/3DHP_all/MapServer/50/query 
#> mainstemid IN ('https://geoconnex.us/ref/mainstems/29559')jsontrue
#> Getting features 0 to 2000 of 4467
#> https://hydro.nationalmap.gov/arcgis/rest/services/3DHP_all/MapServer/50/query 
#> 1867,21798,22961,25390,39824,41763,41833,66424,66706,66742,66764,66765,111512,111513,111523,111551,111567,116720,116756,117514,117532,118304,119570,125100,125160,169132,169763,169870,169883,169895,170270,170305,211307,211531,228351,228352,268439,293615,293692,293699,293739,293795,338288,338295,338317,343399,343445,344115,344154,344155,344186,348725,350278,351464,351509,351699,396456,396460,397032,397057,397058,397575,397591,438784,438840,464241,464418,472305,506294,509125,521046,521117,565093,565095,565103,565108,570227,571125,571511,571553,571580,571817,571842,571876,573144,573250,578488,623124,623788,623816,624231,624274,664645,664697,664932,665020,665028,665428,666671,702470,703169,706085,720693,722163,722602,747472,747508,747515,747540,791765,791770,791773,791784,791790,791797,791823,796928,797006,797647,797710,797711,797731,798241,798243,798534,798560,798645,799324,799818,804672,849339,849371,849373,849428,849506,850239,891183,891189,891765,892368,892921,908931,908940,908941,916597,917929,924464,929047,929550,948546,948572,952938,973616,973707,973798,973811,1018118,1018174,1023355,1024077,1024089,1024115,1024146,1024636,1024674,1026102,1026127,1026145,1031419,1076030,1076081,1076118,1135198,1140647,1155585,1173137,1175065,1175116,1179682,1184244,1200176,1200209,1244572,1244598,1244606,1249726,1249739,1249837,1250483,1250512,1251029,1255024,1258150,1303344,1303348,1303417,1303429,1303467,1344574,1344942,1351098,1351755,1378226,1378513,1379185,1383464,1388026,1400700,1402668,1413121,1416013,1416024,1427711,1427984,1428148,1472476,1472496,1472559,1477456,1477484,1477551,1478116,1478210,1478274,1478725,1478726,1479075,1480500,1480537,1482867,1485773,1485780,1552371,1552493,1553108,1553592,1553697,1593863,1593884,1593955,1594415,1594860,1617084,1632730,1651390,1651710,1651747,1651771,1651777,1656262,1663694,1676770,1676775,1676884,1721106,1726273,1726397,1727037,1727049,1727231,1727662,1728007,1729151,1729195,1729264,1731792,1734539,1745745,1778770,1779479,1779511,1779515,1779779,1779900,1820654,1837961,1858931,1858959,1861544,1877987,1882743,1903286,1903339,1947952,1953068,1953717,1953752,1953860,1954282,1954351,1954727,1954777,1955850,1956051,1958562,1958563,2005800,2005839,2006458,2006570,2006848,2006935,2006997,2047081,2047149,2047349,2047823,2047975,2048192,2049035,2065437,2086362,2088672,2162453,2162456,2164406,2173135,2174871,2177044,2177420,2177421,2189207,2189510,2189536,2189622,2233962,2233971,2234010,2239205,2239256,2239279,2239933,2240029,2240457,2240832,2240842,2240889,2240960,2242276,2292627,2292661,2292920,2293062,2293063,2293080,2316245,2333657,2333690,2335117,2335118,2357040,2391315,2395954,2416318,2416608,2416622,2416649,2446743,2446753,2461385,2466530,2467290,2467332,2467366,2467398,2467824,2468121,2468153,2468166,2468193,2469304,2469312,2519352,2519461,2519485,2520185,2520218,2520600,2524650,2555259,2556459,2561425,2561493,2561692,2562611,2584622,2587389,2593483,2593514,2593544,2619266,2619335,2619347,2623851,2623928,2644381,2644386,2644418,2644433,2644462,2688753,2693814,2694482,2694528,2694608,2695075,2695457,2695485,2695527,2699155,2699210,2699217,2700696,2702077,2706961,2746326,2746329,2746363,2746506,2747090,2747105,2747118,2762171,2781706,2788250,2788291,2788329,2788527,2788585,2789446,2789853,2805887,2805960,2811405,2830339,2845515,2845520,2845752,2845761,2845766,2845773,2850188,2868715,2870425,2870490,2870495,2870542,2914997,2915034,2915049,2915055,2920200,2921033,2921417,2921451,2921488,2923162,2925617,2928694,2973225,3033253,3046482,3047333,3048936,3052623,3053815,3053837,3059023,3065820,3070953,3072908,3084382,3085971,3097629,3097972,3098017,3142301,3142318,3147462,3148207,3148216,3148250,3148735,3149106,3149201,3150443,3152851,3155500,3155668,3200323,3200339,3200340,3200513,3201097,3201516,3201669,3201674,3242762,3243455,3259940,3274305,3274347,3280230,3299192,3299464,3299621,3299655,3308431,3324238,3324506,3324539,3324544,3324575,3369081,3374378,3375125,3375560,3375896,3375924,3376671,3379691,3379693,3382401,3382457,3396452,3400667,3427061,3427078,3427721,3428147,3428176,3428304,3466091,3467159,3468820,3469704,3487308,3487310,3487398,3494143,3507901,3527303,3527323,3527327,3527354,3537522,3539111,3552317,3552375,3552435,3552437,3595862,3596494,3601750,3602432,3602433,3602446,3602517,3603306,3603339,3603361,3603362,3603397,3606901,3606974,3626704,3653897,3654030,3654033,3654044,3655236,3696090,3696180,3696777,3696788,3696974,3697178,3697204,3728556,3734997,3735028,3753894,3753911,3753914,3763836,3764209,3778588,3778635,3778689,3822669,3822686,3822692,3822702,3828646,3828666,3828759,3829518,3829598,3829604,3829618,3830694,3880439,3880527,3880529,3880553,3881108,3881219,3881232,3881250,3881288,3881698,3922534,3923049,3923143,3923810,3924319,3926952,3947150,3954870,3954876,3963861,3980372,3991006,3993123,3993579,4005274,4005328,4013127,4049559,4049651,4054807,4055452,4055498,4055580,4055581,4055594,4055598,4056020,4056408,4056497,4056521,4056523,4057726,4060194,4063092,4107255,4107901,4107976,4108015,4108348,4108375,4149848,4150024,4186920,4188106,4190672,4191638,4195617,4206678,4206956,4206975,4206991,4207052,4217033,4218367,4218734,4219549,4276546,4276582,4276592,4276610,4281771,4282487,4282945,4283256,4283312,4284529,4303867,4334386,4334422,4334423,4335573,4335613,4343388,4356754,4357421,4376404,4376894,4377746,4377759,4377943,4394359,4408521,4417572,4420115,4433696,4443078,4444566,4459007,4459029,4459054,4503489,4503497,4509459,4509517,4509666,4510361,4514105,4561390,4561487,4561549,4562144,4562196,4562198,4562215,4562277,4562591,4603876,4604940,4635729,4642307,4642336,4661316,4661363,4670147,4674337,4674338,4685481,4730610,4730618,4736697,4736768,4736809,4738890,4739025,4739026,4741361,4744163,4788789,4788808,4788886,4829771,4830329,4830945,4847738,4847739,4868462,4885932,4887918,4887919,4887940,4887950,4892448,4901200,4912996,4913140,4913162,4957625,4957647,4957648,4957670,4962822,4963518,4963532,4963682,4964017,4964068,4964345,4964376,4964379,4964408,4964428,4965250,5014949,5014961,5015688,5015696,5015698,5015721,5015722,5015782,5055334,5056779,5056782,5057225,5057700,5075606,5083324,5095905,5095930,5114499,5114765,5114791,5124738,5125118,5139551,5139610,5139614,5139625,5184258,5184260,5184270,5184294,5184300,5189497,5189498,5189539,5190246,5190271,5190341,5190353,5190359,5190360,5191134,5191191,5191303,5192477,5194884,5197652,5242110,5242263,5242304,5243369,5243411,5284046,5284495,5284566,5321305,5322461,5341113,5341325,5341339,5341375,5366483,5366526,5366540,5366557,5411298,5411347,5411348,5411392,5417247,5417263,5417402,5417419,5417501,5418153,5418163,5419373,5419553,5419594,5424643,5424870,5469394,5469542,5469549,5470172,5470555,5470702,5470703,5470714,5511657,5511677,5511903,5511946,5511972,5512074,5512225,5512277,5512659,5513115,5529031,5529669,5568386,5568413,5568457,5568794,5581457,5593519,5593782,5593919,5593955,5638237,5638242,5638274,5643484,5644183,5644188,5644207,5644234,5644275,5644334,5644370,5644734,5644751,5644782,5645061,5645088,5645184,5645186,5645213,5651681,5696356,5697179,5697246,5697285,5697308,5697560,5697617,5697637,5739168,5739344,5740092,5756226,5764242,5769733,5776572,5788362,5795645,5795850,5795890,5800388,5808974,5820251,5820380,5820930,5865495,5865502,5865548,5870799,5871455,5871502,5871565,5871622,5871628,5871654,5879000,5884557,5923140,5923799,5923882,5924174,5924263,5924352,5945929,5965332,5965399,5965432,5966724,5966974,5983089,5983680,5997522,6002920,6002948,6004108,6006539,6007449,6022490,6022778,6022801,6022811,6027392,6032038,6047254,6092471,6098276,6098283,6098407,6098447,6098449,6098485,6098892,6098946,6099192,6099291,6100353,6100522,6100587,6100610,6105562,6105841,6109749,6109789,6133953,6135641,6150294,6150341,6150342,6151044,6151141,6151408,6157962,6189472,6191279,6192537,6192841,6231104,6239187,6247827,6247828,6249305,6249750,6249759,6254339,6274942,6319356,6324528,6325279,6325420,6325755,6326110,6377202,6377404,6377966,6378003,6378102,6378111,6378125,6378342,6378503,6378504,6378551,6420077,6420659,6420942,6456572,6457679,6460193,6461141,6462695,6469493,6474389,6475904,6476142,6476371,6476377,6485253,6487586,6489379,6500660,6501381,6501403,6545679,6545703,6545711,6545713,6545720,6545754,6550780,6551484,6551538,6551540,6551564,6552344,6552367,6552449,6552457,6553705,6553797,6558801,6558996,6603803,6603822,6603943,6604762,6605083,6605164,6645557,6645620,6645809,6679445,6679446,6683276,6684465,6687012,6687027,6701652,6703230,6703304,6703580,6703607,6713670,6772782,6772801,6772832,6778601,6778674,6778712,6779221,6779222,6779226,6779257,6779525,6780916,6795140,6830766,6831506,6872704,6873571,6873971,6890984,6896345,6897435,6905370,6910645,6914364,6916886,6930482,6930956,6942371,6943985,6999815,6999846,7004954,7004963,7004983,7005014,7005711,7005712,7005725,7005748,7005774,7005784,7005790,7006195,7006218,7006282,7006603,7006688,7007702,7013229,7057214,7057334,7057362,7058290,7058311,7098692,7098934,7099296,7100342,7116739,7137919,7137920,7156937,7157001,7157148,7157166,7182387,7182400,7213855,7227165,7227167,7227226,7227255,7232240,7232291,7232310,7232995,7233009,7233045,7233544,7233814,7235052,7235163,7244096,7284950,7285114,7285723,7327043,7327919,7328162,7349619,7360729,7367518,7382117,7384001,7392834,7394278,7397184,7409210,7453302,7453897,7459065,7459729,7459763,7459807,7459816,7459859,7460233,7460242,7460518,7460522,7464476,7467610,7511834,7512549,7512570,7553943,7554351,7554371,7554555,7555566,7572046,7588601,7593219,7596540,7600441,7611972,7612028,7612039,7612049,7622586,7636262,7636766,7681536,7686691,7686753,7687510,7687533,7687543,7687939,7688275,7691960,7739930,7739938,7740047,7740054,7740304,7740505,7782567,7782727,7807030,7818955,7819004,7820179,7823584,7837175,7839110,7843543,7850731,7852354,7864218,7908641,7908653,7908654,7913886,7913908,7914819,7915081,7915165,7915383,7915406,7915436,7915441,7915448,7915480,7915558,7915559,7916667,7919246,7966848,7966888,7966898,7967430,7967437,7967468,7967494,7967537,7967538,8003042,8008448,8008661,8009237,8009533,8023925,8026307,8026476,8026481,8041536,8047278,8049743,8065759,8066268,8066269,8066275,8075250,8079381,8091091,8135451,8140719,8140796,8141417,8141468,8141513,8141694,8142062,8142390,8143687,8148912,8148950,8193537,8194338,8194352,8194370,8194697,8267760,8293354,8293434,8293440,8318382,8318391,8318434,8362737,8362790,8368763,8368798,8368811,8368870,8368918,8369652,8421304,8422650,8463731,8464334,8464917,8481913,8481955,8487296,8487618,8501904,8503078,8522402,8522684,8538282,8547705,8592058,8597148,8597920,8597924,8597971,8597989,8598413,8598719,8598721,8598723,8598732,8598832,8598864,8599979,8603968,8605177,8605178,8605179,8605187,8649706,8649724,8649860,8649873,8650602,8650625,8650929,8651038,8651107,8692314,8692506,8693046,8693233,8693280,8693721,8694173,8710324,8716858,8728747,8731341,8750569,8755188,8759906,8775970,8776006,8776024,8776031,8820459,8825582,8826250,8826298,8826325,8826375,8826468,8826817,8826819,8827141,8827232,8827277,8832407,8833657,8877943,8977787,8986960,8990391,8990895,9003078,9003116,9046987,9047656,9047698,9052966,9052992,9053610,9054171,9054456,9054580,9054620,9055713,9073094,9105619,9105662,9105740,9105743,9105746,9105770,9105784,9106491,9106495,9106525,9106536,9106877,9147292,9147465,9147575,9148249,9149195,9149196,9180163,9180191,9185611,9186846,9203988,9205469,9205591,9205886,9219198,9231184,9231185,9231216,9275277,9275297,9275320,9275321,9281019,9281070,9281071,9281190,9281207,9281609,9281876,9282022,9283061,9283178,9332507,9332650,9333230,9333266,9333317,9333344,9333708,9374441,9374670,9375096,9392079,9411939,9413110,9413142,9432292,9501896,9501910,9507894,9508343,9508392,9508658,9508808,9515067,9539468,9546648,9551885,9559652,9559656,9559730,9559733,9560556,9560580,9560587,9601875,9602813,9640564,9659538,9659912,9659934,9659959,9664558,9664659,9670028,9671101,9671430,9672543,9685049,9685050,9729724,9729776,9734890,9734936,9735646,9735655,9735778,9736195,9736622,9737733,9737871,9741750,9750739,9755968,9788054,9788078,9788737,9789123,9789190,9830907,9831355,9831380,9831583,9854034,9868835,9869348,9869356,9913587,9913627,9958382,9958396,9958402,9958403,9964310,9965164,9965283,9966489,9966491,9970451,10016209,10016214,10016893,10017250,10058072,10058084,10058332,10058481,10059183,10076090,10076713,10083541,10090604,10097242,10097266,10097267,10097286,10099765,10115839,10116254,10116269,10120342,10120941,10141780,10141781,10141808,10141816,10141817,10141821,10141850,10141889,10165923,10173184,10185978,10186576,10186652,10186677,10192533,10192558,10193056,10194814,10197130,10212601,10244395,10245010,10245504,10286034,10286080,10286274,10286322,10286604,10286633,10286945,10309635,10318463,10324622,10325129,10327647,10343865,10343974,10344086,10344225,10344276,10369524,10413848,10413873,10418973,10419641,10419789,10420244,10420267,10420552,10420615,10420638,10421750,10424362,10424400,10457260,10471435,10471599,10472140,10472619,10472647,10513397,10513425,10513880,10513942,10513943,10513948,10514914,10536819,10539442,10552532,10571239,10571386,10571392,10571402,10571678,10584627,10596692,10647423,10647485,10647486,10647542,10647915,10649119,10649144,10654721,10666213,10687501,10687942,10699523,10700188,10700204,10700545,10741751,10742254,10759782,10767174,10773354,10799435,10824797,10824822,10824840,10869160,10869169,10869183,10869223,10869230,10875064,10875095,10875194,10875571,10875617,10875920,10875978,10875984,10876012,10876065,10877086,10882388,10882427,10927118,10927280,10928033,10928378,10969313,10969564,10969887,10970248,10996553,11001772,11008352,11013215,11026622,11027096,11027104,11031694,11052313,11052409,11097239,11097243,11097255,11097267,11102434,11102501,11102517,11103212,11103226,11103245,11103259,11103262,11103303,11103314,11103345,11103820,11103861,11103862,11104116,11104146,11104158,11104230,11155434,11155594,11155620,11156223,11156353,11156799,11197293,11197304,11197318,11197374,11197652,11197698,11197743,11198724,11215308,11215313,11231608,11235029,11236275,11238796,11238797,11255320,11255338,11255582,11266979,11268585,11280708,11280753,11280773,11324786,11330022,11330637,11330723,11330762,11330857,11382691,11382718,11382825,11383571,11383594,11383619,11383879,11383880,11383967,11423091,11425868,11425893,11442598,11463492,11463498,11463499,11463516,11465946,11481998,11482049,11482307,11482328,11487094,11508012,11508087,11508089,11508204,11542511,11552655,11552695,11552696,11552707,11557757,11558562,11558594,11559014,11559081,11559082,11559554,11560728,11560778,11565756,11565760,11565938,11605153,11611109,11611174,11611197,11611212,11611564,11611603,11611652,11613248,11653071,11653072,11671056,11690750,11691943,11691971,11694349,11711030,11711178,11711197,11711235,11736359,11736375,11736440,11780383,11785645,11785702,11786275,11786276,11786450,11786899,11787176,11787219,11787238,11787247,11787282,11788416,11838477,11839059,11839086,11839112,11839120,11839128,11839143,11839459,11839469,11839590,11881189,11881211,11881413,11881482,11881484,11904463,11905433,11919629,11922157,11937981,11938018,11938630,11938653,11949675,11951098,11963827,11963876,11963911,11963912,11963917,12008162,12008174,12008194,12008200,12008234,12013372,12013439,12013440,12014215,12014707,12014710,12014976,12014991,12015063,12033689,12066428,12066523,12066566,12067171,12067637,12107053,12108710,12109255,12141050,12166553,12167731,12171155,12177124,12191628,12236224,12236232,12236259,12236260,12241496,12241564,12242220,12242291,12242343,12242796,12243129,12243959,12244329,12244400,12244454,12246998,12247006,12249708,12249749,12249750,12294370,12294397,12294402,12294417,12294494,12294508,12295041,12295062,12295076,12295077,12295434,12295533,12295556,12336066,12336943,12353575,12354154,12377004,12377014,12381949,12393435,12393615,12418824,12463489,12463524,12463555,12468646,12469934,12470238,12471544,12474101,12477048,12484271,12503728,12505534,12521195,12521294,12521961,12521986,12522401,12522543,12563401,12564786,12580890,12620911,12620961,12621125,12621292,12621306,12625846,12645720,12646392,12656139,12691075,12691080,12697039,12697070,12697137,12697143,12697838,12697855,12697936,12697939,12699095,12704439,12711670,12750260,12750287,12750302,12792047,12792381,12792663,12793692,12810092,12810131,12817829,12849650,12854314*geojson
#> Getting features 2000 to 4000 of 4467
#> https://hydro.nationalmap.gov/arcgis/rest/services/3DHP_all/MapServer/50/query 
#> 12861196,12874730,12874809,12904452,12918963,12918974,12918975,12918997,12924063,12924709,12924746,12924828,12924970,12925229,12925303,12925580,12925618,12925683,12925691,12925707,12926794,12977006,12977078,12977753,12977768,12978240,12978291,12978318,13019852,13020126,13021125,13043081,13051804,13051827,13053414,13058404,13060888,13060924,13077293,13077689,13077690,13086666,13088166,13103141,13103145,13103186,13103215,13147567,13147590,13147635,13147636,13152664,13152665,13152740,13152748,13153374,13153414,13153501,13153565,13153936,13154000,13154285,13154353,13154427,13169358,13205381,13205427,13205454,13205460,13206094,13206219,13206579,13206661,13245894,13247426,13247628,13248187,13248298,13249039,13270142,13273874,13274829,13315720,13315822,13330649,13362118,13375500,13375548,13380722,13380723,13380757,13380804,13380845,13381506,13381533,13381566,13381591,13381606,13382034,13382108,13382411,13383596,13386270,13388961,13433595,13433728,13433737,13434407,13434429,13475978,13475983,13477148,13498879,13515071,13526533,13533622,13537419,13538162,13545390,13546641,13558672,13558684,13558688,13558747,13603530,13603560,13603573,13603574,13603575,13609461,13609465,13609466,13609505,13609641,13610059,13610079,13610081,13610084,13610384,13610413,13610467,13611585,13611643,13611668,13611813,13614132,13661978,13662054,13662083,13662755,13662769,13662783,13662904,13663130,13663137,13663168,13702855,13704440,13704937,13705042,13705521,13705675,13742360,13743485,13743501,13743514,13760609,13762579,13762581,13762583,13762613,13771683,13786797,13787510,13787516,13831799,13831813,13836950,13837648,13837762,13837780,13838536,13838537,13842459,13890014,13890120,13890787,13891260,13891277,13891287,13891331,13932180,13949981,13964416,13973466,13989959,13990042,13990050,13994710,14003367,14015460,14060434,14060487,14065660,14066318,14066873,14066901,14066909,14067166,14067180,14067191,14067239,14067242,14067302,14068326,14107323,14108875,14110057,14119269,14160911,14161303,14161336,14161774,14178193,14197935,14215992,14217978,14217979,14222476,14222569,14222617,14228072,14230976,14230984,14242979,14243005,14252684,14287595,14287612,14293609,14293658,14293701,14293776,14294548,14294570,14294585,14294587,14295676,14303734,14303845,14313778,14328409,14329109,14345505,14345620,14345647,14345649,14346285,14359763,14362747,14387557,14388256,14389056,14389367,14403568,14405726,14405781,14405802,14413894,14419305,14426097,14429099,14430017,14445094,14445532,14445553,14450282,14454612,14459082,14471110,14481098,14489187,14501531,14516432,14516433,14516434,14516453,14516543,14521591,14523195,14523299,14524415,14524524,14527082,14574458,14575165,14575273,14575593,14575622,14575713,14617052,14617550,14617565,14617761,14617798,14618005,14654479,14655613,14655632,14678995,14679032,14687712,14687713,14699557,14699634,14699636,14744220,14744263,14749295,14749348,14750044,14750059,14750203,14750223,14750316,14750343,14750940,14750995,14751081,14752337,14757388,14757628,14802466,14803124,14803163,14803235,14803547,14803640,14809266,14844529,14845258,14868431,14876397,14876423,14883055,14901786,14901810,14926907,14926946,14971130,14971161,14976393,14976396,14976422,14976428,14976429,14977091,14977092,14977289,14977330,14977981,14978005,14978099,14978129,14979237,14979353,14981835,14984623,14989687,14996364,15029122,15029140,15029252,15029273,15029904,15071124,15071912,15072529,15072533,15089908,15108947,15110117,15128917,15128982,15129109,15129349,15139606,15204614,15205180,15205206,15205544,15205611,15205633,15205664,15205667,15206649,15206656,15211988,15212041,15212046,15257079,15257800,15257839,15257844,15257905,15258345,15299532,15299819,15300855,15317926,15338277,15340731,15356893,15356999,15357041,15367526,15382479,15382609,15382631,15382674,15382675,15427033,15427047,15432255,15432367,15432961,15432962,15433018,15433069,15433122,15433130,15433602,15433615,15433892,15434055,15435110,15435245,15440371,15484944,15485582,15485651,15486021,15526605,15560705,15570685,15584489,15584778,15584785,15610174,15654348,15654990,15660222,15660244,15660265,15660951,15660978,15662990,15663211,15663257,15668220,15668221,15712970,15713118,15713730,15713854,15714143,15755157,15755322,15755373,15755728,15755858,15756272,15781081,15787655,15787660,15789825,15794176,15794203,15796682,15812633,15812724,15813021,15813029,15813082,15817563,15837728,15837920,15882547,15882559,15882576,15888422,15888430,15888477,15888514,15888522,15888583,15888616,15888999,15889274,15889275,15889297,15889309,15889322,15890586,15892908,15892943,15895729,15941174,15941193,15941235,15941576,15941613,15982262,15982523,15982537,15982907,15983088,16000188,16005771,16040430,16053736,16065126,16065721,16065788,16065802,16065886,16065892,16109905,16110559,16117379,16117420,16117497,16117504,16118135,16118734,16121087,16131469,16168323,16169003,16169009,16169088,16169128,16169142,16169541,16169544,16169577,16169613,16188216,16210957,16218032,16218391,16222414,16234115,16234129,16234577,16234871,16243152,16243886,16268934,16268949,16279321,16280329,16294278,16338808,16338820,16338872,16343850,16344553,16344623,16344642,16344675,16344707,16345181,16345201,16345466,16345587,16345651,16346729,16349229,16396508,16397264,16397600,16397660,16397748,16438702,16438981,16439388,16457096,16471373,16478024,16481543,16495220,16497118,16497270,16497340,16501952,16521800,16522494,16522543,16572337,16572338,16572993,16573820,16573843,16573928,16574545,16577385,16577505,16579061,16593536,16624502,16624689,16624698,16625345,16625363,16625447,16625454,16625456,16666354,16708231,16713162,16724601,16724607,16724640,16724641,16724667,16729219,16733429,16737721,16749790,16749836,16749878,16794197,16794198,16794206,16794213,16794277,16794278,16799537,16799561,16800265,16800321,16800322,16800516,16800838,16801172,16802434,16852100,16852174,16853247,16894583,16895222,16950150,16951729,16952010,16952046,16952087,16962208,16965149,16965150,16976814,16977200,17021395,17021426,17021436,17026597,17027259,17027292,17027299,17027300,17027791,17028090,17028103,17028119,17028158,17028274,17028275,17028277,17032070,17034496,17035062,17038192,17079427,17079523,17080298,17080639,17080780,17080787,17121687,17121692,17122024,17122026,17122890,17122922,17139668,17139680,17141861,17144143,17159953,17160491,17160503,17179159,17179371,17179390,17179412,17179454,17249467,17249481,17249488,17254645,17254687,17254688,17254696,17254697,17254698,17255450,17255451,17255612,17255670,17255929,17256012,17256256,17256257,17256270,17257605,17259605,17262599,17262833,17265885,17307839,17307863,17307896,17307934,17349456,17350159,17385161,17386628,17406514,17406781,17411415,17415921,17417180,17417479,17418779,17431657,17432258,17432309,17476587,17476588,17482479,17483223,17483360,17483720,17484045,17484048,17484109,17535861,17535900,17535906,17536302,17536366,17577551,17577736,17577996,17578102,17578308,17595427,17633200,17635127,17635178,17635198,17643964,17645385,17659614,17660296,17660303,17660334,17704864,17704875,17704912,17704919,17704938,17710117,17710899,17710909,17711317,17711345,17711359,17712792,17715449,17718130,17730578,17740545,17762993,17763053,17763068,17763677,17764062,17765338,17805547,17805574,17832281,17837501,17872039,17875677,17887974,17888151,17888239,17888285,17932415,17932428,17938274,17938302,17938378,17938414,17938438,17939187,17939199,17939203,17939206,17945608,17990413,17990462,17990474,17990483,17991068,17991196,17991203,17991218,17991458,17991546,18055234,18058275,18071149,18073639,18088054,18088086,18089563,18089913,18098985,18114904,18114950,18114959,18159488,18159501,18159505,18159523,18159559,18164537,18164542,18164610,18164635,18164640,18165229,18165367,18166086,18166115,18166231,18167604,18172703,18217442,18217444,18218117,18218183,18218411,18218523,18257984,18259939,18260540,18260567,18279911,18301157,18317624,18322106,18329890,18342488,18386187,18386820,18391975,18391991,18392071,18392072,18392651,18392897,18393211,18393215,18393221,18393542,18393681,18393717,18394962,18400121,18400308,18412521,18444744,18444905,18445589,18486833,18487302,18487430,18487526,18518839,18525430,18525439,18525447,18527862,18544580,18569878,18615211,18615231,18615241,18621040,18621055,18621074,18621105,18621230,18621631,18621649,18621679,18621972,18622055,18622084,18623104,18628592,18631741,18657513,18673458,18673611,18673627,18673634,18674326,18674388,18674397,18674404,18674782,18716339,18716935,18733735,18741776,18766692,18773696,18773726,18782691,18784390,18799024,18799063,18843518,18843531,18848778,18848833,18849620,18850066,18850107,18850359,18850425,18850988,18851826,18851849,18856868,18870398,18901955,18902013,18902697,18902704,18902732,18902769,18903006,18944198,18944493,18978570,18986303,19001585,19001737,19071338,19076481,19077202,19077328,19077377,19077690,19077696,19078006,19078043,19078156,19078166,19084699,19116245,19128971,19129748,19129776,19129827,19130198,19171257,19171277,19171548,19171589,19171644,19172815,19197657,19203806,19212998,19229279,19238297,19254024,19254037,19254051,19254058,19254083,19254102,19254116,19298341,19298386,19298391,19298438,19303501,19304771,19304819,19305108,19305202,19306320,19306391,19308878,19315946,19320960,19356113,19356134,19356219,19356893,19356911,19356935,19357011,19357033,19357060,19357469,19357504,19398311,19398915,19399135,19421780,19444612,19454201,19456182,19456185,19456209,19456241,19460805,19460859,19467486,19481281,19481330,19481374,19481455,19525655,19531469,19531477,19531503,19531536,19531570,19531596,19531633,19532064,19532093,19532464,19536033,19539087,19542501,19543128,19583339,19583379,19583455,19584150,19584191,19584562,19625209,19625482,19625762,19627220,19643394,19648783,19650784,19667760,19682941,19683335,19696098,19708789,19708805,19708808,19708853,19708910,19753213,19759035,19759038,19759067,19759084,19759099,19759224,19759642,19759685,19761242,19772455,19776958,19811370,19811401,19812059,19820301,19820338,19821076,19821446,19853577,19853837,19853887,19854263,19871412,19887485,19892027,19892456,19897502,19909610,19911540,19911541,19911564,19911584,19921792,19921896,19922802,19936819,19936870,19936883,19986882,19986891,19987698,19987729,19988106,19988109,19988390,19988409,19988443,19989750,20039724,20039843,20040540,20082215,20083427,20083439,20100039,20100055,20115520,20119559,20120775,20137738,20139708,20148766,20148925,20152854,20164910,20164917,20164939,20209308,20209314,20209343,20209351,20209374,20214465,20214502,20215221,20215227,20215241,20215804,20216103,20216235,20216248,20264381,20266759,20266885,20266914,20266938,20266947,20266952,20266971,20267551,20267645,20267675,20267691,20267696,20268056,20309366,20309563,20309587,20309631,20309646,20310528,20310948,20327544,20347865,20348549,20348970,20349008,20349048,20367663,20367724,20367987,20368038,20378246,20378299,20378633,20437644,20437652,20437724,20442952,20442990,20443003,20443535,20443547,20443579,20443598,20443606,20443695,20443767,20444114,20444443,20444580,20445824,20451206,20457499,20460178,20495456,20495541,20496168,20496198,20496628,20537736,20538717,20558561,20561602,20561818,20570761,20596283,20596310,20596356,20605598,20621646,20666214,20666225,20666237,20671309,20671359,20671444,20672152,20672245,20672675,20672945,20673037,20722925,20723279,20724073,20724771,20724806,20725182,20725280,20766675,20766856,20767135,20767550,20767557,20789890,20798915,20805495,20837176,20849072,20893759,20898826,20898827,20898840,20898847,20898876,20899521,20899532,20899612,20899717,20900092,20900401,20900435,20901459,20901491,20907180,20914431,20951466,20952092,20952150,20993629,20993815,21028012,21028039,21031372,21061982,21075819,21076547,21076600,21121083,21126183,21126214,21126907,21126941,21126952,21126955,21127024,21127036,21127041,21127073,21127473,21127795,21128982,21129136,21179736,21179788,21179795,21179814,21179867,21179881,21180133,21180275,21180282,21222675,21253507,21278580,21278863,21303860,21303889,21348212,21348222,21348236,21348274,21354092,21354120,21354129,21354137,21354227,21356119,21356179,21356227,21361417,21361422,21361652,21371232,21405711,21406353,21406360,21406389,21406921,21448631,21471479,21486968,21489457,21505907,21506244,21519080,21531519,21562608,21575509,21575519,21575529,21581469,21581493,21581599,21581661,21582078,21582111,21582419,21582447,21582520,21583477,21583506,21583550,21588903,21589089,21589109,21633526,21633588,21633724,21634335,21634394,21634396,21634457,21634704,21676176,21676814,21677031,21693904,21703110,21714090,21714091,21720464,21732459,21734036,21734324,21734331,21734389,21745559,21746216,21759455,21759486,21759541,21759616,21759652,21804258,21804308,21809440,21810116,21810125,21810126,21810150,21810194,21810253,21810700,21810702,21810731,21810965,21812226,21812227,21814804,21817665,21863094,21863153,21863247,21902419,21903780,21904011,21904485,21905274,21941682,21942865,21942900,21959841,21961764,21961835,21971933,21986665,21986825,21986838,22031331,22031340,22036548,22036694,22037310,22037421,22037870,22037914,22037917,22038205,22038222,22038286,22038288,22038336,22039408,22039421,22039565,22039636,22048907,22089228,22090355,22131490,22131524,22131569,22131915,22132704,22169612,22173241,22189485,22189693,22198832,22214802,22214803,22259271,22265035,22265036,22265046,22265096,22265192,22265243,22265566,22265849,22265858,22265881,22266015,22266017,22269517,22272314,22272351,22272544,22299394,22299727,22300206,22316991,22317048,22317134,22317141,22317733,22317773,22317811,22317834,22318188,22359048,22359049,22359078,22359945,22360029,22360211,22397732,22397747,22397752,22400139,22416633,22442024,22486628,22486894,22492003,22492005,22492021,22492073,22492925,22493254,22493597,22493617,22493646,22494440,22494881,22494966,22497361,22512636,22517552,22530521,22541767,22542101,22544898,22544942,22545828,22546117,22546194,22571343,22587959,22588824,22605633,22605690,22605703,22606272,22622023,22644345,22646125,22646126,22646139,22646170,22654952,22671522,22671523,22702565,22715704,22720928,22721593,22721777,22722451,22722504,22723823,22724590,22726265,22727645,22738704,22774173,22774230,22774557,22774621,22815385,22815784,22839981,22847922,22854041,22854490,22854507,22857006,22873340,22873408,22873657,22873675,22873688,22877560,22884306,22898370,22944197,22944281,22949454,22949533,22950188,22950205,22950693,22951013,22951036,22951045,22957437,23003055,23003632,23044546,23044629,23086599,23101753,23102171,23102194,23106814,23112449,23112781,23112829,23127494,23127549,23127964,23171813,23171831,23177119,23177120,23177129,23177883,23177921,23177961,23178694,23178724,23178749,23178765,23178782,23182468,23229897,23230696,23230723,23230725,23272019,23273433,23273629,23273640,23290718,23295796,23297962,23298439,23316333,23329906,23330274,23330341,23339331,23341615,23343472,23355643,23400553,23400572,23405527,23405534,23406324,23406334,23406359,23406374,23406412,23407130,23407156,23413652,23413877,23458638,23458661,23458670,23459271,23459293,23459296,23459327,23459328,23459361,23459377,23459385,23459424,23459873,23499299,23501864,23502059,23518653,23518663,23518721,23539632,23558854,23571583,23572067,23574767,23583610,23584321,23584349,23628920,23634116,23634182,23634864,23635688,23635762,23636869,23636890,23639485,23687868,23687886,23729717,23729768,23729782,23730906,23747515,23755323,23768503,23770980,23785536,23787492,23787502,23787539,23787548,23812224,23812262,23856994,23856995,23857050,23863081,23863564,23863773,23863818,23863876,23863901,23865144,23865197,23870392,23870402,23870434,23882368,23914755,23914756,23914797,23914816,23915467,23915488,23915930,23915960,23915961,23975277,23975346,23996253,24015383,24025640,24025986,24040480,24040570,24040601,24040609,24040666,24084943,24084962,24085000,24085018,24090769,24090857,24090878,24090961,24091020,24091754,24091846,24101147,24102022,24142940,24142966,24142986,24143617,24143712,24143996,24144045,24144071,24144123,24144165,24144172,24185537,24186059,24186345,24186564,24202613,24203174,24218437,24241071,24242992,24243071,24255153,24268249,24268333,24313320,24318474,24318505,24318507,24319193,24319271,24319332,24319348,24319372,24319385,24319824,24320111,24320150,24326906,24370768,24370941,24370942,24370957,24371572,24371625,24373972,24374559,24414466,24415000,24436740,24445500,24445504,24452118,24452119,24464162,24470912,24470930,24470987,24481484,24482053,24495012,24495563,24540191,24540244,24546103,24546110,24546115,24546130,24546986,24547085,24548121,24548269,24553685,24598131,24598879,24598928,24599194,24599280,24640230,24640709,24672410,24677609,24686140,24695683,24697565,24697582,24697585,24708208,24709475,24722754,24767221,24767795,24773127,24773765,24774364,24774382,24774425,24774692,24774695,24774821,24775472,24775831,24781188,24825786,24825939,24826554,24826671,24827017,24866149,24867706,24868406,24869417,24892173,24906773,24918872,24925708,24925953,24925977,24925979,24930426,24936977,24951204,24951215,24951249,24995469,24995484,25000543,25000573,25001266,25001279,25001313,25001391,25001841,25002116,25002118,25002138,25002199,25002257,25008607,25053177,25053216,25053231,25053889,25053914,25054384,25113951,25119366,25120612,25138179,25151751,25153772,25153818,25178589,25179056,25179171,25179229,25223910,25223956,25229171,25229917,25229934,25229988,25230412,25230497,25234576,25234591,25251031,25282703,25282721,25282753,25282762,25283357,25283437,25283476,25283824,25283839,25323290,25324979,25325007,25325229,25325960,25326608,25342717,25356906,25359139,25363583,25363595,25382507,25382551,25382557,25382563,25387093,25394371,25407856,25407890,25407891,25407910,25452782,25458108,25458182,25458771,25458775,25458785,25458836,25458857,25459043,25459047,25459291,25459595,25459623,25459705,25459787,25460824,25463451,25474214,25511074,25511910,25511913,25511918,25511994,25512067,25512318,25512414,25553052,25553733,25554322,25554721,25571362,25585726,25592346,25595692,25610898,25611207,25620345,25624077,25624078,25635367,25679735,25679766,25679767,25679774,25679789*geojson
#> Getting features 4000 to 4467 of 4467
#> https://hydro.nationalmap.gov/arcgis/rest/services/3DHP_all/MapServer/50/query 
#> 25685543,25685565,25685597,25685641,25685789,25686099,25686402,25687586,25687712,25687789,25687836,25690188,25695630,25737221,25737317,25737335,25738025,25738031,25738037,25738290,25779022,25779215,25779652,25780387,25780395,25802424,25811117,25836424,25845572,25849344,25849708,25861061,25861750,25861834,25879664,25888889,25891775,25900558,25906369,25906793,25906794,25906795,25906830,25906865,25906898,25912843,25912847,25912913,25913649,25918881,25929771,25931287,25964942,25965585,25965601,25965663,25965884,25965935,26006420,26006660,26007038,26007872,26024752,26064393,26064638,26064658,26064669,26073950,26089966,26090049,26090063,26090098,26090101,26090109,26097919,26133729,26134342,26134349,26134402,26139471,26140176,26140181,26140291,26140629,26140640,26140709,26141106,26142082,26142319,26144642,26147199,26160951,26192127,26192174,26192203,26192214,26192857,26192909,26234713,26235256,26259507,26272528,26273032,26273088,26273106,26291641,26291774,26291780,26292047,26296608,26304505,26317437,26317450,26317451,26317482,26347257,26361739,26361777,26361801,26366962,26367057,26367079,26367663,26367691,26367711,26367737,26367788,26367824,26367866,26368526,26368584,26369749,26370066,26374999,26419467,26420049,26420064,26420442,26420533,26462449,26462783,26463049,26479695,26485043,26487526,26500750,26500761,26500768,26519413,26519553,26519829,26524509,26529158,26530227,26545019,26589991,26590040,26596027,26596066,26596103,26596151,26596884,26596983,26598068,26600684,26603722,26647840,26647871,26648042,26649174,26690382,26690941,26691163,26691495,26708453,26708470,26748461,26748464,26748481,26757737,26758744,26772965,26773585,26818111,26818155,26823399,26824017,26824033,26824166,26824290,26824549,26824627,26824929,26824930,26824990,26831426,26876118,26876136,26876170,26876896,26876940,26877247,26918314,26918585,26918603,26936522,26944734,26951111,26957883,26957901,26957918,26976977,26977109,26977129,26977141,27002593,27002658,27002674,27018273,27047589,27047623,27047624,27053647,27053658,27053699,27053780,27053781,27053962,27054267,27054313,27054636,27054692,27055801,27064432,27092194,27106759,27106829,27106868,27106899,27149657,27149860,27180850,27187597,27206553,27206723,27207617,27217427,27231651,27232001,27232066,27276727,27281907,27281908,27281912,27281913,27281959,27282000,27282636,27282668,27283202,27284800,27289850,27290278,27334389,27334395,27334558,27335155,27335173,27335497,27340952,27341170,27376598,27376885,27377307,27377715,27378185,27402483,27408977,27409028,27420732,27432803,27434678,27434679,27445345,27445763,27447957,27460189,27460220,27505179,27505218,27510437,27510438,27511233,27511257,27511266,27512055,27512069,27512144,27515835,27515913,27515927,27518945,27765423,27849657,27912473,27912589,27912622,27918929,27918966,27930841,27930844,27930845,27945166,27945177,27945201,28012894,28012898,28191519,28191525,28191526,28191527,28191539,28191547,28234202,28234209,28234218,28244168,28654286,28654377,28654380,28654421,28654423,28654439,28787151,28787153,28787169,28822701,28823737,28824700,28824885,29274635,29279818,29279857,29279862,29280453,29280498,29280505,29280506,29280521,29280643,29281062,29282569,29282700,29282770,29332645,29333424,29333440,29333900,29374538,29374597,29374599,29374617,29375477,29397795,29416076,29432488,29441634,29443031,29443032,29444114,29457956,29458007,29458020,29501750,29501800,29507008,29507009,29507077,29507771,29507782,29508239,29508249,29508518,29508586,29508663,29512256,29513769,29526439,29559577,29559633,29560408,29560799,29560812,29601540,29602054,29602182,29602430,29618822,29619336,29635094,29637507,29658884,29668009,29669860,29671897,29672391,29683733,29728929,29728953,29728970,29734986,29735799,29735843,29735866,29736922,29737091,29742010,29786909,29786919,29787591,29829134,29829148,29829554,29829681,29846665,29852197,29860165,29861000,29867634,29867719,29886849,29890977,29891048,29898707,29911962,29912124,29913823,29923801,29924204,29928389,29929380,29956120,29956151,29956189,29961974,29962146,29962155,29962574,29962605,29962924,29962925,29962954,29966522,29966528,29966621,29969530,30013335,30013411,30013435,30013436,30013450,30014078,30014385,30014616,30055557,30056447,30056636*geojson

if(!is.null(CO))
  plot(sf::st_geometry(CO), col = "blue")


# get all the waterbodies along the CO river
CO_wb <- get_3dhp(ids = unique(CO$waterbodyid3dhp), type = "waterbody")
#> https://hydro.nationalmap.gov/arcgis/rest/services/3DHP_all/MapServer/60/query 
#> id3dhp IN ('OJ37O', 'OI4FS', 'MDNX9', 'OHR2N', 'OHY4I', 'KZL0B', 'OJGLU', 'OI96Q', 'OI96J', 'J8DYO', 'OJ6FM', 'KIHO5', 'OJ6FN', 'OI7GE', 'OIO58', 'M0MGD', 'OJ6FL', 'NA', 'IU6TQ', 'OJ6FG', 'OHY4D', 'OHL3S', 'OJ6FE', 'OI8WX', 'OJ6FO', 'OI4JQ', 'M01S0', 'KU1OO', 'OHL4B', 'OHY4F', 'OI8WU', 'OI94Y', 'OHY4B', 'OHL49', 'OHY4H', 'IUR00', 'OJ6FC', 'OJ6FH', 'OHY4E', 'JDSEX', 'OIOTB', 'JWJ3Q', 'JCD9S', 'OIKQF', 'OHL3P', 'OHL46', 'OJ6FK', 'OI967', 'OHY4C', 'J5HO6', 'OHL47', 'LBW8B', 'OHR2O', 'J8P75', 'OI8WT', 'OHL3Q', 'OHL3T', 'JC6ZL', 'OI4CD', 'OHL45', 'OHL3R', 'M0AS9', 'IO29Y', 'MDWN7')jsontrue
#> https://hydro.nationalmap.gov/arcgis/rest/services/3DHP_all/MapServer/60/query 
#> 4924,6896,6897,6899,6900,6903,6904,6905,6906,6907,8281,953787,1175878,1198757,1637546,1754920,1767751,1909895,1917014,1974058,2734456,3624801,4093887,4318460,4817039,5795760,5806018,5819102,6347693,6357660,7136687,7136688,7136689,7136690,7136691,7136701,7136702,7136703,7136705,7136707,7140052,7140053,7144272,7144273,7144274,7144275,7144276,7144277,7144278,7149803,7149833,7149896,7151240,7151907,7151908,7151911,7151955,7151986,7151997,7152002,7158298,7161186,7161787*geojson

if(!is.null(CO_wb)) {
plot(sf::st_geometry(CO_wb[grepl("Powell", CO_wb$gnisidlabel),]),
     col = "blue", border = "NA") }


# given universalreferenceid (reachcodes), can query for them but only
# for hydrolocations. This is useful for looking up mainstem ids.

get_3dhp(universalreferenceid = unique(hydrolocation$universalreferenceid),
         type = "hydrolocation")
#> https://hydro.nationalmap.gov/arcgis/rest/services/3DHP_all/MapServer/20/query 
#> universalreferenceid IN ('07070005000218', '07070005000219', '07070005001966', '07090002004516', '07090002004524', '07090002004544', '07090002004546', '07090002004549', '07090002004555', '07090002004568', '07090002004598', '07090002004614', '07090002004623', '07090002004647', '07090002004650', '07090002004654', '07090002004666', '07090002004682', '07090002004684', '07090002004693', '07090002004722', '07090002004727', '07090002004733', '07090002004753', '07090002004766', '07090002004781', '07090002004792', '07090002004800', '07090002004805', '07090002004812', '07090002004813', '07090002004820', '07090002004834', '07090002004849', '07090002004867', '07090002004873', '07090002004885', '07090002004906', '07090002004955', '07090002005006', '07090002005031', '07090002005045', '07090002005047', '07090002005052', '07090002005079', '07090002005088', '07090002005098', '07090002005099', '07090002005113', '07090002005120', '07090002005128', '07090002005136', '07090002005144', '07090002005146', '07090002005170', '07090002005172', '07090002005179', '07090002005185', '07090002005189', '07090002005195', '07090002005205', '07090002005237', '07090002005251', '07090002005260', '07090002005263', '07090002005266', '07090002005271', '07090002005276', '07090002005280', '07090002005298', '07090002005299', '07090002005309', '07090002005312', '07090002005314', '07090002005326', '07090002005345', '07090002005366', '07090002005387', '07090002005390', '07090002005393', '07090002005396', '07090002005402', '07090002005403', '07090002005409', '07090002005418', '07090002005425', '07090002005437', '07090002005456', '07090002005462', '07090002005465', '07090002005473', '07090002005495', '07090002005504', '07090002005512', '07090002005513', '07090002005553', '07090002005560', '07090002005576', '07090002005588', '07090002005590', '07090002005601', '07090002005619', '07090002005625', '07090002005648', '07090002005658', '07090002005690', '07090002005693', '07090002005713', '07090002005718', '07090002005733', '07090002005739', '07090002005756', '07090002005760', '07090002005761', '07090002005764', '07090002005794', '07090002005808', '07090002005810', '07090002005812', '07090002005828', '07090002005830', '07090002005831', '07090002005842', '07090002005844', '07090002005863', '07090002005869', '07090002005879', '07090002005907', '07090002005931', '07090002005935', '07090002005945', '07090002005947', '07090002005954', '07090002005975', '07090002005986', '07090002005993', '07090002005996', '07090002005997', '07090002005999', '07090002006000', '07090002006013', '07090002006016', '07090002006017', '07090002006033', '07090002006040', '07090002006042', '07090002006044', '07090002006054', '07090002006055', '07090002006074', '07090002006079', '07090002006085', '07090002006095', '07090002006111', '07090002006114', '07090002006122', '07090002006143', '07090002006160', '07090002006162', '07090002006186', '07090002006187', '07090002006188', '07090002006189', '07090002006190', '07090002006221', '07090002006259', '07090002006282', '07090002006299', '07090002006311', '07090002006312', '07090002006315', '07090002006326', '07090002006354', '07090002006368', '07090002006376', '07090002006410', '07090002006435', '07090002006441', '07090002006442', '07090002006444', '07090002006448', '07090002006454', '07090002006468', '07090002006476', '07090002006484', '07090002006485', '07090002006527', '07090002006538', '07090002006546', '07090002006564', '07090002006584', '07090002006601', '07090002006607', '07090002006614', '07090002006619', '07090002006643', '07090002006647', '07090002006658', '07090002006683', '07090002006725', '07090002006742', '07090002006757', '07090002006759', '07090002006761', '07090002006763', '07090002006769', '07090002006772', '07090002006785', '07090002006793', '07090002006794', '07090002006804', '07090002006822', '07090002006842', '07090002006848', '07090002006852', '07090002006853', '07090002006854', '07090002006869', '07090002006886', '07090002006900', '07090002006902', '07090002006919', '07090002006953', '07090002006962', '07090002006994', '07090002006995', '07090002007008', '07090002007027', '07090002007052', '07090002007069', '07090002007072', '07090002007079', '07090002007081', '07090002007086', '07090002007092', '07090002007110', '07090002007119', '07090002007130', '07090002007152', '07090002007164', '07090002007166', '07090002007173', '07090002007176', '07090002007184', '07090002007187', '07090002007193', '07090004000198', '07090004000199', '07090004000281', '07090004000504', '07090004000865', '07090004000886', '07090004000887', '07090004000890', '07090004000908', '07090004000924', '07090004000926', '07090004000927', '07090004000929', '07090004000934', '07090004001702', '07090002004772', '07090002004826', '07090002004886', '07090002005160', '07090002005254', '07090002005415', '07090002005492', '07090002005813', '07090002005837', '07090002005891', '07090002006248', '07090002006545', '07090002006716', '07090002006728', '07090002006740', '07090002006969', '07090002007058', '07090002007141')jsontrue
#> Warning: No sink, spring, waterbody outlet features found in area of interest.
#> https://hydro.nationalmap.gov/arcgis/rest/services/3DHP_all/MapServer/30/query 
#> universalreferenceid IN ('07070005000218', '07070005000219', '07070005001966', '07090002004516', '07090002004524', '07090002004544', '07090002004546', '07090002004549', '07090002004555', '07090002004568', '07090002004598', '07090002004614', '07090002004623', '07090002004647', '07090002004650', '07090002004654', '07090002004666', '07090002004682', '07090002004684', '07090002004693', '07090002004722', '07090002004727', '07090002004733', '07090002004753', '07090002004766', '07090002004781', '07090002004792', '07090002004800', '07090002004805', '07090002004812', '07090002004813', '07090002004820', '07090002004834', '07090002004849', '07090002004867', '07090002004873', '07090002004885', '07090002004906', '07090002004955', '07090002005006', '07090002005031', '07090002005045', '07090002005047', '07090002005052', '07090002005079', '07090002005088', '07090002005098', '07090002005099', '07090002005113', '07090002005120', '07090002005128', '07090002005136', '07090002005144', '07090002005146', '07090002005170', '07090002005172', '07090002005179', '07090002005185', '07090002005189', '07090002005195', '07090002005205', '07090002005237', '07090002005251', '07090002005260', '07090002005263', '07090002005266', '07090002005271', '07090002005276', '07090002005280', '07090002005298', '07090002005299', '07090002005309', '07090002005312', '07090002005314', '07090002005326', '07090002005345', '07090002005366', '07090002005387', '07090002005390', '07090002005393', '07090002005396', '07090002005402', '07090002005403', '07090002005409', '07090002005418', '07090002005425', '07090002005437', '07090002005456', '07090002005462', '07090002005465', '07090002005473', '07090002005495', '07090002005504', '07090002005512', '07090002005513', '07090002005553', '07090002005560', '07090002005576', '07090002005588', '07090002005590', '07090002005601', '07090002005619', '07090002005625', '07090002005648', '07090002005658', '07090002005690', '07090002005693', '07090002005713', '07090002005718', '07090002005733', '07090002005739', '07090002005756', '07090002005760', '07090002005761', '07090002005764', '07090002005794', '07090002005808', '07090002005810', '07090002005812', '07090002005828', '07090002005830', '07090002005831', '07090002005842', '07090002005844', '07090002005863', '07090002005869', '07090002005879', '07090002005907', '07090002005931', '07090002005935', '07090002005945', '07090002005947', '07090002005954', '07090002005975', '07090002005986', '07090002005993', '07090002005996', '07090002005997', '07090002005999', '07090002006000', '07090002006013', '07090002006016', '07090002006017', '07090002006033', '07090002006040', '07090002006042', '07090002006044', '07090002006054', '07090002006055', '07090002006074', '07090002006079', '07090002006085', '07090002006095', '07090002006111', '07090002006114', '07090002006122', '07090002006143', '07090002006160', '07090002006162', '07090002006186', '07090002006187', '07090002006188', '07090002006189', '07090002006190', '07090002006221', '07090002006259', '07090002006282', '07090002006299', '07090002006311', '07090002006312', '07090002006315', '07090002006326', '07090002006354', '07090002006368', '07090002006376', '07090002006410', '07090002006435', '07090002006441', '07090002006442', '07090002006444', '07090002006448', '07090002006454', '07090002006468', '07090002006476', '07090002006484', '07090002006485', '07090002006527', '07090002006538', '07090002006546', '07090002006564', '07090002006584', '07090002006601', '07090002006607', '07090002006614', '07090002006619', '07090002006643', '07090002006647', '07090002006658', '07090002006683', '07090002006725', '07090002006742', '07090002006757', '07090002006759', '07090002006761', '07090002006763', '07090002006769', '07090002006772', '07090002006785', '07090002006793', '07090002006794', '07090002006804', '07090002006822', '07090002006842', '07090002006848', '07090002006852', '07090002006853', '07090002006854', '07090002006869', '07090002006886', '07090002006900', '07090002006902', '07090002006919', '07090002006953', '07090002006962', '07090002006994', '07090002006995', '07090002007008', '07090002007027', '07090002007052', '07090002007069', '07090002007072', '07090002007079', '07090002007081', '07090002007086', '07090002007092', '07090002007110', '07090002007119', '07090002007130', '07090002007152', '07090002007164', '07090002007166', '07090002007173', '07090002007176', '07090002007184', '07090002007187', '07090002007193', '07090004000198', '07090004000199', '07090004000281', '07090004000504', '07090004000865', '07090004000886', '07090004000887', '07090004000890', '07090004000908', '07090004000924', '07090004000926', '07090004000927', '07090004000929', '07090004000934', '07090004001702', '07090002004772', '07090002004826', '07090002004886', '07090002005160', '07090002005254', '07090002005415', '07090002005492', '07090002005813', '07090002005837', '07090002005891', '07090002006248', '07090002006545', '07090002006716', '07090002006728', '07090002006740', '07090002006969', '07090002007058', '07090002007141')jsontrue
#> Warning: No headwater, terminus, divergence, confluence, catchment outlet features found in area of interest.
#> https://hydro.nationalmap.gov/arcgis/rest/services/3DHP_all/MapServer/40/query 
#> universalreferenceid IN ('07070005000218', '07070005000219', '07070005001966', '07090002004516', '07090002004524', '07090002004544', '07090002004546', '07090002004549', '07090002004555', '07090002004568', '07090002004598', '07090002004614', '07090002004623', '07090002004647', '07090002004650', '07090002004654', '07090002004666', '07090002004682', '07090002004684', '07090002004693', '07090002004722', '07090002004727', '07090002004733', '07090002004753', '07090002004766', '07090002004781', '07090002004792', '07090002004800', '07090002004805', '07090002004812', '07090002004813', '07090002004820', '07090002004834', '07090002004849', '07090002004867', '07090002004873', '07090002004885', '07090002004906', '07090002004955', '07090002005006', '07090002005031', '07090002005045', '07090002005047', '07090002005052', '07090002005079', '07090002005088', '07090002005098', '07090002005099', '07090002005113', '07090002005120', '07090002005128', '07090002005136', '07090002005144', '07090002005146', '07090002005170', '07090002005172', '07090002005179', '07090002005185', '07090002005189', '07090002005195', '07090002005205', '07090002005237', '07090002005251', '07090002005260', '07090002005263', '07090002005266', '07090002005271', '07090002005276', '07090002005280', '07090002005298', '07090002005299', '07090002005309', '07090002005312', '07090002005314', '07090002005326', '07090002005345', '07090002005366', '07090002005387', '07090002005390', '07090002005393', '07090002005396', '07090002005402', '07090002005403', '07090002005409', '07090002005418', '07090002005425', '07090002005437', '07090002005456', '07090002005462', '07090002005465', '07090002005473', '07090002005495', '07090002005504', '07090002005512', '07090002005513', '07090002005553', '07090002005560', '07090002005576', '07090002005588', '07090002005590', '07090002005601', '07090002005619', '07090002005625', '07090002005648', '07090002005658', '07090002005690', '07090002005693', '07090002005713', '07090002005718', '07090002005733', '07090002005739', '07090002005756', '07090002005760', '07090002005761', '07090002005764', '07090002005794', '07090002005808', '07090002005810', '07090002005812', '07090002005828', '07090002005830', '07090002005831', '07090002005842', '07090002005844', '07090002005863', '07090002005869', '07090002005879', '07090002005907', '07090002005931', '07090002005935', '07090002005945', '07090002005947', '07090002005954', '07090002005975', '07090002005986', '07090002005993', '07090002005996', '07090002005997', '07090002005999', '07090002006000', '07090002006013', '07090002006016', '07090002006017', '07090002006033', '07090002006040', '07090002006042', '07090002006044', '07090002006054', '07090002006055', '07090002006074', '07090002006079', '07090002006085', '07090002006095', '07090002006111', '07090002006114', '07090002006122', '07090002006143', '07090002006160', '07090002006162', '07090002006186', '07090002006187', '07090002006188', '07090002006189', '07090002006190', '07090002006221', '07090002006259', '07090002006282', '07090002006299', '07090002006311', '07090002006312', '07090002006315', '07090002006326', '07090002006354', '07090002006368', '07090002006376', '07090002006410', '07090002006435', '07090002006441', '07090002006442', '07090002006444', '07090002006448', '07090002006454', '07090002006468', '07090002006476', '07090002006484', '07090002006485', '07090002006527', '07090002006538', '07090002006546', '07090002006564', '07090002006584', '07090002006601', '07090002006607', '07090002006614', '07090002006619', '07090002006643', '07090002006647', '07090002006658', '07090002006683', '07090002006725', '07090002006742', '07090002006757', '07090002006759', '07090002006761', '07090002006763', '07090002006769', '07090002006772', '07090002006785', '07090002006793', '07090002006794', '07090002006804', '07090002006822', '07090002006842', '07090002006848', '07090002006852', '07090002006853', '07090002006854', '07090002006869', '07090002006886', '07090002006900', '07090002006902', '07090002006919', '07090002006953', '07090002006962', '07090002006994', '07090002006995', '07090002007008', '07090002007027', '07090002007052', '07090002007069', '07090002007072', '07090002007079', '07090002007081', '07090002007086', '07090002007092', '07090002007110', '07090002007119', '07090002007130', '07090002007152', '07090002007164', '07090002007166', '07090002007173', '07090002007176', '07090002007184', '07090002007187', '07090002007193', '07090004000198', '07090004000199', '07090004000281', '07090004000504', '07090004000865', '07090004000886', '07090004000887', '07090004000890', '07090004000908', '07090004000924', '07090004000926', '07090004000927', '07090004000929', '07090004000934', '07090004001702', '07090002004772', '07090002004826', '07090002004886', '07090002005160', '07090002005254', '07090002005415', '07090002005492', '07090002005813', '07090002005837', '07090002005891', '07090002006248', '07090002006545', '07090002006716', '07090002006728', '07090002006740', '07090002006969', '07090002007058', '07090002007141')jsontrue
#> Request failed [504]. Retrying in 1 seconds...
#> Request failed [504]. Retrying in 3.3 seconds...
#> Warning: Something went wrong trying to access a service.
#> https://hydro.nationalmap.gov/arcgis/rest/services/3DHP_all/MapServer/40/query 
#> 3c,21,44,4f,43,54,59,50,45,20,48,54,4d,4c,20,50,55,42,4c,49,43,20,22,2d,2f,2f,57,33,43,2f,2f,44,54,44,20,48,54,4d,4c,20,34,2e,30,31,20,54,72,61,6e,73,69,74,69,6f,6e,61,6c,2f,2f,45,4e,22,20,22,68,74,74,70,3a,2f,2f,77,77,77,2e,77,33,2e,6f,72,67,2f,54,52,2f,68,74,6d,6c,34,2f,6c,6f,6f,73,65,2e,64,74,64,22,3e,0a,3c,48,54,4d,4c,3e,3c,48,45,41,44,3e,3c,4d,45,54,41,20,48,54,54,50,2d,45,51,55,49,56,3d,22,43,6f,6e,74,65,6e,74,2d,54,79,70,65,22,20,43,4f,4e,54,45,4e,54,3d,22,74,65,78,74,2f,68,74,6d,6c,3b,20,63,68,61,72,73,65,74,3d,69,73,6f,2d,38,38,35,39,2d,31,22,3e,0a,3c,54,49,54,4c,45,3e,45,52,52,4f,52,3a,20,54,68,65,20,72,65,71,75,65,73,74,20,63,6f,75,6c,64,20,6e,6f,74,20,62,65,20,73,61,74,69,73,66,69,65,64,3c,2f,54,49,54,4c,45,3e,0a,3c,2f,48,45,41,44,3e,3c,42,4f,44,59,3e,0a,3c,48,31,3e,35,30,34,20,47,61,74,65,77,61,79,20,54,69,6d,65,6f,75,74,20,45,52,52,4f,52,3c,2f,48,31,3e,0a,3c,48,32,3e,54,68,65,20,72,65,71,75,65,73,74,20,63,6f,75,6c,64,20,6e,6f,74,20,62,65,20,73,61,74,69,73,66,69,65,64,2e,3c,2f,48,32,3e,0a,3c,48,52,20,6e,6f,73,68,61,64,65,20,73,69,7a,65,3d,22,31,70,78,22,3e,0a,57,65,20,63,61,6e,27,74,20,63,6f,6e,6e,65,63,74,20,74,6f,20,74,68,65,20,73,65,72,76,65,72,20,66,6f,72,20,74,68,69,73,20,61,70,70,20,6f,72,20,77,65,62,73,69,74,65,20,61,74,20,74,68,69,73,20,74,69,6d,65,2e,20,54,68,65,72,65,20,6d,69,67,68,74,20,62,65,20,74,6f,6f,20,6d,75,63,68,20,74,72,61,66,66,69,63,20,6f,72,20,61,20,63,6f,6e,66,69,67,75,72,61,74,69,6f,6e,20,65,72,72,6f,72,2e,20,54,72,79,20,61,67,61,69,6e,20,6c,61,74,65,72,2c,20,6f,72,20,63,6f,6e,74,61,63,74,20,74,68,65,20,61,70,70,20,6f,72,20,77,65,62,73,69,74,65,20,6f,77,6e,65,72,2e,0a,3c,42,52,20,63,6c,65,61,72,3d,22,61,6c,6c,22,3e,0a,49,66,20,79,6f,75,20,70,72,6f,76,69,64,65,20,63,6f,6e,74,65,6e,74,20,74,6f,20,63,75,73,74,6f,6d,65,72,73,20,74,68,72,6f,75,67,68,20,43,6c,6f,75,64,46,72,6f,6e,74,2c,20,79,6f,75,20,63,61,6e,20,66,69,6e,64,20,73,74,65,70,73,20,74,6f,20,74,72,6f,75,62,6c,65,73,68,6f,6f,74,20,61,6e,64,20,68,65,6c,70,20,70,72,65,76,65,6e,74,20,74,68,69,73,20,65,72,72,6f,72,20,62,79,20,72,65,76,69,65,77,69,6e,67,20,74,68,65,20,43,6c,6f,75,64,46,72,6f,6e,74,20,64,6f,63,75,6d,65,6e,74,61,74,69,6f,6e,2e,0a,3c,42,52,20,63,6c,65,61,72,3d,22,61,6c,6c,22,3e,0a,3c,48,52,20,6e,6f,73,68,61,64,65,20,73,69,7a,65,3d,22,31,70,78,22,3e,0a,3c,50,52,45,3e,0a,47,65,6e,65,72,61,74,65,64,20,62,79,20,63,6c,6f,75,64,66,72,6f,6e,74,20,28,43,6c,6f,75,64,46,72,6f,6e,74,29,20,48,54,54,50,33,20,53,65,72,76,65,72,0a,52,65,71,75,65,73,74,20,49,44,3a,20,7a,77,53,51,44,65,30,55,67,50,42,58,6f,73,70,78,6e,31,51,54,59,34,73,67,73,4a,43,4e,70,4b,41,4e,69,57,69,49,4e,61,65,76,51,49,37,74,38,5a,75,4e,79,4c,2d,52,2d,51,26,23,78,33,44,3b,26,23,78,33,44,3b,0a,3c,2f,50,52,45,3e,0a,3c,41,44,44,52,45,53,53,3e,0a,3c,2f,41,44,44,52,45,53,53,3e,0a,3c,2f,42,4f,44,59,3e,3c,2f,48,54,4d,4c,3e*geojson
#> Simple feature collection with 61 features and 9 fields
#> Geometry type: POINT
#> Dimension:     XY
#> Bounding box:  xmin: -69.61165 ymin: 46.32685 xmax: -68.99524 ymax: 46.99294
#> Geodetic CRS:  WGS 84
#> First 10 features:
#>     id3dhp featuredate                                  mainstemid
#> 1  01DU81I 1.69465e+12  https://geoconnex.us/ref/mainstems/2238605
#> 2  01DU81J 1.69465e+12  https://geoconnex.us/ref/mainstems/2238605
#> 3  01DU81K 1.69465e+12 https://geoconnex.us/usgs/mainstems/5434561
#> 4  01DU81L 1.69465e+12  https://geoconnex.us/ref/mainstems/2238605
#> 5  01DU81M 1.69465e+12  https://geoconnex.us/ref/mainstems/2238605
#> 6  01DU81N 1.69465e+12  https://geoconnex.us/ref/mainstems/2238605
#> 7  01DU820 1.69465e+12  https://geoconnex.us/ref/mainstems/2238913
#> 8  01DU821 1.69465e+12  https://geoconnex.us/ref/mainstems/2238913
#> 9  01DU822 1.69465e+12  https://geoconnex.us/ref/mainstems/2238913
#> 10 01DU823 1.69465e+12  https://geoconnex.us/ref/mainstems/2238913
#>    universalreferenceid gnisid               gnisidlabel featuretype
#> 1        01010002000006 561174            Allagash River          10
#> 2        01010002000007 561174            Allagash River          10
#> 3        01010002000015     NA                      <NA>          10
#> 4        01010002000018 561174            Allagash River          10
#> 5        01010002000019 561174            Allagash River          10
#> 6        01010002000020 561174            Allagash River          10
#> 7        01010002000054 563910 Chemquasabamticook Stream          10
#> 8        01010002000055 563910 Chemquasabamticook Stream          10
#> 9        01010002000056 563910 Chemquasabamticook Stream          10
#> 10       01010002000057 563910 Chemquasabamticook Stream          10
#>    featuretypelabel workunitid                   geometry
#> 1   Reachcode Start       <NA> POINT (-69.09696 46.96326)
#> 2   Reachcode Start       <NA> POINT (-69.11075 46.95864)
#> 3   Reachcode Start       <NA> POINT (-69.22688 46.99294)
#> 4   Reachcode Start       <NA> POINT (-69.21538 46.90786)
#> 5   Reachcode Start       <NA>   POINT (-69.245 46.88147)
#> 6   Reachcode Start       <NA> POINT (-69.24729 46.85887)
#> 7   Reachcode Start       <NA> POINT (-69.59641 46.61051)
#> 8   Reachcode Start       <NA> POINT (-69.61165 46.59719)
#> 9   Reachcode Start       <NA> POINT (-69.59991 46.55508)
#> 10  Reachcode Start       <NA> POINT (-69.59932 46.54946)
# }