[OSM-dev] Area support (was: 0.6 API Status)
Jochen Topf
jochen at remote.org
Wed Jul 9 11:53:37 BST 2008
On Wed, Jul 09, 2008 at 12:21:22PM +0200, Frederik Ramm wrote:
> One possible XML representation would be to say that the node groups are
> numbered, with the outer always carrying the number 0:
>
> <area id="1234" />
> <tag k="landuse" v="industrial" />
> <nodegroup id="1234-0">
> <nd ref="1" />
> <nd ref="2" />
> <nd ref="3" />
> </nodegroup>
> <nodegroup id="1234-1">
> <nd ref="4" />
> <nd ref="5" />
> <nd ref="6" />
> </nodegroup>
> ...
> </area>
No need for ids or ordering.
<area id="1234">
<tag k="landuse" v="industrial" />
<outer>
<nd ref="1"/>
<nd ref="2"/>
<nd ref="3"/>
</outer>
<inner>
<nd ref="4"/>
<nd ref="5"/>
<nd ref="6"/>
</inner>
<inner>
<nd ref="7"/>
<nd ref="8"/>
<nd ref="9"/>
</inner>
</area>
Jochen
--
Jochen Topf jochen at remote.org http://www.remote.org/jochen/ +49-721-388298
More information about the dev
mailing list