[OSM-talk] script and python bindings
Tyler
tyler.ritchie at gmail.com
Wed Jun 10 17:03:40 BST 2009
Hey Nathan,
I was just fighting with this, I'm working on importing trails to the
national parks and forests in Washington state.
I used gdalwin32 [1] as my windows gdal (fwtools' python bindings appear
busted in Windows) I then had to get the python bindings from pypi
[2]. Then I had to fight with the script and ended up using a modified
shape_to_osm-Flowline.py [3] script.
I also needed PROJ.4 from [4]. I'm using python 2.5, python, gdal and PROJ.4
are in my path and GDAL_DATA is a new sys variable.
Good luck!
[1] http://download.osgeo.org/gdal/win32/1.6/gdalwin32exe160.zip
[2] http://pypi.python.org/pypi/GDAL/
[3]
http://svn.openstreetmap.org/applications/utils/import/nhd2osm/shape_to_osm-Flowline.py
[4] http://www.remotesensing.org/proj
-Tyler
p.s. I guess it's time for me
to break down and make the wiki account to put this stuff up.
On Wed, Jun 10, 2009 at 1:40 AM, Nathan Mixter <nmixter at runbox.com> wrote:
> I'm trying to run the polyshp2osm.py script on a shapefile I converted to
> 4326 format using ogr2ogr. I copied the script and all three files created
> by ogr2ogr to the c directory.
>
> I try to run from the command prompt
> python c:\polyshp2osm.py -s 10 -o 40000 -l c:/open C:/Zoning.shp.
>
>
>
> But I keep getting "ogr python bindings not installed"
>
>
>
> I tried several different options from
> http://trac.osgeo.org/gdal/wiki/DownloadingGdalBinaries
>
>
>
> I added the path location\data in the GDAL_DATA system variable and the
> location\bin to the path.
>
>
>
> I added the gdal locaton inside the script.
>
>
>
> I got the same results when I installed fw tools, when I ran the individual
> installation and when I ran it from USBGIS.
>
>
>
> I tried uninstalling and reinstalling the application several times in
> different orders, but still nothing.
>
>
>
> What am I missing? Anything I can try? Thanks
>
>
>
>
>
>
>
> _______________________________________________
> talk mailing list
> talk at openstreetmap.org
> http://lists.openstreetmap.org/listinfo/talk
>
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.openstreetmap.org/pipermail/talk/attachments/20090610/e689c7e3/attachment.html>
More information about the talk
mailing list