-
Notifications
You must be signed in to change notification settings - Fork 252
add definitions for the structure of 31 relation presets #1538
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
base: main
Are you sure you want to change the base?
Changes from all commits
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
| Original file line number | Diff line number | Diff line change |
|---|---|---|
|
|
@@ -10,5 +10,69 @@ | |
| "tags": { | ||
| "type": "boundary" | ||
| }, | ||
| "name": "Boundary" | ||
| "name": "Boundary", | ||
| "relation": { | ||
| "id": "boundary", | ||
| "allowDuplicateMembers": false, | ||
| "members": [ | ||
| { | ||
| "role": "inner", | ||
| "roleLabel": "Inner", | ||
| "geometry": [ | ||
| "line", | ||
| "area" | ||
| ] | ||
| }, | ||
| { | ||
| "role": "outer", | ||
| "roleLabel": "Outer", | ||
| "geometry": [ | ||
| "line", | ||
| "area" | ||
| ], | ||
| "min": 1 | ||
| }, | ||
| { | ||
| "role": "label", | ||
| "roleLabel": "Label", | ||
| "geometry": [ | ||
| "point", | ||
| "vertex" | ||
| ], | ||
| "matchTags": [ | ||
| { | ||
| "place": "*" | ||
| } | ||
| ], | ||
| "max": 1 | ||
| }, | ||
| { | ||
| "role": "admin_centre", | ||
| "roleLabel": "Admin Center", | ||
| "geometry": [ | ||
| "point", | ||
| "vertex" | ||
| ], | ||
| "matchTags": [ | ||
| { | ||
| "place": "*" | ||
| } | ||
| ], | ||
| "max": 1 | ||
| }, | ||
| { | ||
| "role": "subarea", | ||
|
Collaborator
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. do we want to promote and support these? IIRC these are fairly bad ideas but I may misremember |
||
| "roleLabel": "Sub-Area", | ||
| "geometry": [ | ||
| "area", | ||
| "relation" | ||
| ], | ||
| "matchTags": [ | ||
| { | ||
| "type": "boundary" | ||
| } | ||
| ] | ||
| } | ||
| ] | ||
| } | ||
| } | ||
| Original file line number | Diff line number | Diff line change |
|---|---|---|
|
|
@@ -15,5 +15,50 @@ | |
| "terms": [ | ||
| "exit sign" | ||
| ], | ||
| "name": "Destination Sign" | ||
| "name": "Destination Sign", | ||
| "relation": { | ||
| "id": "destination_sign", | ||
| "allowDuplicateMembers": true, | ||
| "members": [ | ||
| { | ||
| "role": "from", | ||
| "roleLabel": "From", | ||
| "geometry": [ | ||
| "vertex", | ||
|
Collaborator
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. https://wiki.openstreetmap.org/wiki/Relation:destination_sign claims it may be also a node (in such case can we express that line must be highway= but node may be tagless? )
Collaborator
Author
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. hmm, that's not really possible. I'll just remove |
||
| "line" | ||
| ] | ||
| }, | ||
| { | ||
| "role": "intersection", | ||
| "roleLabel": "Intersection", | ||
| "geometry": [ | ||
| "vertex" | ||
| ], | ||
| "max": 1 | ||
| }, | ||
| { | ||
| "role": "to", | ||
| "roleLabel": "To", | ||
| "geometry": [ | ||
| "vertex", | ||
| "line" | ||
| ], | ||
| "matchTags": [ | ||
| { | ||
| "highway": "*" | ||
| } | ||
| ], | ||
| "min": 1, | ||
| "max": 1 | ||
| }, | ||
| { | ||
| "role": "sign", | ||
| "roleLabel": "Physical Sign", | ||
| "geometry": [ | ||
| "point", | ||
| "vertex" | ||
| ] | ||
| } | ||
| ] | ||
| } | ||
| } | ||
| Original file line number | Diff line number | Diff line change |
|---|---|---|
|
|
@@ -9,5 +9,74 @@ | |
| "tags": { | ||
| "type": "enforcement" | ||
| }, | ||
| "name": "Enforcement" | ||
| "name": "Enforcement", | ||
| "relation": { | ||
| "id": "enforcement", | ||
| "allowDuplicateMembers": false, | ||
| "members": [ | ||
| { | ||
| "role": "device", | ||
| "roleLabel": "Device", | ||
| "matchTags": [ | ||
|
Collaborator
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. hmmmm https://wiki.openstreetmap.org/wiki/Relation:enforcement gives example of red light camera placed on https://wiki.openstreetmap.org/wiki/Relation:enforcement#Example_5:_Distance_between_vehicles even wants to put it on tagless way https://wiki.openstreetmap.org/wiki/Relation:enforcement#Example_7:_Height_check_before_tunnel also reccs tagsless device node
Collaborator
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. https://www.openstreetmap.org/node/3524489413 is it valid? What about https://www.openstreetmap.org/note/5192079 ?
Collaborator
Author
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. i have no idea. I guess we should trust the wiki and remove
Collaborator
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. I guess it depends how this rules should be treated
Because if it is guidance than being a bit prescriptive makes sense, but if violation of this rules should indicate invalidness of relation then they should be more relaxed and more matching what OSM Wiki permits and got used |
||
| { | ||
| "highway": "speed_camera" | ||
| }, | ||
| { | ||
| "man_made": "surveillance" | ||
| }, | ||
| { | ||
| "amenity ": "weighbridge" | ||
| } | ||
| ] | ||
| }, | ||
| { | ||
| "role": "force", | ||
| "roleLabel": "Force", | ||
| "matchTags": [ | ||
| { | ||
| "highway": "speed_camera" | ||
| }, | ||
| { | ||
| "man_made": "surveillance" | ||
| }, | ||
| { | ||
| "amenity ": "weighbridge" | ||
| } | ||
| ] | ||
| }, | ||
| { | ||
| "role": "from", | ||
| "roleLabel": "From", | ||
| "geometry": [ | ||
| "vertex", | ||
| "line" | ||
| ], | ||
| "matchTags": [ | ||
| { | ||
| "highway": "*" | ||
| } | ||
| ] | ||
| }, | ||
| { | ||
| "role": "to", | ||
| "roleLabel": "To", | ||
| "geometry": [ | ||
| "vertex", | ||
| "line" | ||
| ], | ||
| "matchTags": [ | ||
| { | ||
| "highway": "*" | ||
| } | ||
| ] | ||
| }, | ||
| { | ||
| "role": "section", | ||
| "roleLabel": "Section", | ||
| "geometry": [ | ||
| "line" | ||
| ] | ||
| } | ||
| ] | ||
| } | ||
| } | ||
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
it is mostly registering my confusion... But is this
areaentry representing both closed ways with area tags and multipolygons?If yes, would adding this relations structure interfere with applying it to closed ways?
https://github.com/ideditor/schema-builder/pull/174/changes#diff-b335630551682c19a781afebcf4d07bf978fb1f8ac04c6bf87428ed5106870f5 has
For relations,so I guess nonrelations should ignore this structure?There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
yes, it's used by both
no, the code would just ignore this property for ways. Agree that it's a bit weird, but there's no other way to model it