Skip to content
Open
Show file tree
Hide file tree
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
8 changes: 8 additions & 0 deletions data/deprecated.json
Original file line number Diff line number Diff line change
Expand Up @@ -1400,6 +1400,10 @@
"old": {"postcode": "*"},
"replace": {"addr:postcode": "$1"}
},
{
"old": {"power": "branch"},
"replace": {"power": "circuit"}
Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

can it be always replaced this way?

if yes, why not do this as a bot edit rather than going through iD? Also, with 241 uses upgrading existing tagging (if that is useful and worth doing) will take comparable effort to doing PR review of that change https://taginfo.openstreetmap.org/tags/power=branch

Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

the same for other deprecation

note that these comments are not enabling bypassing https://wiki.openstreetmap.org/wiki/Automated_Edits_code_of_conduct

if you do automated edit you must follow these rules

Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

In case of no further activity on this PR it will be closed

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

According to the proposal page:

  • power=branch is to replace by power=circuit and case by case required power=line_section relations
  • type=route + route=power is to replace by type=power + power=circuit

For my part, I don't plan on making any large-scale, automatic changes. I think it’s up to the local communities interested in this topic to take on this issue, and some have already started doing so on their own perimeter. In particular, regarding the power=branch case, they seem to have been introduced mainly as part of an import project I know nothing about, so I certainly won’t be changing anything.

I simply suggest using the existing feature in the iD editor to notify contributors who might edit the object that this is no longer the correct way to label it, and to prevent new contributors from creating new objects with these tags. From what I understand, this is exactly what the feature in iD is meant to do, but if you don't think it's reasonable, I'll remove it.

Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

but if you don't think it's reasonable, I'll remove it.

please, do it

in my view this is effectively doing "large-scale, automatic changes" as at least some users press "update tags" blindly

and if these tags can be mass-transformed then it should be done with bot edit, not some manual distributed one

As disclaimer: yes, in past this deprecation feature was used and intended to be used differently, and I am effectively trying to change it

Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

So sorry for any confusion here - and yes, situation partially changed over say last year.

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

ok, it's done.

},
{
"old": {"power": "busbar"},
"replace": {"power": "line", "line": "busbar"}
Expand Down Expand Up @@ -1932,6 +1936,10 @@
"old": {"type": "oil", "pipeline": "*"},
"replace": {"substance": "oil", "pipeline": "$1"}
},
{
"old": {"type": "route", "route": "power"},
"replace": {"type": "power", "power": "circuit"}
},
{
"old": {"type": "scoria"},
"replace": {"volcano:type": "scoria"}
Expand Down
11 changes: 11 additions & 0 deletions data/fields/topology.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,11 @@
{
Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

please change file name (so also field code) to something like power_line_topology

you can have also other topologies and it will be more clear where context is not obvious

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Isn't that a bit early? The only documented use so far is for power circuits (YAGNI principle)

"key": "topology",
"type": "combo",
"label": "Topology",
"strings": {
"options": {
"linear": "linear",
"branched": "branched"
Comment thread
nlehuby marked this conversation as resolved.
Outdated
}
}
}
24 changes: 24 additions & 0 deletions data/presets/power/circuit.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,24 @@
{
"icon": "iD-power-line",
"fields": [
"name",
"ref",
"operator",
"topology",
"voltage",
"frequency",
"cables"
],
"geometry": [
"relation"
],
"tags": {
"type": "power",
"power": "circuit"
},
"reference": {
"key": "power",
"value": "circuit"
},
"name": "Power Circuit"
}
22 changes: 22 additions & 0 deletions data/presets/power/line_section.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,22 @@
{
"icon": "iD-power-line",
"fields": [
"name",
"ref",
"operator",
"voltage",
"cables"
],
"geometry": [
"relation"
],
"tags": {
"type": "power",
"power": "line_section"
},
"reference": {
"key": "power",
"value": "line_section"
},
"name": "Section of Power Line"
Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

}