USGS-WiM / NavigationServices

Network navigation REST web services used for NHDplus V2 network navigation
https://streamstats.usgs.gov/navigationservices
Other
0 stars 0 forks source link

Network path needs snapped to flow lines, to make path more direct #9

Open jknewson opened 6 years ago

jknewson commented 6 years ago

image

Start point location (Required) Latitude: 39.13290648766465 Longitude: -77.26804733276367

End point location (Required) Latitude: 39.12679773734895 Longitude: -77.29656457901001 image

tgross-usgs commented 2 years ago

The new NLDI raindrop trace endpoint (https://labs.waterdata.usgs.gov/api/nldi/pygeoapi/processes/nldi-flowtrace/execution) needs to be incorporated into these services. The NLDI service response provides the overland trace geometry and the cropped flowline of the COMID the overland trace is snapped to, along with intersection lat/long. We can add the overland trace to the list of reaches and swap the geometry of the first reach to use that of the new service call. When adding VAA properties to the first (swapped) reach, we need to be sure to recalculate length and be sure that all attributes still apply to the cropped portion of the new flowline.