Hi,<br>shp2osm is the python script.<br><br>and shp-to-osm.jar is the java version, which you can edit the rules.txt file.<br><br>I can be of assistance for only the java verison, which was created by Ian Dees<br><br>Someone has fixed the wiki<br>
<a href="http://wiki.openstreetmap.org/wiki/Shp2osm#shp-to-osm.jar_Usage">http://wiki.openstreetmap.org/wiki/Shp2osm#shp-to-osm.jar_Usage</a><br><br>but it misses the basics of <br>****<br>change the source_column lable which is found on the .dbf file of the shp file set<br>
<br>point,GEOMETRY,,GEOMETRY,-<br>line,GEOMETRY,,GEOMETRY,-<br>outer,GEOMETRY,,GEOMETRY,-<br>inner,GEOMETRY,,GEOMETRY,-<br><br>ie.<br><br>outer,TYPE_TEXT,Canal,waterway,canal<br>inner,TYPE_TEXT,Canal,waterway,canal<br><br>
line,TYPE_TEXT,Watercourse,waterway,stream<br><br>point,CODE,2170010,power,generator<br>point,CODE,2170010,power_source,wind<br><br>In the example above, "TYPE_TEXT" is listed as the heading in row one of the .dbf file,<br>
and "Canal" is listed as one of the options in rows 2 to however many there are.<br>and the OSM Key, that we use for "TYPE_TEXT" is "waterway" and the OSM Value that we use for "Canal" is "canal".<br>
<br>Please note the capitalizations, as the rules.txt file needs to know exactly what the source has listed as the column label and the values below.<br><br>Hope that helps,<br>Perhaps Ian can help expand the wiki page a bit more?<br>
and include a windows example..... (for us non-ibuntu people, but still want to help)<br>... im not going to bother editing that wiki because i'm not a wikipedian. :-0)<br>the script is JAVA so it works on anything java-ish.<br>
I actually use the command prompt with DOS to edit the rules.txt file sometimes :-)<br><br>Cheers,<br>Sam<br><br clear="all">Twitter: @Acrosscanada<br>Blog: <a href="http://Acrosscanadatrails.blogspot.com">http://Acrosscanadatrails.blogspot.com</a><br>
Facebook: <a href="http://www.facebook.com/sam.vekemans">http://www.facebook.com/sam.vekemans</a><br>OpenStreetMap IRC: <a href="http://irc.openstreetmap.org">http://irc.openstreetmap.org</a><br>@Acrosscanadatrails<br>
<br><br><div class="gmail_quote">On Thu, Oct 15, 2009 at 11:18 AM, ouɐɯnH <span dir="ltr"><<a href="mailto:fredyrivera@gmail.com">fredyrivera@gmail.com</a>></span> wrote:<br><blockquote class="gmail_quote" style="border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;">
hello<br>
<br>
I need a manual to import data from <a href="http://maplibrary.org" target="_blank">maplibrary.org</a><br>
someone has written something or maybe have a shp2osm rules.txt file to share?<br>
<br>
tanks<br>
humano<br>
<br>
<br>
<br>
<br>
--<br>
<a href="http://GaleNUx.com" target="_blank">http://GaleNUx.com</a> es el sistema de información para la salud<br>
--------------------------------------///--------------------------------------<br>
Teléfono USA: (347) 688-4473 (Google voice)<br>
skype: llamarafredyrivera<br>
<br>
_______________________________________________<br>
Imports mailing list<br>
<a href="mailto:Imports@openstreetmap.org">Imports@openstreetmap.org</a><br>
<a href="http://lists.openstreetmap.org/listinfo/imports" target="_blank">http://lists.openstreetmap.org/listinfo/imports</a><br>
</blockquote></div><br>