<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_1445955866554_5193" class="" style="font-family:tahoma,sans-serif">Hello to GDAL community,<br><br>Lately I
have been trying to use the SRTM 3 arc second elevation data in a form
of ASCII grid (.asc file) downloaded freely from <a class="" id="yui_3_16_0_1_1445955866554_5195" href="http://opentopo.sdsc.edu/gridsphere/gridsphere?cid=geonlidarframeportlet&gs_action=raster&opentopoID=OTSRTM.042013.4326.1" target="_blank">opentopography.org</a>.<br class="" id="yui_3_16_0_1_1445955866554_5197"><br class="" id="yui_3_16_0_1_1445955866554_5199"><div id="yui_3_16_0_1_1445955866554_5201" class="" style="font-family:tahoma,sans-serif">The problem is that, decimal degrees for .asc files downloaded from <a class="" id="yui_3_16_0_1_1445955866554_5203" href="http://opentopography.org/" target="_blank">opentopography.org</a> are unprojected.<br class="" id="yui_3_16_0_1_1445955866554_5205"></div><div id="yui_3_16_0_1_1445955866554_5207" class="" style="font-family:tahoma,sans-serif">I have been told that with GDAL python module it is very easy to project the decimal degrees to Mercator:<br class="" id="yui_3_16_0_1_1445955866554_5209"><br class="" id="yui_3_16_0_1_1445955866554_5211"><div class="" id="yui_3_16_0_1_1445955866554_5213" style="margin-left:40px">gdalwarp -s_srs EPSG:4326 -t_srs EPSG:32631 -r cubic Barcelona_original.asc Barcelona_projected_to_<wbr class="" id="yui_3_16_0_1_1445955866554_5215">Mercator.tif<br class="" id="yui_3_16_0_1_1445955866554_5217"></div><br class="" id="yui_3_16_0_1_1445955866554_5219"><div id="yui_3_16_0_1_1445955866554_5287">Then we just need to convert the .tif file to .asc:</div><div id="yui_3_16_0_1_1445955866554_5288"><br></div><div class="" id="yui_3_16_0_1_1445955866554_5223" style="margin-left:40px">gdal_translate -of AAIGrid Barcelona_projected_to_<wbr class="" id="yui_3_16_0_1_1445955866554_5225">Mercator.tif Barcelona_projected_to_<wbr class="" id="yui_3_16_0_1_1445955866554_5227">Mercator.asc<br class="" id="yui_3_16_0_1_1445955866554_5229"><br class="" id="yui_3_16_0_1_1445955866554_5231"></div>Maybe there is a way of doing this in just one line instead of two, I do no not know.<br class="" id="yui_3_16_0_1_1445955866554_5233"><br class="" id="yui_3_16_0_1_1445955866554_5235"></div><div id="yui_3_16_0_1_1445955866554_5237" class="" style="font-family:tahoma,sans-serif">There is a problem: I am using a <a class="" id="yui_3_16_0_1_1445955866554_5239" href="http://www.rhino3d.com/" target="_blank">Rhino 5</a>
application, which is shipped with IronPython 2.7, not cPython. I did
not succeed in installing the GDAL python module into my IronPython.<br class="" id="yui_3_16_0_1_1445955866554_5241"><br class="" id="yui_3_16_0_1_1445955866554_5243"></div><div id="yui_3_16_0_1_1445955866554_5245" class="" style="font-family:tahoma,sans-serif"><div id="yui_3_16_0_1_1445955866554_5303">Is there a way to install GDAL into the IronPython?</div><div id="yui_3_16_0_1_1445955866554_5335" dir="ltr">I googled and <a id="yui_3_16_0_1_1445955866554_5471" class="edited-link-editor" href="http://osgeo-org.1560.x6.nabble.com/Help-with-getting-started-with-GDAL-on-NET-td3761201.html">found this topic</a>, where it says I need to use C# bindings to import GDAL into IronPython. Can anyone show an example of this?<br></div><br class="" id="yui_3_16_0_1_1445955866554_5249"></div><div id="yui_3_16_0_1_1445955866554_5251" class="" style="font-family:tahoma,sans-serif">If not, can in some way the upper two "gdalwarp" and "gdal_translate" methods be replicated in IronPython?<br class="" id="yui_3_16_0_1_1445955866554_5253"></div></div><div id="yui_3_16_0_1_1445955866554_5255" class=""><div class="" id="yui_3_16_0_1_1445955866554_5257" dir="ltr"><div class="" id="yui_3_16_0_1_1445955866554_5259" style="font-family:tahoma,sans-serif">Thank you.<br class="" id="yui_3_16_0_1_1445955866554_5261"></div></div>
</div><br class="" id="yui_3_16_0_1_1445955866554_5263"><div id="yui_3_16_0_1_1445955866554_5265" class="" style="font-family:tahoma,sans-serif">Kind regards,<br class="" id="yui_3_16_0_1_1445955866554_5267"></div><div id="yui_3_16_0_1_1445955866554_5515" dir="ltr">Djordje Spasic</div></div></body></html>