openearth/hydro-engine

--get-rivers issue

ctenvelden opened this issue · 3 comments

--get-rivers werkt niet voor Krishna basin in India --> het niet opgeven van een river shp geeft error.

settings.json:

{
"type": "FeatureCollection",
"features": [
{
"type": "Feature",
"properties": {},
"geometry": {
"type": "Point",
"coordinates": [
80.89190,
15.98302
]
}
}
]
}

(Extra info: het in de modelbuilder handmatig opgeven van river shp van Natural Earth Data geeft vreemde ldd, handmatig opgeven van Hydrosheds river shp geeft goede ldd.)

gena commented

... this is quite large catchment :), testing ...

image

gena commented

Strange, somehow basin ids appear to be negative in the overlapping branche, maybe some overflow error:
image

gena commented

Seems to work, here are two exports:

All branches (thin lines):
hydroengine region.json --get-rivers rivers_all.json --filter-upstream-gt 0

Branches with threshold > 1000 (thick lines)
hydroengine region.json --get-rivers rivers_all.json --filter-upstream-gt 1000

image