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">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">shp2osm.pl</a> line 1.<br>
BEGIN failed--compilation aborted at <a href="http://shp2osm.pl">shp2osm.pl</a> line 1.</font><br></i></div><br><br>can you help me ? <br><br><br>thanks a lot,<br><br>