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

Consistently visualising relations #293

Closed
bjohas opened this issue May 4, 2017 · 8 comments

Comments

@bjohas
Copy link

commented May 4, 2017

I'm not sure this is a bug or whether it just needs documentation. The issue is that it's not clear to me when relation popups are available and when they are not. I suspect it may be to do with whether ways fully overlap with the relation? It would be good if there was a consistent way of creating clickable icons for the relationship.

Example here:
https://wiki.openstreetmap.org/wiki/Talk:Overpass_turbo#Visualise_tags_attached_to_relation

@bjohas

This comment has been minimized.

Copy link
Author

commented May 4, 2017

Right, funny how you find the solutions moments after filing a request. I guess "out center" would be the solution to this? I would be good to have more documentation on it here https://wiki.openstreetmap.org/wiki/Overpass_API/Language_Guide#Geometry_attributes.

However, the above example at https://wiki.openstreetmap.org/wiki/Talk:Overpass_turbo#Visualise_tags_attached_to_relation is still not clear to me, and a tip would be appreciated!

@mmd-osm

This comment has been minimized.

Copy link
Contributor

commented May 5, 2017

I would be good to have more documentation on it here https://wiki.openstreetmap.org/wiki/Overpass_API/Language_Guide#Geometry_attributes.

Did you maybe not notice the info box at the top of that page? "This wiki page doesn't cover some of the more recent Overpass API features. For a comprehensive list of features, please refer to the Overpass QL wiki page.". Both pages seem to have quite some overlap. If in doubt, always refer to the Overpass QL page instead. In any case, the overpass-turbo bug tracker is probably not the right place to report this kind of issue.

@bjohas

This comment has been minimized.

Copy link
Author

commented May 5, 2017

Suite, thanks. I've not seen out geom described. What does it do?

The original comment was about visualising relations. Do you have a view on this? It seems that sometimes relations are hidden by other elements. Might be worth an enhancement of some kind?

@mmd-osm

This comment has been minimized.

Copy link
Contributor

commented May 5, 2017

I've not seen out geom described. What does it do?

Quoting from: https://wiki.openstreetmap.org/wiki/Overpass_API/Overpass_QL#Print_.28out.29:

geom: Add the full geometry to each object. This adds coordinates to each node, to each node member of a way or relation, and it adds a sequence of "nd" members with coordinates to all relations.

@bjohas

This comment has been minimized.

Copy link
Author

commented May 5, 2017

Ah ok, thanks! I'd been searching the pages for "out geom" and so didn't see this. I've added notes to the wiki now.

Do you have a view on why the two examples provided here https://wiki.openstreetmap.org/wiki/Talk:Overpass_turbo#Visualise_tags_attached_to_relation provide different results?

@mmd-osm

This comment has been minimized.

Copy link
Contributor

commented May 5, 2017

Do you have a view on why the two examples provided here https://wiki.openstreetmap.org/wiki/Talk:Overpass_turbo#Visualise_tags_attached_to_relation provide different results?

Sorry, really no idea what you mean by that. What is a "clickable relation" to start with? Screenshots would be good. I suspect that you see the relation in one case being rendered as polygon and in the other case as linestring?

@tyrasd tyrasd added the question label May 5, 2017

@tyrasd

This comment has been minimized.

Copy link
Owner

commented May 5, 2017

Do you have a view on why the two examples provided here https://wiki.openstreetmap.org/wiki/Talk:Overpass_turbo#Visualise_tags_attached_to_relation provide different results?

This is basically by design. osmtogeojson handles the conversion of the data returned by overpass to GeoJSON, and it currently only supports multipolygon relations (and soon route relations, see tyrasd/osmtogeojson#1), but not (yet) the site relations from your second example. If it doesn't know anything about a certain relation type, it falls back to render the relation's members individually and adds the relation membership as a property to the respective features.

out bb / center is different, since then the relation members are not actually part of the result anymore and therefore osmtogeojson can only create a geometry for the whole relation.

@bjohas

This comment has been minimized.

Copy link
Author

commented May 5, 2017

Thanks for the answer - that's really helpful! I'll copy the answer to the wiki.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
3 participants
You can’t perform that action at this time.