<html xmlns:v="urn:schemas-microsoft-com:vml" xmlns:o="urn:schemas-microsoft-com:office:office" xmlns:w="urn:schemas-microsoft-com:office:word" xmlns:m="http://schemas.microsoft.com/office/2004/12/omml" xmlns="http://www.w3.org/TR/REC-html40">
<head>
<meta http-equiv=Content-Type content="text/html; charset=iso-8859-1">
<meta name=Generator content="Microsoft Word 12 (filtered medium)">
<style>
<!--
/* Font Definitions */
@font-face
{font-family:"Cambria Math";
panose-1:2 4 5 3 5 4 6 3 2 4;}
@font-face
{font-family:Calibri;
panose-1:2 15 5 2 2 2 4 3 2 4;}
/* Style Definitions */
p.MsoNormal, li.MsoNormal, div.MsoNormal
{margin:0cm;
margin-bottom:.0001pt;
font-size:11.0pt;
font-family:"Calibri","sans-serif";}
a:link, span.MsoHyperlink
{mso-style-priority:99;
color:blue;
text-decoration:underline;}
a:visited, span.MsoHyperlinkFollowed
{mso-style-priority:99;
color:purple;
text-decoration:underline;}
span.StileMessaggioDiPostaElettronica17
{mso-style-type:personal-compose;
font-family:"Calibri","sans-serif";
color:windowtext;}
.MsoChpDefault
{mso-style-type:export-only;}
@page Section1
{size:612.0pt 792.0pt;
margin:70.85pt 2.0cm 2.0cm 2.0cm;}
div.Section1
{page:Section1;}
-->
</style>
<!--[if gte mso 9]><xml>
<o:shapedefaults v:ext="edit" spidmax="1026" />
</xml><![endif]--><!--[if gte mso 9]><xml>
<o:shapelayout v:ext="edit">
<o:idmap v:ext="edit" data="1" />
</o:shapelayout></xml><![endif]-->
</head>
<body lang=IT link=blue vlink=purple>
<div class=Section1>
<p class=MsoNormal>Hi,<o:p></o:p></p>
<p class=MsoNormal><o:p> </o:p></p>
<p class=MsoNormal><span lang=EN-US>I am using the GISInternals “release-1800-x64-gdal-1-11-1-mapserver-6-4-1”
and I run the SDKShell.bat.<o:p></o:p></span></p>
<p class=MsoNormal><span lang=EN-US>Then I tried running the gdal_polygonize.py
as is and I got the following message:<o:p></o:p></span></p>
<p class=MsoNormal><b><span lang=EN-US>---------------------------------------------------------------------------------------------<o:p></o:p></span></b></p>
<p class=MsoNormal><b>C:\GEC\Software\GDAL\gisinternals>gdal_polygonize.py<o:p></o:p></b></p>
<p class=MsoNormal><b>"gdal_polygonize.py" non è riconosciuto come
comando interno o esterno,<o:p></o:p></b></p>
<p class=MsoNormal><b> un programma eseguibile o un file batch.<o:p></o:p></b></p>
<p class=MsoNormal><b><span lang=EN-US>---------------------------------------------------------------------------------------------<o:p></o:p></span></b></p>
<p class=MsoNormal><span lang=EN-US>In Italian, that means “command not
recognized” so I thought the SDKShell is not setting the path for this
script.<o:p></o:p></span></p>
<p class=MsoNormal><span lang=EN-US><o:p> </o:p></span></p>
<p class=MsoNormal><span lang=EN-US>I tried then running the command from the
script folder as follow, but got several errors:<o:p></o:p></span></p>
<p class=MsoNormal><b><span lang=EN-US>---------------------------------------------------------------------------------------------<o:p></o:p></span></b></p>
<p class=MsoNormal><b><span lang=EN-US>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<o:p></o:p></span></b></p>
<p class=MsoNormal><b><span lang=EN-US>Traceback (most recent call last):<o:p></o:p></span></b></p>
<p class=MsoNormal><b><span lang=EN-US> File
"C:\GEC\Software\GDAL\gisinternals\bin\gdal\python\scripts\gdal_polygoniz<o:p></o:p></span></b></p>
<p class=MsoNormal><b><span lang=EN-US>e.py", line 34, in <module><o:p></o:p></span></b></p>
<p class=MsoNormal><b><span lang=EN-US> from osgeo import gdal, ogr, osr<o:p></o:p></span></b></p>
<p class=MsoNormal><b><span lang=EN-US> </span>File
"C:\GEC\Software\GDAL\gisinternals\bin\gdal\python\osgeo\__init__.py",
li<o:p></o:p></b></p>
<p class=MsoNormal><b>ne 21, in <module><o:p></o:p></b></p>
<p class=MsoNormal><b> </b><b><span lang=EN-US>_gdal = swig_import_helper()<o:p></o:p></span></b></p>
<p class=MsoNormal><b><span lang=EN-US> File
"C:\GEC\Software\GDAL\gisinternals\bin\gdal\python\osgeo\__init__.py",
li<o:p></o:p></span></b></p>
<p class=MsoNormal><b><span lang=EN-US>ne 17, in swig_import_helper<o:p></o:p></span></b></p>
<p class=MsoNormal><b><span lang=EN-US> _mod = imp.load_module('_gdal', fp,
pathname, description)<o:p></o:p></span></b></p>
<p class=MsoNormal><b><span lang=EN-US> File
"C:\Python34\lib\imp.py", line 243, in load_module<o:p></o:p></span></b></p>
<p class=MsoNormal><b><span lang=EN-US> return load_dynamic(name, filename,
file)<o:p></o:p></span></b></p>
<p class=MsoNormal><b>ImportError: DLL load failed: Impossibile trovare il
modulo specificato.<o:p></o:p></b></p>
<p class=MsoNormal><b><span lang=EN-US>---------------------------------------------------------------------------------------------<o:p></o:p></span></b></p>
<p class=MsoNormal><o:p> </o:p></p>
<p class=MsoNormal><o:p> </o:p></p>
<p class=MsoNormal><span lang=EN-US>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.<o:p></o:p></span></p>
<p class=MsoNormal><span lang=EN-US><o:p> </o:p></span></p>
<p class=MsoNormal><span lang=EN-US>Any help is very much appreciated.<o:p></o:p></span></p>
<p class=MsoNormal><span lang=EN-US><o:p> </o:p></span></p>
<p class=MsoNormal><span lang=EN-US>Best regards,<o:p></o:p></span></p>
<p class=MsoNormal><span lang=EN-US>Giorgio<o:p></o:p></span></p>
<p class=MsoNormal><span lang=EN-US><o:p> </o:p></span></p>
<p class=MsoNormal><span lang=EN-US><o:p> </o:p></span></p>
<p class=MsoNormal>Giorgio Ghiggini<o:p></o:p></p>
<p class=MsoNormal><o:p> </o:p></p>
<p class=MsoNormal><b>GEC di Ghiggini Giorgio<o:p></o:p></b></p>
<p class=MsoNormal>Via Monte Matanna 1/C<o:p></o:p></p>
<p class=MsoNormal>55049 Viareggio (LU)<o:p></o:p></p>
<p class=MsoNormal><span lang=EN-US>Italy<o:p></o:p></span></p>
<p class=MsoNormal><span lang=EN-US>P.Iva: 01381570116<o:p></o:p></span></p>
<p class=MsoNormal><span lang=EN-US>cell.: +39 331 141 9315<o:p></o:p></span></p>
<p class=MsoNormal><span lang=EN-US>email: gghiggini@gec-it.com<o:p></o:p></span></p>
<p class=MsoNormal><a href="www.gec-it.com"><span lang=EN-US>www.gec-it.com</span></a><span
lang=EN-US><o:p></o:p></span></p>
<p class=MsoNormal><a href="http://www.globalterramaps.com/"><span lang=EN-US>www.globalterramaps.com</span></a><span
lang=EN-US><o:p></o:p></span></p>
<p class=MsoNormal><a href="http://www.globalaquamaps.com/">www.globalaquamaps.com</a><o:p></o:p></p>
<p class=MsoNormal><o:p> </o:p></p>
</div>
</body>
</html>