After changing the imports as you suggested, I'm getting:<br><br>ERROR 6: Unable to load PROJ.4 library (libproj.so), creation of<br>OGRCoordinateTransformation failed.<br>Traceback (most recent call last):<br>  File "nhd_to_osm.py", line 158, in ?<br>
    tr = osr.CoordinateTransformation( from_proj, to_proj )<br>  File "/usr/lib/python2.4/site-packages/osr.py", line 679, in __init__<br>    raise ValueError, gdal.GetLastErrorMsg()<br>ValueError: Unable to load PROJ.4 library (libproj.so), creation of<br>
OGRCoordinateTransformation failed.<br><br>I can't seem to find libproj.so. What package might I find that in (or where can I find the source)?<br><br><div class="gmail_quote">On Wed, Apr 30, 2008 at 10:02 AM, Matthew Perry <<a href="mailto:perrygeo@gmail.com">perrygeo@gmail.com</a>> wrote:<br>
<blockquote class="gmail_quote" style="border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;">Older versions of GDAL/OGR (pre 1.5) don't use the osgeo namespace. Try:<br>
<br>
import ogr<br>
<br>
instead.<br>
<br>
- matt<br>
<div class="Ih2E3d"><br>
On Tue, Apr 29, 2008 at 6:14 PM, Adam Schreiber <<a href="mailto:sadam@clemson.edu">sadam@clemson.edu</a>> wrote:<br>
> On Tue, Apr 29, 2008 at 6:15 PM, Matthew Perry <<a href="mailto:perrygeo@gmail.com">perrygeo@gmail.com</a>> wrote:<br>
>  >  Feel free to try it out and let me know how it works. The script is<br>
>  >  available at <a href="http://perrygeo.googlecode.com/svn/trunk/gis-bin/nhd_to_osm.py" target="_blank">http://perrygeo.googlecode.com/svn/trunk/gis-bin/nhd_to_osm.py</a><br>
><br>
>  I'm running ubuntu hardy and installed every gdal related package I<br>
>  could find.  When running the script I get:<br>
><br>
>  $ ./nhd_to_osm.py NHD123830 nhd123830.osm<br>
><br>
> Traceback (most recent call last):<br>
>   File "./nhd_to_osm.py", line 31, in <module><br>
><br>
>     from osgeo import ogr<br>
>  ImportError: No module named osgeo<br>
><br>
>  Am I missing something?<br>
><br>
>  Cheers,<br>
><br>
>  Adam<br>
><br>
<br>
<br>
<br>
</div><div class="Ih2E3d">--<br>
Matthew T. Perry<br>
<a href="http://www.perrygeo.net" target="_blank">http://www.perrygeo.net</a><br>
<br>
_______________________________________________<br>
</div><div><div></div><div class="Wj3C7c">Talk-us mailing list<br>
<a href="mailto:Talk-us@openstreetmap.org">Talk-us@openstreetmap.org</a><br>
<a href="http://lists.openstreetmap.org/cgi-bin/mailman/listinfo/talk-us" target="_blank">http://lists.openstreetmap.org/cgi-bin/mailman/listinfo/talk-us</a><br>
</div></div></blockquote></div><br>