[OSM-talk] Bulk Data Import how-to and tips

Juan Lucas Dominguez Rubio jldominguez at prodevelop.es
Thu May 1 15:04:58 BST 2008


Hi, Patrick
 
Maybe there is a better way, but this is what I would do:
 
- get a shapefile of Luxembourg (or a simple polygon shapefile that contains all of Luxembourg). Let's call it lux.shp.
- download the roads for Luxembourg currently in OSM from http://download.geofabrik.de/osm/europe/
 
Now you will need a GIS application:
 
- select the roads tagged as motorway, motorway_link, trunk, trunk_link, primary or primary_link from that shapefile and export them to another shapefile.
- perform a buffer of that shapefile (for example, use 100 meters for the radius)
- perform a difference operation: lux.shp minus the buffer you have just created
- finally, clip the official shapefile of the Luxembourg roads with the result of that substraction and export the resulting shapefile to the OSM format with that python script.
 
And then, you will have to carefully connect those ways with the current ways in OSM, and revise the tags, of course.
 
Lucas

 
________________________________

De: talk-bounces at openstreetmap.org en nombre de Skywave
Enviado el: jue 01/05/2008 14:47
Para: talk at openstreetmap.org
Asunto: [OSM-talk] Bulk Data Import how-to and tips


JOSM can't read shape files, you will have to adapt this script  http://boston.freemap.in/osm/files/mgis_to_osm.py to convert shapefiles to osm.

On Thu, May 1, 2008 at 12:59 PM, Patrick Weber <p.weber at ucl.ac.uk> wrote:


	Hi list
	
	I have been mapping my home country Luxembourg for the past 6 months. I recently have been offered by another OSM user who works at the national road works agency (not shure about the translation but anyway), to get the national road network (all primary highways, trunk and motorways) imported into OSM. Apparently they are okay with it. Great News!
	
	Now I am trying to figure out how this will work in practice, as we are not importing into a blank canvas, but a sizable bit of the road network has been done already. How can we merge the two datasets, and keep the best bits of both?
	
	Also, whats the best procedure for the conversion. I suspect we will get the data as shapefiles. Can JOSM read shapefiles?
	
	Thanks for helping us.
	
	_______________________________________________
	talk mailing list
	talk at openstreetmap.org
	http://lists.openstreetmap.org/cgi-bin/mailman/listinfo/talk
	
	


-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.openstreetmap.org/pipermail/talk/attachments/20080501/5dac8604/attachment.html>


More information about the talk mailing list