[gdal-dev] gdal_polygonize.py not running

Giorgio Ghiggini gghiggini at gec-it.com
Tue Sep 1 10:25:41 PDT 2015


Hi,

 

I am using the GISInternals “release-1800-x64-gdal-1-11-1-mapserver-6-4-1”
and I run the SDKShell.bat.

Then I tried running the gdal_polygonize.py as is and I got the following
message:

----------------------------------------------------------------------------
-----------------

C:\GEC\Software\GDAL\gisinternals>gdal_polygonize.py

"gdal_polygonize.py" non è riconosciuto come comando interno o esterno,

 un programma eseguibile o un file batch.

----------------------------------------------------------------------------
-----------------

In Italian, that means “command not recognized” so I thought the SDKShell is
not setting the path for this script.

 

I tried then running the command from the script folder as follow, but got
several errors:

----------------------------------------------------------------------------
-----------------

C:\GEC\Software\GDAL\gisinternals\bin\gdal\python\scripts>gdal_polygonize.py
C:\GEC\Data\Slopes\testgdaldem-combined.tif -f "ESRI Shapefile"
C:\GEC\Data\Slopes\testgdalpolygonize.shp

Traceback (most recent call last):

  File
"C:\GEC\Software\GDAL\gisinternals\bin\gdal\python\scripts\gdal_polygoniz

e.py", line 34, in <module>

    from osgeo import gdal, ogr, osr

  File
"C:\GEC\Software\GDAL\gisinternals\bin\gdal\python\osgeo\__init__.py", li

ne 21, in <module>

    _gdal = swig_import_helper()

  File
"C:\GEC\Software\GDAL\gisinternals\bin\gdal\python\osgeo\__init__.py", li

ne 17, in swig_import_helper

    _mod = imp.load_module('_gdal', fp, pathname, description)

  File "C:\Python34\lib\imp.py", line 243, in load_module

    return load_dynamic(name, filename, file)

ImportError: DLL load failed: Impossibile trovare il modulo specificato.

----------------------------------------------------------------------------
-----------------

 

 

To me it looks like the script is not able to load other external files
(gdal, ogr, osr
), so I still think it is a matter of PATH setting.

 

Any help is very much appreciated.

 

Best regards,

Giorgio

 

 

Giorgio Ghiggini

 

GEC di Ghiggini Giorgio

Via Monte Matanna 1/C

55049 Viareggio (LU)

Italy

P.Iva: 01381570116

cell.: +39 331 141 9315

email: gghiggini at gec-it.com

www.gec-it.com

 <http://www.globalterramaps.com/> www.globalterramaps.com

www.globalaquamaps.com <http://www.globalaquamaps.com/> 

 

-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.osgeo.org/pipermail/gdal-dev/attachments/20150901/799bb82b/attachment.html>


More information about the gdal-dev mailing list