<HTML dir=ltr><HEAD>
<META http-equiv=Content-Type content="text/html; charset=unicode">
<META content="MSHTML 6.00.2900.3314" name=GENERATOR></HEAD>
<BODY>
<DIV id=idOWAReplyText27273 dir=ltr>
<DIV dir=ltr><FONT face="Times New Roman" color=#000000 size=3>Hi, Patrick</FONT></DIV>
<DIV dir=ltr> </DIV>
<DIV dir=ltr>Maybe there is a better way, but this is what I would do:</DIV>
<DIV dir=ltr> </DIV>
<DIV dir=ltr>- get a shapefile of Luxembourg (or a simple polygon shapefile that contains all of Luxembourg). Let's call it lux.shp.</DIV>
<DIV dir=ltr>- download the roads for Luxembourg currently in OSM from <A href="http://download.geofabrik.de/osm/europe/">http://download.geofabrik.de/osm/europe/</A></DIV>
<DIV dir=ltr> </DIV>
<DIV dir=ltr>Now you will need a GIS application:</DIV>
<DIV dir=ltr> </DIV>
<DIV dir=ltr>- select the roads tagged as motorway, motorway_link, trunk, trunk_link, primary or primary_link from that shapefile and export them to another shapefile.</DIV>
<DIV dir=ltr>- perform a buffer of that shapefile (for example, use 100 meters for the radius)</DIV>
<DIV dir=ltr>- perform a difference operation: lux.shp minus the buffer you have just created</DIV>
<DIV dir=ltr>- 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.</DIV>
<DIV dir=ltr> </DIV>
<DIV dir=ltr>And then, you will have to carefully connect those ways with the current ways in OSM, and revise the tags, of course.</DIV>
<DIV dir=ltr> </DIV>
<DIV dir=ltr>Lucas</DIV>
<DIV dir=ltr><BR> </DIV>
<DIV dir=ltr>
<HR tabIndex=-1>
</DIV>
<DIV dir=ltr><FONT face=Tahoma size=2><B>De:</B> talk-bounces@openstreetmap.org en nombre de Skywave<BR><B>Enviado el:</B> jue 01/05/2008 14:47<BR><B>Para:</B> talk@openstreetmap.org<BR><B>Asunto:</B> [OSM-talk] Bulk Data Import how-to and tips<BR></FONT><BR></DIV></DIV>
<DIV>JOSM can't read shape files, you will have to adapt this script  <A href="http://boston.freemap.in/osm/files/mgis_to_osm.py">http://boston.freemap.in/osm/files/mgis_to_osm.py</A> to convert shapefiles to osm.<BR>
<DIV class=gmail_quote>On Thu, May 1, 2008 at 12:59 PM, Patrick Weber <<A href="mailto:p.weber@ucl.ac.uk">p.weber@ucl.ac.uk</A>> wrote:<BR>
<BLOCKQUOTE class=gmail_quote style="PADDING-LEFT: 1ex; MARGIN: 0pt 0pt 0pt 0.8ex; BORDER-LEFT: rgb(204,204,204) 1px solid">Hi list<BR><BR>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!<BR><BR>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?<BR><BR>Also, whats the best procedure for the conversion. I suspect we will get the data as shapefiles. Can JOSM read shapefiles?<BR><BR>Thanks for helping us.<BR><BR>_______________________________________________<BR>talk mailing list<BR><A href="mailto:talk@openstreetmap.org">talk@openstreetmap.org</A><BR><A href="http://lists.openstreetmap.org/cgi-bin/mailman/listinfo/talk" target=_blank>http://lists.openstreetmap.org/cgi-bin/mailman/listinfo/talk</A><BR><BR></BLOCKQUOTE></DIV><BR></DIV></BODY></HTML>