This is a static archive of our old OpenStreetMap Help Site. Please post any new questions and answers at community.osm.org.

How to add ward info in osm buildings

0

i have buildings data from osm and ward boundaries. i need to find which building lies in which ward and add that information in the building data.

INPUT:

way id='242474181' action='modify' timestamp='2013-10-17T11:42:37Z' uid='1700096' user='GautamPratik' visible='true' version='1' changeset='18401787'
    nd ref='2499343546' 
    nd ref='2499343543' 
    nd ref='2499343539' 
    nd ref='2499343541' 
    tag k='building' v='yes' 
</way>

OUTPUT:

way id='242474181' action='modify' timestamp='2013-10-17T11:42:37Z' uid='1700096' user='GautamPratik' visible='true' version='1' changeset='18401787'
    nd ref='2499343546' 
    nd ref='2499343543' 
    nd ref='2499343539' 
    nd ref='2499343541' 
    tag k='building' v='yes' 
    tag k='district' v='kathmandu' 
    tag k='vdc' v='kathmandu metropolitan city' 
    tag k='ward' v='4' 
  </way>

asked 26 Oct '13, 03:14

amritkarma's gravatar image

amritkarma
684212941
accept rate: 11%

Where do you want to add this information? In the main database or your local copy? And why do you want to add this information to each building instead of creating one single area for every ward and attach all shared information to this area?

(26 Oct '13, 20:55) scai ♦

Source code available on GitHub .