[Imports] Propoasl: Uganda Import

Saikrishna Arcot saiarcot895 at gmail.com
Mon Jan 20 17:06:13 UTC 2014

Note that some of the districts in this OSM file are just regular ways 
and not relations. My grep skills aren't great, but I estimate that 
there are 112 districts in there (which matches with your number) and 
11 regions. I'm not an expert on administrative boundaries, but I think 
they need to be relations, so those will need to be converted somehow 
(either automated or manual).

Also, ogr2osm allows you to control what goes into the final OSM file 
(and possibly the name casing if you can code it in Python, which will 
probably need to be corrected), so that you have less work to do 
afterwards (and you have a slightly smaller OSM file). See the sample 
files in the translations directory on how to do this (I suggest 
starting with surreyroad.py and databc_ta_municip.py).

Saikrishna Arcot

On Mon 20 Jan 2014 11:09:42 AM EST, Ketty Adoch wrote:
> Hi all,
> As far as administrative boundary data is concerned in OpenStreetMap,
> only the Uganda national boundaries exist- we'd like to import two
> datasets to OSM:
> - sub-region administrative boundaries
> - district administrative boundaries
> Here is the proposal[1], so far we've one issue we'd need help on,
> (data transformation) plus overall review of the proposal.
> -We have merged two shape files(region[2] and district[3]) from the
> Humanitarian Relief website using QGIS,marginally simplified it by
> reducing the shape file to 3 keys(district, id, region)  and used
> ogr2osm[4] to make a .osm file[5].
> However the .osm file has only 7 relations instead of all the 112
> district relations.
> Pointers on a good approach for this are highly appreciated.
> best regards,
> Ketty Adoch
> GIS/Mapping
> Mobile: +256-712-200-738 <tel:%2B256-712-200-738>
> www.mappingday.com <http://www.mappingday.com>
> twitter:@kadoch| @mapuganda
> Links:
> ------
> [1]  https://wiki.openstreetmap.org/wiki/User:Uganda_Import#
> [2]
> https://cod.humanitarianresponse.info/dataset/uganda-admin-level-2-boundaries
> [3]
> https://cod.humanitarianresponse.info/dataset/uganda-admin-level-3-boundaries
> [4]
> https://wiki.openstreetmap.org/wiki/Ogr2osm#pnorman.27s_updated_version|PNorman
> <https://wiki.openstreetmap.org/wiki/Ogr2osm#pnorman.27s_updated_version%7CPNorman>
> [5]
> https://github.com/kettyadoch/Uganda-Import/blob/master/districtReSimRenamed.osm?raw=true
> _______________________________________________
> Imports mailing list
> Imports at openstreetmap.org
> https://lists.openstreetmap.org/listinfo/imports

More information about the Imports mailing list