findNLDI shouldn't return flowlines if other `find` source is specified. #546
Comments
|
So I played with this a bit and adding "flowline" to library(dataRetrieval)
summary(findNLDI(comid = 101, nav = "UT", find = "nwis"))
#> Length Class Mode
#> origin 4 sf list
#> UT 2 sf list
#> UT_nwissite 6 sf list
summary(findNLDI(comid = 101, nav = "UT", find = "nwis", returnFlowlines = FALSE))
#> Length Class Mode
#> origin 4 sf list
#> UT_nwissite 6 sf listHopefully this will be a frictionless way to meet the nhdplusTools needs? And you are right! Requests are much speedier without dragging those geometries around. I can tidy this up if everyone is happy, Mike Created on 2020-12-07 by the reprex package (v0.3.0) |
|
I guess I don't see the issue of having the default be "flowline". If someone wants to modify the default they can -- c("flowline", "nwissite") isn't very hard if you actually want both. Am I missing something? |
|
Two main things. One practical, one conceptual:
Just my thoughts :) I see pros/cons to each so am happy to go either way. |
|
On 1, If On 2, it's fine conceptually, the flowlines don't define the network topology, they are just a representation of it (they are features, albeit linear features along the network the same as any other). So |
Currently, findNLDI will return flowlines when just nwissite is requested. It should require a user to ask for flowlines explicitly. I talked to @mikejohnson51 and he will fix this soon.
devtools::check()produces no errors, warnings, or notescovr::package_coverage()has not significantly decreasedFeel free to create independent issues for each of these subtasks.
This task should not be considered completed until all of the above boxes are checked, or a reasonable argument is made for ignoring a section (ie...not appropriate for top-level README overview).
The text was updated successfully, but these errors were encountered: