I want to know how to write code for polygon in OSM XML, I have tried to find it on internet but have not found something useful. SO Please let me know or give me some example of OSM XML Polygon Code. |
Here's the simplest possible polygon, a triangle:
A polygon is just a way where first and last nodes are the same, and where the tags indicate that it is an area. (The same structure with a tag of More complex polygons - those with holes or where the outline is made up of several ways - are modeled using the multipolygon relations which is a bit of a misnomer since it is also used for polygons that are not "multi". |
Usually you can click on any polygon in the map of www.openstreetmap.org while selecting the view data layer. From there it is possible to select a polygon and from the details page you can view the XML. |
What exactly are you trying to do? There are a lot of things you can do with polygons.
I just need a little example of polygon code to view it.