<div>Hey Nathan, </div><div><br></div><div>I was just fighting with this, I'm working on importing trails to the national parks and forests in Washington state.</div>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.<div>

<br></div><div>Good luck!<br><br><div>[1] <a href="http://download.osgeo.org/gdal/win32/1.6/gdalwin32exe160.zip">http://download.osgeo.org/gdal/win32/1.6/gdalwin32exe160.zip</a></div><div>[2] <a href="http://pypi.python.org/pypi/GDAL/">http://pypi.python.org/pypi/GDAL/</a></div>

<div>[3] <a href="http://svn.openstreetmap.org/applications/utils/import/nhd2osm/shape_to_osm-Flowline.py">http://svn.openstreetmap.org/applications/utils/import/nhd2osm/shape_to_osm-Flowline.py</a></div><div>[4] <a href="http://www.remotesensing.org/proj">http://www.remotesensing.org/proj</a></div>

<div><br></div><div>-Tyler</div><div><br></div><div>p.s. I guess it's time for me to break down and make the wiki account to put this stuff up.<br><div class="gmail_quote">On Wed, Jun 10, 2009 at 1:40 AM, Nathan Mixter <span dir="ltr"><<a href="mailto:nmixter@runbox.com">nmixter@runbox.com</a>></span> wrote:<br>

<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex;">








<div lang="EN-US" link="blue" vlink="purple">

<div>

<p>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.<br>
<br>
I try to run from the command prompt<br>
python c:\polyshp2osm.py -s 10 -o 40000 -l c:/open C:/Zoning.shp.</p>

<p> </p>

<p>But I keep getting "ogr python bindings not
installed"</p>

<p> </p>

<p>I tried several different options from <a href="http://trac.osgeo.org/gdal/wiki/DownloadingGdalBinaries" target="_blank">http://trac.osgeo.org/gdal/wiki/DownloadingGdalBinaries</a></p>

<p> </p>

<p>I added the path location\data in the GDAL_DATA system
variable and the location\bin to the path.</p>

<p> </p>

<p>I added the gdal locaton inside the script.</p>

<p> </p>

<p>I got the same results when I installed fw tools, when I ran
the individual installation and when I ran it from USBGIS.</p>

<p> </p>

<p>I tried uninstalling and reinstalling the application
several times in different orders, but still nothing.</p>

<p> </p>

<p>What am I missing? Anything I can try? Thanks</p>

<p> </p>

<p><br>
<br>
<br>
</p>

</div>

</div>


<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></div></div>