<html><head></head><body><div style="color:#000; background-color:#fff; font-family:verdana, helvetica, sans-serif;font-size:13px"><div id="yui_3_16_0_1_1447257529980_20478" style="font-family: verdana, helvetica, sans-serif; font-size: 13px;"><div id="yui_3_16_0_1_1447257529980_20477" style="font-family: HelveticaNeue, Helvetica Neue, Helvetica, Arial, Lucida Grande, sans-serif; font-size: 16px;"><br><div id="yui_3_16_0_1_1447257529980_20485" class="y_msg_container"><font id="yiv4003357930yui_3_16_0_1_1446629612702_15944" size="2" face="verdana, helvetica, sans-serif">Hello to GDAL community,</font><div id="yiv4003357930"><div class="qtdSeparateBR"><br><br></div><div class="yiv4003357930yqt8796480696" id="yiv4003357930yqtfd49207"><div id="yui_3_16_0_1_1447257529980_20493"><div id="yui_3_16_0_1_1447257529980_20492" style="color:#000;background-color:#fff;font-family:verdana, helvetica, sans-serif;font-size:13px;"><div id="yiv4003357930yui_3_16_0_1_1446629612702_15682" style="font-family:verdana, helvetica, sans-serif;font-size:13px;"><div id="yiv4003357930yui_3_16_0_1_1446629612702_15681" style="font-family:HelveticaNeue, Helvetica Neue, Helvetica, Arial, Lucida Grande, sans-serif;font-size:16px;"><div class="yiv4003357930" id="yiv4003357930yui_3_16_0_1_1445955866554_5193" style="font-family:tahoma, sans-serif;"><div id="yui_3_16_0_1_1447257529980_20592"><br></div><div dir="ltr" id="yui_3_16_0_1_1447257529980_20504"><font id="yiv4003357930yui_3_16_0_1_1446629612702_15944" size="2" face="verdana, helvetica, sans-serif">I would like to replicate the following two statements GDAL python has:<br class="" id="yui_3_16_0_1_1447257529980_20507"><br class="" id="yui_3_16_0_1_1447257529980_20509"> <font id="yui_3_16_0_1_1447257529980_22162" color="#808080"># project the decimal degrees to Mercator:</font><br class="" id="yui_3_16_0_1_1447257529980_20511"> gdalwarp -s_srs EPSG:4326 -t_srs EPSG:32631 -r cubic original.asc projected_to_Mercator.tif<br class="" id="yui_3_16_0_1_1447257529980_20513"> <br class="" id="yui_3_16_0_1_1447257529980_20515"> <font id="yui_3_16_0_1_1447257529980_22114" color="#808080"># convert the .tif file to .asc:</font><br class="" id="yui_3_16_0_1_1447257529980_20517"> gdal_translate -of AAIGrid projected_to_Mercator.tif projected_to_Mercator.asc​<br class="" id="yui_3_16_0_1_1447257529980_20519"><br class="" id="yui_3_16_0_1_1447257529980_20521">But I can not install GDAL to IronPython 2.7, which is what I am using. </font></div><div id="yui_3_16_0_1_1447257529980_20904" dir="ltr"><font id="yiv4003357930yui_3_16_0_1_1446629612702_15944" size="2" face="verdana, helvetica, sans-serif"><br class="" id="yui_3_16_0_1_1447257529980_20523"></font></div><div id="yui_3_16_0_1_1447257529980_20903" dir="ltr"><font id="yiv4003357930yui_3_16_0_1_1446629612702_15944" size="2" face="verdana, helvetica, sans-serif">I googled a bit and <a id="yui_3_16_0_1_1447257529980_21297" class="edited-link-editor" href="http://osgeo-org.1560.x6.nabble.com/Help-with-getting-started-with-GDAL-on-NET-td3761201.html">Tamas Szekeres said</a> that it is possible to "<i id="yui_3_16_0_1_1447257529980_21717">use the gdal C# bindings to access gdal</i>". I tried doing just that:<br class="" id="yui_3_16_0_1_1447257529980_20525">referencing both gdal <a id="yui_3_16_0_1_1447257529980_20729" class="edited-link-editor" href="http://www.gisinternals.com/query.html?content=filelist&file=release-1800-gdal-1-11-1-mapserver-6-4-1.zip">32 bit</a> and <a id="yui_3_16_0_1_1447257529980_21711" class="edited-link-editor" href="http://gisinternals.com/query.html?content=filelist&file=release-1800-x64-gdal-1-11-1-mapserver-6-4-1.zip">64 bit</a> gdal .dll libraries, but without success:<br class="" id="yui_3_16_0_1_1447257529980_20527"><br class="" id="yui_3_16_0_1_1447257529980_20529"> from clr import AddReferenceToFileAndPath as addref<br class="" id="yui_3_16_0_1_1447257529980_20531"> addref("c:/gdal/gdal_wrap.dll")<br class="" id="yui_3_16_0_1_1447257529980_20533"><br class="" id="yui_3_16_0_1_1447257529980_20535">I am getting a message:<br class="" id="yui_3_16_0_1_1447257529980_20537"></font></div><div id="yui_3_16_0_1_1447257529980_21760" dir="ltr"><br class="" id="yui_3_16_0_1_1447257529980_20539"><font class="" id="yiv4003357930yui_3_16_0_1_1446629612702_15944" size="2" face="verdana, helvetica, sans-serif"><font class="" id="yiv4003357930yui_3_16_0_1_1446629612702_15944" size="2" face="verdana, helvetica, sans-serif"> </font>> Runtime error (IOException): file does not exist: c:\gdal\gdal_wrap2.dll<br class="" id="yui_3_16_0_1_1447257529980_20541"><br class="" id="yui_3_16_0_1_1447257529980_20543">Path: "c:/gdal/gdal_wrap.dll" is correct, so I do not understand why it says, that the file does not exist.<br class="" id="yui_3_16_0_1_1447257529980_20545"><br class="" id="yui_3_16_0_1_1447257529980_20547">Can anyone help me on how upper two GDAL statements can be used in IronPython? Or in any other module? </font><font class="" id="yiv4003357930yui_3_16_0_1_1446629612702_15944" size="2" face="verdana, helvetica, sans-serif">I basically need to project the .asc elevation data to Mercator. But it has to be in IronPython not in ArcGIS, QGIS or any other application.</font></div><div id="yui_3_16_0_1_1447257529980_22148" dir="ltr"><font class="" id="yiv4003357930yui_3_16_0_1_1446629612702_15944" size="2" face="verdana, helvetica, sans-serif"><br></font></div><div id="yui_3_16_0_1_1447257529980_21823" dir="ltr"><font id="yiv4003357930yui_3_16_0_1_1446629612702_15944" size="2" face="verdana, helvetica, sans-serif">I would be very grateful for any help.<br class="" id="yui_3_16_0_1_1447257529980_20549"></font></div><div id="yui_3_16_0_1_1447257529980_21803" dir="ltr"><br></div><div id="yui_3_16_0_1_1447257529980_21821" dir="ltr"><font id="yiv4003357930yui_3_16_0_1_1446629612702_15944" size="2" face="verdana, helvetica, sans-serif">Thank you in advance,<br>Kind regards,<br>Djordje Spasic</font><br clear="none"></div></div> </div> </div> </div></div></div></div><br><br></div> </div> </div> </div></body></html>