If you are more familiar with Java, you could use shp-to-osm. Since I wrote it, I would be happy to help you out with it.<br><br>Download: <a href="http://redmine.yellowbkpk.com/projects/list_files/geo">http://redmine.yellowbkpk.com/projects/list_files/geo</a><br>
Info: <a href="http://redmine.yellowbkpk.com/projects/show/geo">http://redmine.yellowbkpk.com/projects/show/geo</a><br>      <a href="http://wiki.openstreetmap.org/wiki/Shp-to-osm.jar">http://wiki.openstreetmap.org/wiki/Shp-to-osm.jar</a><br>
<br><div class="gmail_quote">On Thu, Dec 17, 2009 at 10:01 PM, Michael musset <span dir="ltr"><<a href="mailto:mickamusset@gmail.com">mickamusset@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;">
Hi, i really need to convert an ESRI shapefile, do you have an idea ?<br><br>i can open the .sch file with OpenJUMP and export it into :<br><br>JUMP GML<br>GML 2.0<br>FME GML<br>WKT<br>Geoconcept ASCII<br><br><br>I already try the script in python or the perl script, but it doesn't work :<br>

<br>python script :<br><div style="margin-left: 40px;"><font size="1"><i>python polyshp2osm.py shape.shp</i><br><i>Traceback (most recent call last):</i><br><i>  File "polyshp2osm.py", line 267, in ?</i><br><i>    run(args[0], **kw)    </i><br>

<i>  File "polyshp2osm.py", line 169, in run</i><br><i>    ds = ogr.Open(filename)</i><br><i>NameError: global name 'ogr' is not defined</i></font><br></div>i'm on Ubuntu, and the ogr lib is already installed : python-gdal<br>

<br>with the perl script :<br><div style="margin-left: 40px;"><i><font size="1">perl <a href="http://shp2osm.pl" target="_blank">shp2osm.pl</a> shape.shp<br>Can't locate Geo/ShapeFile.pm in @INC (@INC contains: /etc/perl /usr/local/lib/perl/5.10.0 /usr/local/share/perl/5.10.0 /usr/lib/perl5 /usr/share/perl5 /usr/lib/perl/5.10 /usr/share/perl/5.10 /usr/local/lib/site_perl .) at <a href="http://shp2osm.pl" target="_blank">shp2osm.pl</a> line 1.<br>

BEGIN failed--compilation aborted at <a href="http://shp2osm.pl" target="_blank">shp2osm.pl</a> line 1.</font><br></i></div><br><br>can you help me ? <br><br><br>thanks a lot,<br><br>
<br>_______________________________________________<br>
talk mailing list<br>
<a href="mailto:talk@openstreetmap.org">talk@openstreetmap.org</a><br>
<a href="http://lists.openstreetmap.org/listinfo/talk" target="_blank">http://lists.openstreetmap.org/listinfo/talk</a><br>
<br></blockquote></div><br>