Previously the run endpoint would take a list of MultiLine strings, and the multi endpoint would take a single MultiLine string. Given the way we collected the lines from the base NHD dataset, this was fine, as there was a single MultiLine string at the end of collection.
This new style worked with the run endpoint, which is used for analysis, but not with the multi endpoint, which is used for modeling. To enable modeling of high resolution streams, we now change the multi endpoint to also take a list of MultiLine strings.
Overview
Previously the
run
endpoint would take a list of MultiLine strings, and themulti
endpoint would take a single MultiLine string. Given the way we collected the lines from the base NHD dataset, this was fine, as there was a single MultiLine string at the end of collection.However, this was changed to incorporate the high resolution streams in https://github.com/WikiWatershed/model-my-watershed/pull/3428, specifically in https://github.com/WikiWatershed/model-my-watershed/commit/4f48577790b5d382ad902733ad19ce05424b536c. This was necessary because the high resolution dataset is composed of MultiLines, and collects into a GeometryCollection rather than a MultiLine.
This new style worked with the
run
endpoint, which is used for analysis, but not with themulti
endpoint, which is used for modeling. To enable modeling of high resolution streams, we now change themulti
endpoint to also take a list of MultiLine strings.Connects https://github.com/WikiWatershed/model-my-watershed/issues/3429
Notes
This is a breaking change to the API, will need a major version bump.
The request examples were generated by
json.dumps(data, indent=4)
right before this line. The response examples were generated by:Testing Instructions
update
andserver
git status
to check)