[gdal-dev] Problem with gdal_polygonize.py
Even Rouault
even.rouault at mines-paris.org
Mon Oct 6 14:01:07 EDT 2008
You must use the NG python bindings in order to use gdal_polygonize.py because
GDALPolygonize is not mapped in the OG python bindings.
I'm not sure why you don't manage to compile the NG bindings. My Ubuntu 8.04
comes with python 2.5.2 and they work.
Le Monday 06 October 2008 16:47:29 Mario Cavicchi, vous avez écrit :
> Hi all,
> I compilated GDAL from repository (rev. 15462), because I want to use
> the gdal_polygonize.py utility. I used option --with-ogpython for make
> GDAL, because with --with-python I had some problem in compilation (I
> use python 2.5.2). Now, if I try to use gdal_polygonize.py, I get this
> error:
>
> $ gdal_polygonize.py
> Traceback (most recent call last):
> File "/usr/local/bin/gdal_polygonize.py", line 34, in <module>
> import gdal
> File "/usr/local//lib/python2.5/site-packages/gdal.py", line 2, in
> <module>
> from osgeo.gdal import deprecation_warn
> File "/usr/local//lib/python2.5/site-packages/osgeo/gdal.py", line 7,
> in <module>
> import _gdal
> ImportError: /usr/local/lib/python2.5/site-packages/osgeo/_gdal.so:
> undefined symbol: GDALPolygonize
>
> How I can fix this error? Thank for any suggestions..
> Best regards,
More information about the gdal-dev
mailing list