Opened 5 years ago
Last modified 5 years ago
#18854 new enhancement
Validation for stream and river direction
Reported by: | Geimas5 | Owned by: | team |
---|---|---|---|
Priority: | normal | Milestone: | |
Component: | Core validator | Version: | tested |
Keywords: | mapcss waterway stream river direction | Cc: |
Description
Because of an ongoing import of N50 data, we have in Norway a huge amount of lakes and ponds with the elevation specified. Because of this, it would be very useful to have a validation in JOSM for the direction of streams and rivers based on this elevation information.
This can, of course be made very complicated to cover every case, but even a simple validation of the cases:
- (ele:200)<----(ele:100)
- (ele:200)<----(node)<---(ele:100)
- <----(node)---->(node)<----
Would help a lot.
From experience, it would avoid a lot of false positives if 1-2 meters of "wrong direction" was allowed.
This means that while:
- (ele:200)<----(ele:100)
would result in an error:
- (ele:101)<----(ele:100)
would not.
It would also be natural to assume natural=coastline was at ele:0.
Attachments (2)
Change History (9)
comment:1 by , 5 years ago
Component: | Core → Core validator |
---|---|
Keywords: | mapcss added |
follow-up: 3 comment:2 by , 5 years ago
The nodes do have the ele tagged? Please link an example from the osm database or attach a sample osm file.
comment:3 by , 5 years ago
Replying to Klumbumbus:
The nodes do have the ele tagged? Please link an example from the osm database or attach a sample osm file.
No, the nodes do not have an ele tag. Its just very common for the streams to be split into multiple connected ways.
by , 5 years ago
Attachment: | exampleTwoWaysConnected_withError.osm added |
---|
Two connected ways, with error
comment:5 by , 5 years ago
Replying to Klumbumbus:
I can't find an error in that example file.
Sorry, I created it as an example of a stream with two parts. I have attached one where the streams are in the wrong direction.
comment:6 by , 5 years ago
comment:7 by , 5 years ago
Keywords: | waterway stream river direction added |
---|
It might already be possible to do using Help/Validator/MapCSSTagChecker. Maybe we'd need a sibling selector `~`?