[Talk-us] US Hydrographic Data

Ian Dees ian.dees at gmail.com
Wed Apr 30 16:08:51 BST 2008


After changing the imports as you suggested, I'm getting:

ERROR 6: Unable to load PROJ.4 library (libproj.so), creation of
OGRCoordinateTransformation failed.
Traceback (most recent call last):
  File "nhd_to_osm.py", line 158, in ?
    tr = osr.CoordinateTransformation( from_proj, to_proj )
  File "/usr/lib/python2.4/site-packages/osr.py", line 679, in __init__
    raise ValueError, gdal.GetLastErrorMsg()
ValueError: Unable to load PROJ.4 library (libproj.so), creation of
OGRCoordinateTransformation failed.

I can't seem to find libproj.so. What package might I find that in (or where
can I find the source)?

On Wed, Apr 30, 2008 at 10:02 AM, Matthew Perry <perrygeo at gmail.com> wrote:

> Older versions of GDAL/OGR (pre 1.5) don't use the osgeo namespace. Try:
>
> import ogr
>
> instead.
>
> - matt
>
> On Tue, Apr 29, 2008 at 6:14 PM, Adam Schreiber <sadam at clemson.edu> wrote:
> > On Tue, Apr 29, 2008 at 6:15 PM, Matthew Perry <perrygeo at gmail.com>
> wrote:
> >  >  Feel free to try it out and let me know how it works. The script is
> >  >  available at
> http://perrygeo.googlecode.com/svn/trunk/gis-bin/nhd_to_osm.py
> >
> >  I'm running ubuntu hardy and installed every gdal related package I
> >  could find.  When running the script I get:
> >
> >  $ ./nhd_to_osm.py NHD123830 nhd123830.osm
> >
> > Traceback (most recent call last):
> >   File "./nhd_to_osm.py", line 31, in <module>
> >
> >     from osgeo import ogr
> >  ImportError: No module named osgeo
> >
> >  Am I missing something?
> >
> >  Cheers,
> >
> >  Adam
> >
>
>
>
> --
> Matthew T. Perry
> http://www.perrygeo.net
>
> _______________________________________________
> Talk-us mailing list
> Talk-us at openstreetmap.org
> http://lists.openstreetmap.org/cgi-bin/mailman/listinfo/talk-us
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.openstreetmap.org/pipermail/talk-us/attachments/20080430/56bc7d5d/attachment.html>


More information about the Talk-us mailing list