2012/11/26 A.Pirard.Papou <a.pirard.pa...@gmail.com> > On 2012-11-26 16:55, Ben Laenen wrote : > > Also, why the "BE" prefix, these roads are in Belgium, no need to > duplicate that information on all the roads. > > > I'm much interested in this remark. > For writing POI files, one must determine in which municipality (polygonal > relation) a street (way) is. > How can it be done? >
To keep tabs on what municipality a street belongs to, you can use the associatedStreet relation: The road connecting Leuven to Tienen, starts out on the border of 2 'deelgemeentes': To the north of it the houses are in Kessel-Lo (3010): http://www.openstreetmap.org/browse/relation/1490437 To the south, near to Leuven the houses are in Heverlee (3001): http://www.openstreetmap.org/browse/relation/2599890 A bit further, still to the south the houses were previously in Korbeek-Lo, but since the fusioning they are now in Leuven (3000): http://www.openstreetmap.org/browse/relation/2599889 Further to the east, the houses are in the part of Korbeek-Lo, which is now part of Bierbeek (3360): http://www.openstreetmap.org/browse/relation/1518513 Still further, they are in Lovenjoel, also part of Bierbeek (3360): http://www.openstreetmap.org/browse/relation/2599620 So every time the postcode or the name of the (deel)gemeente changes a new associatedStreet relation is started to gather those streets and the houses/address nodes belonging to them together. Some streets belong to more than 1 associatedStreet relation. Houses with 2 addresses or a border passing through them can also belong ot more than 1 associatedStreet relation, but that should be exceptional. When all your associatedStreet relations are complete, you can search for them in JOSM or with the Overpass API, using either the postcode or the name of the (deel)gemeentes you're interested in. You can draw the polygon you want based on that. Jo
_______________________________________________ Talk-be mailing list Talk-be@openstreetmap.org http://lists.openstreetmap.org/listinfo/talk-be