<html xmlns:o="urn:schemas-microsoft-com:office:office" xmlns:w="urn:schemas-microsoft-com:office:word" xmlns:st1="urn:schemas-microsoft-com:office:smarttags" 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 11 (filtered medium)">
<o:SmartTagType namespaceuri="urn:schemas-microsoft-com:office:smarttags"
name="PostalCode"/>
<o:SmartTagType namespaceuri="urn:schemas-microsoft-com:office:smarttags"
name="State"/>
<o:SmartTagType namespaceuri="urn:schemas-microsoft-com:office:smarttags"
name="Street"/>
<o:SmartTagType namespaceuri="urn:schemas-microsoft-com:office:smarttags"
name="country-region"/>
<o:SmartTagType namespaceuri="urn:schemas-microsoft-com:office:smarttags"
name="address"/>
<o:SmartTagType namespaceuri="urn:schemas-microsoft-com:office:smarttags"
name="City" downloadurl="http://www.5iamas-microsoft-com:office:smarttags"/>
<o:SmartTagType namespaceuri="urn:schemas-microsoft-com:office:smarttags"
name="place" downloadurl="http://www.5iantlavalamp.com/"/>
<!--[if !mso]>
<style>
st1\:*{behavior:url(#default#ieooui) }
</style>
<![endif]-->
<style>
<!--
/* Style Definitions */
p.MsoNormal, li.MsoNormal, div.MsoNormal
        {margin:0cm;
        margin-bottom:.0001pt;
        font-size:12.0pt;
        font-family:"Times New Roman";}
a:link, span.MsoHyperlink
        {color:blue;
        text-decoration:underline;}
a:visited, span.MsoHyperlinkFollowed
        {color:purple;
        text-decoration:underline;}
span.EmailStyle17
        {mso-style-type:personal-compose;
        font-family:Arial;
        color:windowtext;}
@page Section1
        {size:612.0pt 792.0pt;
        margin:72.0pt 90.0pt 72.0pt 90.0pt;}
div.Section1
        {page:Section1;}
-->
</style>
</head>
<body lang=FR-CA link=blue vlink=purple>
<div class=Section1>
<p class=MsoNormal><font size=2 face=Arial><span style='font-size:10.0pt;
font-family:Arial'>Hi,<o:p></o:p></span></font></p>
<p class=MsoNormal><font size=2 face=Arial><span style='font-size:10.0pt;
font-family:Arial'><o:p> </o:p></span></font></p>
<p class=MsoNormal><font size=2 face=Arial><span lang=EN-CA style='font-size:
10.0pt;font-family:Arial'>I’m trying to convert some DEM files from .ers
format to .tif. When I use gdalinfo on my image, I get the following output:<o:p></o:p></span></font></p>
<p class=MsoNormal><font size=2 face=Arial><span lang=EN-CA style='font-size:
10.0pt;font-family:Arial'><o:p> </o:p></span></font></p>
<p class=MsoNormal><font size=2 color="#3366ff" face=Arial><span lang=EN-CA
style='font-size:10.0pt;font-family:Arial;color:#3366FF'>D:\Apps\FWTools1.0.5>
gdalinfo E:\Data\22k01102.ers<o:p></o:p></span></font></p>
<p class=MsoNormal><font size=2 color="#3366ff" face=Arial><span lang=EN-CA
style='font-size:10.0pt;font-family:Arial;color:#3366FF'>Driver: EHdr/ESRI .hdr
Labelled<o:p></o:p></span></font></p>
<p class=MsoNormal><font size=2 color="#3366ff" face=Arial><span lang=EN-CA
style='font-size:10.0pt;font-family:Arial;color:#3366FF'>Size is 2798, 1409<o:p></o:p></span></font></p>
<p class=MsoNormal><font size=2 color="#3366ff" face=Arial><span lang=EN-CA
style='font-size:10.0pt;font-family:Arial;color:#3366FF'>Coordinate System is:<o:p></o:p></span></font></p>
<p class=MsoNormal><font size=2 color="#3366ff" face=Arial><span lang=EN-CA
style='font-size:10.0pt;font-family:Arial;color:#3366FF'>GEOGCS["NAD83",<o:p></o:p></span></font></p>
<p class=MsoNormal><font size=2 color="#3366ff" face=Arial><span lang=EN-CA
style='font-size:10.0pt;font-family:Arial;color:#3366FF'>
DATUM["North_American_Datum_1983",<o:p></o:p></span></font></p>
<p class=MsoNormal><font size=2 color="#3366ff" face=Arial><span lang=EN-CA
style='font-size:10.0pt;font-family:Arial;color:#3366FF'>
SPHEROID["GRS 1980",6378137,298.257222101,<o:p></o:p></span></font></p>
<p class=MsoNormal><font size=2 color="#3366ff" face=Arial><span lang=EN-CA
style='font-size:10.0pt;font-family:Arial;color:#3366FF'>
AUTHORITY["EPSG","7019"]],<o:p></o:p></span></font></p>
<p class=MsoNormal><font size=2 color="#3366ff" face=Arial><span lang=EN-CA
style='font-size:10.0pt;font-family:Arial;color:#3366FF'>
TOWGS84[0,0,0,0,0,0,0],<o:p></o:p></span></font></p>
<p class=MsoNormal><font size=2 color="#3366ff" face=Arial><span lang=EN-CA
style='font-size:10.0pt;font-family:Arial;color:#3366FF'>
AUTHORITY["EPSG","6269"]],<o:p></o:p></span></font></p>
<p class=MsoNormal><font size=2 color="#3366ff" face=Arial><span lang=EN-CA
style='font-size:10.0pt;font-family:Arial;color:#3366FF'> PRIMEM["<st1:City
w:st="on"><st1:place w:st="on">Greenwich</st1:place></st1:City>",0,<o:p></o:p></span></font></p>
<p class=MsoNormal><font size=2 color="#3366ff" face=Arial><span lang=EN-CA
style='font-size:10.0pt;font-family:Arial;color:#3366FF'>
AUTHORITY["EPSG","8901"]],<o:p></o:p></span></font></p>
<p class=MsoNormal><font size=2 color="#3366ff" face=Arial><span lang=EN-CA
style='font-size:10.0pt;font-family:Arial;color:#3366FF'>
UNIT["degree",0.0174532925199433,<o:p></o:p></span></font></p>
<p class=MsoNormal><font size=2 color="#3366ff" face=Arial><span lang=EN-CA
style='font-size:10.0pt;font-family:Arial;color:#3366FF'>
AUTHORITY["EPSG","9108"]],<o:p></o:p></span></font></p>
<p class=MsoNormal><font size=2 color="#3366ff" face=Arial><span lang=EN-CA
style='font-size:10.0pt;font-family:Arial;color:#3366FF'>
AXIS["Lat",NORTH],<o:p></o:p></span></font></p>
<p class=MsoNormal><font size=2 color="#3366ff" face=Arial><span lang=EN-CA
style='font-size:10.0pt;font-family:Arial;color:#3366FF'>
AXIS["Long",EAST],<o:p></o:p></span></font></p>
<p class=MsoNormal><font size=2 color="#3366ff" face=Arial><span lang=EN-CA
style='font-size:10.0pt;font-family:Arial;color:#3366FF'>
AUTHORITY["EPSG","4269"]]<o:p></o:p></span></font></p>
<p class=MsoNormal><font size=2 color="#3366ff" face=Arial><span lang=EN-CA
style='font-size:10.0pt;font-family:Arial;color:#3366FF'>Origin =
(-68.250915,50.125905)<o:p></o:p></span></font></p>
<p class=MsoNormal><font size=2 color="#3366ff" face=Arial><span lang=EN-CA
style='font-size:10.0pt;font-family:Arial;color:#3366FF'>Pixel Size =
(0.00009000,-0.00009000)<o:p></o:p></span></font></p>
<p class=MsoNormal><font size=2 color="#3366ff" face=Arial><span lang=EN-CA
style='font-size:10.0pt;font-family:Arial;color:#3366FF'>Corner Coordinates:<o:p></o:p></span></font></p>
<p class=MsoNormal><font size=2 color="#3366ff" face=Arial><span lang=EN-CA
style='font-size:10.0pt;font-family:Arial;color:#3366FF'>Upper Left (
-68.2509150, 50.1259050) ( 68d15'3.29"W, 50d 7'33.26"N)<o:p></o:p></span></font></p>
<p class=MsoNormal><font size=2 color="#3366ff" face=Arial><span lang=EN-CA
style='font-size:10.0pt;font-family:Arial;color:#3366FF'>Lower Left (
-68.2509150, 49.9990950) ( 68d15'3.29"W, 49d59'56.74"N)<o:p></o:p></span></font></p>
<p class=MsoNormal><font size=2 color="#3366ff" face=Arial><span lang=EN-CA
style='font-size:10.0pt;font-family:Arial;color:#3366FF'>Upper Right (
-67.9990950, 50.1259050) ( 67d59'56.74"W, 50d 7'33.26"N)<o:p></o:p></span></font></p>
<p class=MsoNormal><font size=2 color="#3366ff" face=Arial><span lang=EN-CA
style='font-size:10.0pt;font-family:Arial;color:#3366FF'>Lower Right (
-67.9990950, 49.9990950) ( 67d59'56.74"W, 49d59'56.74"N)<o:p></o:p></span></font></p>
<p class=MsoNormal><font size=2 color="#3366ff" face=Arial><span lang=EN-CA
style='font-size:10.0pt;font-family:Arial;color:#3366FF'>Center (
-68.1250050, 50.0625000) ( 68d 7'30.02"W, 50d 3'45.00"N)<o:p></o:p></span></font></p>
<p class=MsoNormal><font size=2 color="#3366ff" face=Arial><span lang=EN-CA
style='font-size:10.0pt;font-family:Arial;color:#3366FF'>Band 1 Block=2798x1
Type=Byte, ColorInterp=Undefined<o:p></o:p></span></font></p>
<p class=MsoNormal><font size=2 color="#3366ff" face=Arial><span lang=EN-CA
style='font-size:10.0pt;font-family:Arial;color:#3366FF'> NoData Value=-9999<o:p></o:p></span></font></p>
<p class=MsoNormal><font size=2 color="#3366ff" face=Arial><span lang=EN-CA
style='font-size:10.0pt;font-family:Arial;color:#3366FF'> Metadata:<o:p></o:p></span></font></p>
<p class=MsoNormal><font size=2 color="#3366ff" face=Arial><span lang=EN-CA
style='font-size:10.0pt;font-family:Arial;color:#3366FF'> NBITS=-1<o:p></o:p></span></font></p>
<p class=MsoNormal><font size=2 face=Arial><span lang=EN-CA style='font-size:
10.0pt;font-family:Arial'><o:p> </o:p></span></font></p>
<p class=MsoNormal><font size=2 face=Arial><span lang=EN-CA style='font-size:
10.0pt;font-family:Arial'>That seems to be all right. But when I try to use gdal_translate
: <o:p></o:p></span></font></p>
<p class=MsoNormal><font size=2 face=Arial><span lang=EN-CA style='font-size:
10.0pt;font-family:Arial'><o:p> </o:p></span></font></p>
<p class=MsoNormal><font size=2 color="#3366ff" face=Arial><span lang=EN-CA
style='font-size:10.0pt;font-family:Arial;color:#3366FF'>D:\Apps\FWTools1.0.5>gdal_translate
-of GTiff E:\Data\22m01101.ers E:\Data\22m01<o:p></o:p></span></font></p>
<p class=MsoNormal><font size=2 color="#3366ff" face=Arial><span lang=EN-CA
style='font-size:10.0pt;font-family:Arial;color:#3366FF'>101.tif<o:p></o:p></span></font></p>
<p class=MsoNormal><font size=2 color="#3366ff" face=Arial><span lang=EN-CA
style='font-size:10.0pt;font-family:Arial;color:#3366FF'>Input file size is
2798, 1409<o:p></o:p></span></font></p>
<p class=MsoNormal><font size=2 color="#3366ff" face=Arial><span lang=EN-CA
style='font-size:10.0pt;font-family:Arial;color:#3366FF'>0ERROR 2: CPLCalloc():
Out of memory allocating -348 bytes.<o:p></o:p></span></font></p>
<p class=MsoNormal><font size=2 color="#3366ff" face=Arial><span lang=EN-CA
style='font-size:10.0pt;font-family:Arial;color:#3366FF'><o:p> </o:p></span></font></p>
<p class=MsoNormal><font size=2 color="#3366ff" face=Arial><span lang=EN-CA
style='font-size:10.0pt;font-family:Arial;color:#3366FF'><o:p> </o:p></span></font></p>
<p class=MsoNormal><font size=2 color="#3366ff" face=Arial><span lang=EN-CA
style='font-size:10.0pt;font-family:Arial;color:#3366FF'>This application has
requested the Runtime to terminate it in an unusual way.<o:p></o:p></span></font></p>
<p class=MsoNormal><font size=2 color="#3366ff" face=Arial><span lang=EN-CA
style='font-size:10.0pt;font-family:Arial;color:#3366FF'>Please contact the
application's support team for more information.<o:p></o:p></span></font></p>
<p class=MsoNormal><font size=2 color="#3366ff" face=Arial><span lang=EN-CA
style='font-size:10.0pt;font-family:Arial;color:#3366FF'><o:p> </o:p></span></font></p>
<p class=MsoNormal><font size=2 face=Arial><span lang=EN-CA style='font-size:
10.0pt;font-family:Arial'>Is there something wrong with my command?<o:p></o:p></span></font></p>
<p class=MsoNormal><font size=2 face=Arial><span lang=EN-CA style='font-size:
10.0pt;font-family:Arial'><o:p> </o:p></span></font></p>
<p class=MsoNormal><font size=2 face=Arial><span lang=EN-CA style='font-size:
10.0pt;font-family:Arial'>Thanks<o:p></o:p></span></font></p>
<p class=MsoNormal><font size=2 face=Arial><span lang=EN-CA style='font-size:
10.0pt;font-family:Arial'><o:p> </o:p></span></font></p>
<p class=MsoNormal><font size=2 face=Arial><span lang=EN-CA style='font-size:
10.0pt;font-family:Arial'>Jean-Sébastien Moreau<o:p></o:p></span></font></p>
<p class=MsoNormal><font size=2 face=Arial><span lang=EN-CA style='font-size:
10.0pt;font-family:Arial'><o:p> </o:p></span></font></p>
<p class=MsoNormal><font size=3 face="Times New Roman"><span lang=EN-CA
style='font-size:12.0pt'>Centre d'information topographique de <st1:place
w:st="on"><st1:City w:st="on">Sherbrooke</st1:City></st1:place><br>
Ressources naturelles <st1:place w:st="on"><st1:country-region w:st="on">Canada</st1:country-region></st1:place><br>
2144, rue King Ouest, bureau 010<br>
<st1:place w:st="on"><st1:City w:st="on">Sherbrooke</st1:City></st1:place>
(Québec) J1J 2E8<br>
Tél. : 819-564-5600-ext 295 Téléc. : 819-564-5698<br>
Courrier électronique : jmoreau@RNCan.gc.ca<br>
<br>
Centre for Topographic Information of <st1:City w:st="on"><st1:place w:st="on">Sherbrooke</st1:place></st1:City><br>
Natural Resources <st1:country-region w:st="on"><st1:place w:st="on">Canada</st1:place></st1:country-region><br>
2144, <st1:Street w:st="on"><st1:address w:st="on">King Street West</st1:address></st1:Street>,
<st1:address w:st="on"><st1:Street w:st="on">Suite</st1:Street> 010</st1:address><br>
<st1:place w:st="on"><st1:City w:st="on">Sherbrooke</st1:City>, <st1:State
w:st="on">Quebec</st1:State> <st1:PostalCode w:st="on">J1J 2E8</st1:PostalCode></st1:place><br>
Tel.: 819-564-5600-ext 295 Fax:
819-564-5698<br>
E-mail: jmoreau@NRCan.gc.ca</span></font><font face=Arial><span
lang=EN-CA style='font-family:Arial'><o:p></o:p></span></font></p>
</div>
</body>
</html>