<html><head><style type="text/css"><!-- DIV {margin:0px;} --></style></head><body><div style="font-family:times new roman,new york,times,serif;font-size:12pt"><div><br>Simone Cortesi <simone@cortesi.com> wrote<br>> On Sat, Jan 3, 2009 at 1:13 AM, Ian Dees <ian.dees@gmail.com> wrote:<br>> > I'd be more than happy to help with the shapefile to osm conversion.<br>> > I've got a fairly universal conversion app written in java.<br>> ><br>> > Let me know when you're ready to convert.<br>> <br>> how do you handle the remapping of the dbf file which is part of  SHP<br>> to the relevant key/value in the osm file? is your java app available<br>> somewhere?<br>><br>> I'm dealing with the conversion of these data:<br>> <a target="_blank" href="http://wiki.openstreetmap.org/wiki/CRTN_Friuli_Venezia_Giulia">http://wiki.openstreetmap.org/wiki/CRTN_Friuli_Venezia_Giulia</a><br><br>Consider the ever
 increasing number of imports (hooray! leverage!), we should start paving the cowpaths.<br><br>There's bits and pieces of documentation on shapefile import on the wiki, and some bits of code, but it seems like every import has to start from scratch, reinvent wheels.<br>Schuyler and I had sketched out a design for a standard toolbox, based on osmlib, trying to find the notes on that....<br>But the basic idea was to devise a mapping between properties in the dbf and OSM tags, seemed relatively straightforward, though no code was written!<br><br>The trickier part seemed to be mapping between the geographic data model in the Shapefile and OSM's topological model. If a complete road (or hiking trail) is represented by a single row, need to find the intersections. Sometimes each length between two intersections is a single row, and they need to be combined into a single way. There's probably loads of other ways to represent a network in a shapefile. Sometimes
 this could be detected automatically, sometimes it would need hints from a human examining the shapefile. In any case, the results need to be picked over in JOSM and manually fixed up anyway.<br><br>Anything towards documentation, surveying of the shapefile import landscape, etc, actual code, experience sharing, seems like a good idea.<br><br>http://wiki.openstreetmap.org/wiki/Import has lots of info, guidelines, experiences on imports generally.<br>http://wiki.openstreetmap.org/wiki/Import/Shapefile is description of a single process. I'd suggest moving this script to another page, and using Import/Shapfile to document general issues and catalog approaches.<br><br>Mikel<br><br>ps Stoked to see the national park maps making it into OSM!<br><br><br></div></div></body></html>