[OSM-talk] import or convert .sch file to osm ?
Michael musset
mickamusset at gmail.com
Fri Dec 18 04:01:32 GMT 2009
Hi, i really need to convert an ESRI shapefile, do you have an idea ?
i can open the .sch file with OpenJUMP and export it into :
JUMP GML
GML 2.0
FME GML
WKT
Geoconcept ASCII
I already try the script in python or the perl script, but it doesn't work :
python script :
*python polyshp2osm.py shape.shp*
*Traceback (most recent call last):*
* File "polyshp2osm.py", line 267, in ?*
* run(args[0], **kw) *
* File "polyshp2osm.py", line 169, in run*
* ds = ogr.Open(filename)*
*NameError: global name 'ogr' is not defined*
i'm on Ubuntu, and the ogr lib is already installed : python-gdal
with the perl script :
*perl shp2osm.pl shape.shp
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 shp2osm.pl line 1.
BEGIN failed--compilation aborted at shp2osm.pl line 1.
*
can you help me ?
thanks a lot,
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.openstreetmap.org/pipermail/talk/attachments/20091218/d265e07b/attachment.html>
More information about the talk
mailing list