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, _______________________________________________ gdal-dev mailing list gdal-dev@lists.osgeo.org http://lists.osgeo.org/mailman/listinfo/gdal-dev