Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Validator: Warning on power=line and location=underground #6206

Closed
famo opened this issue Apr 19, 2019 · 12 comments
Closed

Validator: Warning on power=line and location=underground #6206

famo opened this issue Apr 19, 2019 · 12 comments
Assignees
Labels
validation An issue with the validation or Q/A code
Milestone

Comments

@famo
Copy link

famo commented Apr 19, 2019

Judging from gravitystorm/openstreetmap-carto#3746 I think it would be useful to display a warning for tags with power=line; location=underground
Quote from the wiki https://wiki.openstreetmap.org/wiki/Tag:power=line?uselang=en-US:

A power=line is carried on power=towers, but may be supported by poles, especially on lines in the subtransmission grid, that connects the main grids with the distribution grid. ...

and

Use power=cable with location=underground for underground or underwater power cables. ...

@quincylvania quincylvania added the validation An issue with the validation or Q/A code label Apr 19, 2019
@tordans
Copy link
Collaborator

tordans commented Apr 19, 2019

It looks like, this does not happen often (it seems it does not even make the taginfo threshold). But the way I understood quincylvania in Slack is, that the count of errors is not the driving force to add is as validation. So this is just FYI.

Bildschirmfoto 2019-04-20 um 00 21 43

https://taginfo.openstreetmap.org/tags/location=underground#combinations

@BjornRasmussen
Copy link
Contributor

There are only 164 instances of this error: https://overpass-turbo.eu/s/I7f
The impact is very low, so I don't think we should slow down iD any more without very good reason to.

@famo
Copy link
Author

famo commented Apr 20, 2019

I agree and rest this case / issue :-)

@famo famo closed this as completed Apr 20, 2019
@quincylvania
Copy link
Collaborator

@famo Interesting idea! I don't think we'd want a dedicated top-level validation rule for this, but I'm thinking more that we should have a validation rule that consumes a JSON file defining incompatible tag combinations. This could be one of those.

@BjornRasmussen said:

The impact is very low, so I don't think we should slow down iD any more without very good reason to.

The work that @bhousel is doing in #6140 will make iD's validation considerably more performant, so this isn't a long-term concern! I'll admit that bottlenecks up until now have prevented us from adding more costly geometry validations like #5869 😕

@bhousel bhousel reopened this Apr 21, 2019
@bhousel
Copy link
Member

bhousel commented Apr 21, 2019

Yes - I think we can add a rule for this one to deprecated.json and it shouldn't affect the performance at all..

@BjornRasmussen
Copy link
Contributor

Nice! I would love more validation in iD, but really don't want it to become super slow.

@quincylvania quincylvania self-assigned this Apr 25, 2019
@quincylvania quincylvania added this to the 2.15.0 milestone Apr 25, 2019
@flacombe
Copy link

flacombe commented Apr 26, 2019

Hi

Wiki Data Items could solve this problem with P44 property : incompatible with.
https://wiki.openstreetmap.org/wiki/Data_items

power=line and location=underground is a compatibility matter and doesn't deal with deprecation, it never has been encouraged.
I've created location=underground page which will enable corresponding data item to make power=line incompatible with it shortly.

@bhousel is this possible to avoid a deprecated.json file and directly take validation rules with wiki data items?

@bhousel
Copy link
Member

bhousel commented Apr 26, 2019

@bhousel is this possible to avoid a deprecated.json file and directly take validation rules with wiki data items?

Sorry, but I'm really not interested in adding anything wiki as a critical dependency on how iD works.

@flacombe
Copy link

Nevertheless the issue here doesn't regard deprecation but incompatibility. This doesn't make any deprecated.json legit

@quincylvania
Copy link
Collaborator

@flacombe You're right that this isn't strictly deprecation, but it doesn't make much difference from the user's perspective. Despite its name, deprecated.json contains many fringe tags that were never widespread and thus never "deprecated". The overall idea is to help users apply standard tagging to existing features.

@flacombe
Copy link

Thanks @quincylvania

Then I don't get why iD should get a different list than JOSM or any other editor (assumed according @bhousel comment).
Maintaining such common things on different platforms is time consuming and error prone.

@quincylvania
Copy link
Collaborator

Then I don't get why iD should get a different list than JOSM or any other editor

@flacombe We maintain tagging data that we thinks best suits the needs of iD. This is the same logic as iD having its own presets, which it has for years now. Other projects are free to use our data if they want.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
validation An issue with the validation or Q/A code
Projects
None yet
Development

No branches or pull requests

6 participants