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.

Download: http://redmine.yellowbkpk.com/projects/list_files/geo
Info: http://redmine.yellowbkpk.com/projects/show/geo
      http://wiki.openstreetmap.org/wiki/Shp-to-osm.jar

On Thu, Dec 17, 2009 at 10:01 PM, Michael musset <mickamus...@gmail.com>wrote:

> 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,
>
>
> _______________________________________________
> talk mailing list
> talk@openstreetmap.org
> http://lists.openstreetmap.org/listinfo/talk
>
>
_______________________________________________
talk mailing list
talk@openstreetmap.org
http://lists.openstreetmap.org/listinfo/talk

Reply via email to