<div dir="ltr"><div><div>Thank you all,<br><br>Saikrisha, thanks for the pointers. I looked in the translations folder, according to my merged shape file(see attachment) which has three keys(region, id and district), are you suggesting a python script that maps the keys in the merged shape file to the proposed osm tagging(district
-> place=city, name=*, boundary=administrative, admin_level=*
and region -> name=*, Wikepedia=
). The "id" key will be ignored since it's not relevant. We'd like to know if we are on the same page here. <br><br></div>Jo, would definitely appreciate your input on the scripting for this. <br><br>Satoshi, please find attached a copy of the merged shape file.<br>
<br></div><div><div>regards,<br><br></div><div>Ketty.<br></div><div><br></div><div><br></div></div></div><div class="gmail_extra"><br clear="all"><div><div dir="ltr"><div><div><div><div>Ketty Adoch<br></div></div></div>Mobile: +256-712-200-738<br>
</div><div>Tweet @kadoch | Skype adockatie<br></div><br></div></div>
<br><br><div class="gmail_quote">On Tue, Jan 21, 2014 at 4:49 AM, Satoshi IIDA <span dir="ltr"><<a href="mailto:nyampire@gmail.com" target="_blank">nyampire@gmail.com</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">
<div dir="ltr"><div><div><div><div><br></div>Hi Ketty,<br><br></div>As <span name="Saikrishna Arcot">Saikrishna mentioned, it need conversion to relation (manually or automatically).<br></span></div><span name="Saikrishna Arcot">I prefer manually. <br>
<br></span></div><span name="Saikrishna Arcot">ogr2osm translation file is like following.<br></span><a href="https://gist.github.com/nyampire/d16c7f4f03834790be83" target="_blank">https://gist.github.com/nyampire/d16c7f4f03834790be83</a><br>
<br><div>And is there any chance to get your "merged" shapefiles?<br></div><div><div><div><span name="Saikrishna Arcot"><br><br></span></div></div></div></div><div class="gmail_extra"><div><div class="h5"><br><br>
<div class="gmail_quote">
2014/1/21 Saikrishna Arcot <span dir="ltr"><<a href="mailto:saiarcot895@gmail.com" target="_blank">saiarcot895@gmail.com</a>></span><br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">
Note that some of the districts in this OSM file are just regular ways<br>
and not relations. My grep skills aren't great, but I estimate that<br>
there are 112 districts in there (which matches with your number) and<br>
11 regions. I'm not an expert on administrative boundaries, but I think<br>
they need to be relations, so those will need to be converted somehow<br>
(either automated or manual).<br>
<br>
Also, ogr2osm allows you to control what goes into the final OSM file<br>
(and possibly the name casing if you can code it in Python, which will<br>
probably need to be corrected), so that you have less work to do<br>
afterwards (and you have a slightly smaller OSM file). See the sample<br>
files in the translations directory on how to do this (I suggest<br>
starting with surreyroad.py and databc_ta_municip.py).<br>
<br>
Saikrishna Arcot<br>
<div><br>
On Mon 20 Jan 2014 11:09:42 AM EST, Ketty Adoch wrote:<br>
> Hi all,<br>
><br>
> As far as administrative boundary data is concerned in OpenStreetMap,<br>
> only the Uganda national boundaries exist- we'd like to import two<br>
> datasets to OSM:<br>
><br>
> - sub-region administrative boundaries<br>
> - district administrative boundaries<br>
><br>
> Here is the proposal[1], so far we've one issue we'd need help on,<br>
> (data transformation) plus overall review of the proposal.<br>
><br>
> -We have merged two shape files(region[2] and district[3]) from the<br>
> Humanitarian Relief website using QGIS,marginally simplified it by<br>
> reducing the shape file to 3 keys(district, id, region) and used<br>
> ogr2osm[4] to make a .osm file[5].<br>
><br>
> However the .osm file has only 7 relations instead of all the 112<br>
> district relations.<br>
> Pointers on a good approach for this are highly appreciated.<br>
><br>
> best regards,<br>
><br>
> Ketty Adoch<br>
> GIS/Mapping<br>
</div>> Mobile: <a href="tel:%2B256-712-200-738" value="+256712200738" target="_blank">+256-712-200-738</a> <tel:%2B256-712-200-738><br>
> <a href="http://www.mappingday.com" target="_blank">www.mappingday.com</a> <<a href="http://www.mappingday.com" target="_blank">http://www.mappingday.com</a>><br>
<div>> twitter:@kadoch| @mapuganda<br>
><br>
> Links:<br>
> ------<br>
> [1] <a href="https://wiki.openstreetmap.org/wiki/User:Uganda_Import#" target="_blank">https://wiki.openstreetmap.org/wiki/User:Uganda_Import#</a><br>
> [2]<br>
> <a href="https://cod.humanitarianresponse.info/dataset/uganda-admin-level-2-boundaries" target="_blank">https://cod.humanitarianresponse.info/dataset/uganda-admin-level-2-boundaries</a><br>
> [3]<br>
> <a href="https://cod.humanitarianresponse.info/dataset/uganda-admin-level-3-boundaries" target="_blank">https://cod.humanitarianresponse.info/dataset/uganda-admin-level-3-boundaries</a><br>
> [4]<br>
> <a href="https://wiki.openstreetmap.org/wiki/Ogr2osm#pnorman.27s_updated_version%7CPNorman" target="_blank">https://wiki.openstreetmap.org/wiki/Ogr2osm#pnorman.27s_updated_version|PNorman</a><br>
</div>> <<a href="https://wiki.openstreetmap.org/wiki/Ogr2osm#pnorman.27s_updated_version%7CPNorman" target="_blank">https://wiki.openstreetmap.org/wiki/Ogr2osm#pnorman.27s_updated_version%7CPNorman</a>><br>
> [5]<br>
> <a href="https://github.com/kettyadoch/Uganda-Import/blob/master/districtReSimRenamed.osm?raw=true" target="_blank">https://github.com/kettyadoch/Uganda-Import/blob/master/districtReSimRenamed.osm?raw=true</a><br>
><br>
><br>
><br>
> _______________________________________________<br>
> Imports mailing list<br>
> <a href="mailto:Imports@openstreetmap.org" target="_blank">Imports@openstreetmap.org</a><br>
> <a href="https://lists.openstreetmap.org/listinfo/imports" target="_blank">https://lists.openstreetmap.org/listinfo/imports</a><br>
<br>
_______________________________________________<br>
Imports mailing list<br>
<a href="mailto:Imports@openstreetmap.org" target="_blank">Imports@openstreetmap.org</a><br>
<a href="https://lists.openstreetmap.org/listinfo/imports" target="_blank">https://lists.openstreetmap.org/listinfo/imports</a><br>
</blockquote></div><br><br clear="all"><br></div></div><span class="HOEnZb"><font color="#888888">-- <br>Satoshi IIDA<br>mail: <a href="mailto:nyampire@gmail.com" target="_blank">nyampire@gmail.com</a><br>twitter: @nyampire
</font></span></div>
</blockquote></div><br></div>