Artifox
February 26, 2019, 9:34pm
#1
Hey all,
Problem: Sometimes I come across features which are “Way” features that have a visible shape. I need them to be “Relation” to work in this tool to obtain their geometry: http://polygons.openstreetmap.fr/index.py
Is there a way to convert these from “Way” to “Relation” or a workaround to obtain the WKT of their shape?
Example:
Way: Nkhotakota Game Reserve (28910776)
Link: https://www.openstreetmap.org/way/28910776
Thanks so much!!
Can you elaborate on the higher-level problem - what do you want to achieve? The question you posed is quite vague.
Artifox
February 26, 2019, 9:55pm
#3
Hey Rico, I updated my original post!
Thanks!
PHerison
(P Herison)
February 27, 2019, 7:44am
#4
A relation-object in OSM is basically a collection of nodes and / or ways which are releated to each other: https://wiki.openstreetmap.org/wiki/Relation
The website you posted will convert a OSM relation from the database into a POLY-File. To create a POLY from a way this website is not suitable. A quick Google-Search didn’t reveal a solution for your problem. Perhaps https://wiki.openstreetmap.org/wiki/Osmosis/Polygon_Filter_File_Format#Converting_to.2Ffrom_POLY_format has something for you.
alester
(alester)
February 27, 2019, 11:22pm
#5
JOSM can save to a .poly file. Create a new layer, download the object so it’s the only thing in that layer, then save it as a .poly.
PHerison
(P Herison)
February 28, 2019, 7:26am
#6
Hmmm… Not in my version. Do use a Plugin for this?
GerdP
(Gerd P)
February 28, 2019, 7:34am
#7
This requires the poly plugin.
alester
(alester)
February 28, 2019, 4:46pm
#8
Whoops, I completely forgot that this functionality is indeed added by the “poly” plugin.