How do I extract geometry (wkt, etc) from "Way" features

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.

Hey Rico, I updated my original post!

Thanks!

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.

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.

Hmmm… Not in my version. Do use a Plugin for this?

This requires the poly plugin.

Whoops, I completely forgot that this functionality is indeed added by the “poly” plugin.