<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN">
<HTML xmlns="http://www.w3.org/TR/REC-html40" xmlns:o =
"urn:schemas-microsoft-com:office:office" xmlns:w =
"urn:schemas-microsoft-com:office:word" xmlns:st1 =
"urn:schemas-microsoft-com:office:smarttags"><HEAD>
<META http-equiv=Content-Type content="text/html; charset=iso-8859-1">
<META content="MSHTML 6.00.2800.1561" name=GENERATOR><o:SmartTagType
name="PostalCode"
namespaceuri="urn:schemas-microsoft-com:office:smarttags"></o:SmartTagType><o:SmartTagType
name="State"
namespaceuri="urn:schemas-microsoft-com:office:smarttags"></o:SmartTagType><o:SmartTagType
name="Street"
namespaceuri="urn:schemas-microsoft-com:office:smarttags"></o:SmartTagType><o:SmartTagType
name="country-region"
namespaceuri="urn:schemas-microsoft-com:office:smarttags"></o:SmartTagType><o:SmartTagType
name="address"
namespaceuri="urn:schemas-microsoft-com:office:smarttags"></o:SmartTagType><o:SmartTagType
name="City" namespaceuri="urn:schemas-microsoft-com:office:smarttags"
downloadurl="http://www.5iamas-microsoft-com:office:smarttags"></o:SmartTagType><o:SmartTagType
name="place" namespaceuri="urn:schemas-microsoft-com:office:smarttags"
downloadurl="http://www.5iantlavalamp.com/"></o:SmartTagType><!--[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 vLink=purple link=blue bgColor=#ffffff>
<DIV>
<DIV><FONT size=2>Jean-Sébastien,</FONT></DIV>
<DIV><FONT size=2></FONT> </DIV>
<DIV><FONT size=2> GDAL does not support .ers files
directly. However, since most .ers header files reference a data
file of type "BIL" it is possible to hand craft an ESRI .hdr file header (which
GDAL does support) to reference the the BIL file. And as the .hdr header
does not include a coordinate system definition, you would need to add a
"-a_srs" to your gdal_translate command line.</FONT></DIV>
<DIV><FONT size=2></FONT> </DIV>
<DIV><FONT size=2>Brent Fraser<BR>GeoAnalytic Inc<BR>Calgary, Alberta,
Canada</FONT></DIV>
<DIV><FONT size=2></FONT> </DIV></DIV>
<BLOCKQUOTE
style="PADDING-RIGHT: 0px; PADDING-LEFT: 5px; MARGIN-LEFT: 5px; BORDER-LEFT: #000000 2px solid; MARGIN-RIGHT: 0px">
<DIV style="FONT: 10pt arial">----- Original Message ----- </DIV>
<DIV
style="BACKGROUND: #e4e4e4; FONT: 10pt arial; font-color: black"><B>From:</B>
<A title=Moreau href="mailto:Moreau">Moreau</A> ; <A title=jmoreau@nrcan.gc.ca
href="mailto:jmoreau@nrcan.gc.ca">Jean-Sébastien</A> </DIV>
<DIV style="FONT: 10pt arial"><B>To:</B> <A title=gdal-dev@lists.maptools.org
href="mailto:gdal-dev@lists.maptools.org">gdal-dev@lists.maptools.org</A>
</DIV>
<DIV style="FONT: 10pt arial"><B>Sent:</B> Thursday, September 07, 2006 9:47
AM</DIV>
<DIV style="FONT: 10pt arial"><B>Subject:</B> [Gdal-dev] converting from .ers
to .tif</DIV>
<DIV><BR></DIV>
<DIV class=Section1>
<P class=MsoNormal><FONT face=Arial size=2><SPAN
style="FONT-SIZE: 10pt; FONT-FAMILY: Arial">Hi,<o:p></o:p></SPAN></FONT></P>
<P class=MsoNormal><FONT face=Arial size=2><SPAN
style="FONT-SIZE: 10pt; FONT-FAMILY: Arial"><o:p> </o:p></SPAN></FONT></P>
<P class=MsoNormal><FONT face=Arial size=2><SPAN lang=EN-CA
style="FONT-SIZE: 10pt; 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 face=Arial size=2><SPAN lang=EN-CA
style="FONT-SIZE: 10pt; FONT-FAMILY: Arial"><o:p> </o:p></SPAN></FONT></P>
<P class=MsoNormal><FONT face=Arial color=#3366ff size=2><SPAN lang=EN-CA
style="FONT-SIZE: 10pt; COLOR: #3366ff; FONT-FAMILY: Arial">D:\Apps\FWTools1.0.5>
gdalinfo E:\Data\22k01102.ers<o:p></o:p></SPAN></FONT></P>
<P class=MsoNormal><FONT face=Arial color=#3366ff size=2><SPAN lang=EN-CA
style="FONT-SIZE: 10pt; COLOR: #3366ff; FONT-FAMILY: Arial">Driver: EHdr/ESRI
.hdr Labelled<o:p></o:p></SPAN></FONT></P>
<P class=MsoNormal><FONT face=Arial color=#3366ff size=2><SPAN lang=EN-CA
style="FONT-SIZE: 10pt; COLOR: #3366ff; FONT-FAMILY: Arial">Size is 2798,
1409<o:p></o:p></SPAN></FONT></P>
<P class=MsoNormal><FONT face=Arial color=#3366ff size=2><SPAN lang=EN-CA
style="FONT-SIZE: 10pt; COLOR: #3366ff; FONT-FAMILY: Arial">Coordinate System
is:<o:p></o:p></SPAN></FONT></P>
<P class=MsoNormal><FONT face=Arial color=#3366ff size=2><SPAN lang=EN-CA
style="FONT-SIZE: 10pt; COLOR: #3366ff; FONT-FAMILY: Arial">GEOGCS["NAD83",<o:p></o:p></SPAN></FONT></P>
<P class=MsoNormal><FONT face=Arial color=#3366ff size=2><SPAN lang=EN-CA
style="FONT-SIZE: 10pt; COLOR: #3366ff; FONT-FAMILY: Arial">
DATUM["North_American_Datum_1983",<o:p></o:p></SPAN></FONT></P>
<P class=MsoNormal><FONT face=Arial color=#3366ff size=2><SPAN lang=EN-CA
style="FONT-SIZE: 10pt; COLOR: #3366ff; FONT-FAMILY: Arial">
SPHEROID["GRS 1980",6378137,298.257222101,<o:p></o:p></SPAN></FONT></P>
<P class=MsoNormal><FONT face=Arial color=#3366ff size=2><SPAN lang=EN-CA
style="FONT-SIZE: 10pt; COLOR: #3366ff; FONT-FAMILY: Arial">
AUTHORITY["EPSG","7019"]],<o:p></o:p></SPAN></FONT></P>
<P class=MsoNormal><FONT face=Arial color=#3366ff size=2><SPAN lang=EN-CA
style="FONT-SIZE: 10pt; COLOR: #3366ff; FONT-FAMILY: Arial">
TOWGS84[0,0,0,0,0,0,0],<o:p></o:p></SPAN></FONT></P>
<P class=MsoNormal><FONT face=Arial color=#3366ff size=2><SPAN lang=EN-CA
style="FONT-SIZE: 10pt; COLOR: #3366ff; FONT-FAMILY: Arial">
AUTHORITY["EPSG","6269"]],<o:p></o:p></SPAN></FONT></P>
<P class=MsoNormal><FONT face=Arial color=#3366ff size=2><SPAN lang=EN-CA
style="FONT-SIZE: 10pt; COLOR: #3366ff; FONT-FAMILY: Arial">
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 face=Arial color=#3366ff size=2><SPAN lang=EN-CA
style="FONT-SIZE: 10pt; COLOR: #3366ff; FONT-FAMILY: Arial">
AUTHORITY["EPSG","8901"]],<o:p></o:p></SPAN></FONT></P>
<P class=MsoNormal><FONT face=Arial color=#3366ff size=2><SPAN lang=EN-CA
style="FONT-SIZE: 10pt; COLOR: #3366ff; FONT-FAMILY: Arial">
UNIT["degree",0.0174532925199433,<o:p></o:p></SPAN></FONT></P>
<P class=MsoNormal><FONT face=Arial color=#3366ff size=2><SPAN lang=EN-CA
style="FONT-SIZE: 10pt; COLOR: #3366ff; FONT-FAMILY: Arial">
AUTHORITY["EPSG","9108"]],<o:p></o:p></SPAN></FONT></P>
<P class=MsoNormal><FONT face=Arial color=#3366ff size=2><SPAN lang=EN-CA
style="FONT-SIZE: 10pt; COLOR: #3366ff; FONT-FAMILY: Arial">
AXIS["Lat",NORTH],<o:p></o:p></SPAN></FONT></P>
<P class=MsoNormal><FONT face=Arial color=#3366ff size=2><SPAN lang=EN-CA
style="FONT-SIZE: 10pt; COLOR: #3366ff; FONT-FAMILY: Arial">
AXIS["Long",EAST],<o:p></o:p></SPAN></FONT></P>
<P class=MsoNormal><FONT face=Arial color=#3366ff size=2><SPAN lang=EN-CA
style="FONT-SIZE: 10pt; COLOR: #3366ff; FONT-FAMILY: Arial">
AUTHORITY["EPSG","4269"]]<o:p></o:p></SPAN></FONT></P>
<P class=MsoNormal><FONT face=Arial color=#3366ff size=2><SPAN lang=EN-CA
style="FONT-SIZE: 10pt; COLOR: #3366ff; FONT-FAMILY: Arial">Origin =
(-68.250915,50.125905)<o:p></o:p></SPAN></FONT></P>
<P class=MsoNormal><FONT face=Arial color=#3366ff size=2><SPAN lang=EN-CA
style="FONT-SIZE: 10pt; COLOR: #3366ff; FONT-FAMILY: Arial">Pixel Size =
(0.00009000,-0.00009000)<o:p></o:p></SPAN></FONT></P>
<P class=MsoNormal><FONT face=Arial color=#3366ff size=2><SPAN lang=EN-CA
style="FONT-SIZE: 10pt; COLOR: #3366ff; FONT-FAMILY: Arial">Corner
Coordinates:<o:p></o:p></SPAN></FONT></P>
<P class=MsoNormal><FONT face=Arial color=#3366ff size=2><SPAN lang=EN-CA
style="FONT-SIZE: 10pt; COLOR: #3366ff; FONT-FAMILY: Arial">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 face=Arial color=#3366ff size=2><SPAN lang=EN-CA
style="FONT-SIZE: 10pt; COLOR: #3366ff; FONT-FAMILY: Arial">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 face=Arial color=#3366ff size=2><SPAN lang=EN-CA
style="FONT-SIZE: 10pt; COLOR: #3366ff; FONT-FAMILY: Arial">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 face=Arial color=#3366ff size=2><SPAN lang=EN-CA
style="FONT-SIZE: 10pt; COLOR: #3366ff; FONT-FAMILY: Arial">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 face=Arial color=#3366ff size=2><SPAN lang=EN-CA
style="FONT-SIZE: 10pt; COLOR: #3366ff; FONT-FAMILY: Arial">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 face=Arial color=#3366ff size=2><SPAN lang=EN-CA
style="FONT-SIZE: 10pt; COLOR: #3366ff; FONT-FAMILY: Arial">Band 1
Block=2798x1 Type=Byte, ColorInterp=Undefined<o:p></o:p></SPAN></FONT></P>
<P class=MsoNormal><FONT face=Arial color=#3366ff size=2><SPAN lang=EN-CA
style="FONT-SIZE: 10pt; COLOR: #3366ff; FONT-FAMILY: Arial"> NoData
Value=-9999<o:p></o:p></SPAN></FONT></P>
<P class=MsoNormal><FONT face=Arial color=#3366ff size=2><SPAN lang=EN-CA
style="FONT-SIZE: 10pt; COLOR: #3366ff; FONT-FAMILY: Arial">
Metadata:<o:p></o:p></SPAN></FONT></P>
<P class=MsoNormal><FONT face=Arial color=#3366ff size=2><SPAN lang=EN-CA
style="FONT-SIZE: 10pt; COLOR: #3366ff; FONT-FAMILY: Arial">
NBITS=-1<o:p></o:p></SPAN></FONT></P>
<P class=MsoNormal><FONT face=Arial size=2><SPAN lang=EN-CA
style="FONT-SIZE: 10pt; FONT-FAMILY: Arial"><o:p> </o:p></SPAN></FONT></P>
<P class=MsoNormal><FONT face=Arial size=2><SPAN lang=EN-CA
style="FONT-SIZE: 10pt; 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 face=Arial size=2><SPAN lang=EN-CA
style="FONT-SIZE: 10pt; FONT-FAMILY: Arial"><o:p> </o:p></SPAN></FONT></P>
<P class=MsoNormal><FONT face=Arial color=#3366ff size=2><SPAN lang=EN-CA
style="FONT-SIZE: 10pt; COLOR: #3366ff; FONT-FAMILY: Arial">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 face=Arial color=#3366ff size=2><SPAN lang=EN-CA
style="FONT-SIZE: 10pt; COLOR: #3366ff; FONT-FAMILY: Arial">101.tif<o:p></o:p></SPAN></FONT></P>
<P class=MsoNormal><FONT face=Arial color=#3366ff size=2><SPAN lang=EN-CA
style="FONT-SIZE: 10pt; COLOR: #3366ff; FONT-FAMILY: Arial">Input file size is
2798, 1409<o:p></o:p></SPAN></FONT></P>
<P class=MsoNormal><FONT face=Arial color=#3366ff size=2><SPAN lang=EN-CA
style="FONT-SIZE: 10pt; COLOR: #3366ff; FONT-FAMILY: Arial">0ERROR 2:
CPLCalloc(): Out of memory allocating -348 bytes.<o:p></o:p></SPAN></FONT></P>
<P class=MsoNormal><FONT face=Arial color=#3366ff size=2><SPAN lang=EN-CA
style="FONT-SIZE: 10pt; COLOR: #3366ff; FONT-FAMILY: Arial"><o:p> </o:p></SPAN></FONT></P>
<P class=MsoNormal><FONT face=Arial color=#3366ff size=2><SPAN lang=EN-CA
style="FONT-SIZE: 10pt; COLOR: #3366ff; FONT-FAMILY: Arial"><o:p> </o:p></SPAN></FONT></P>
<P class=MsoNormal><FONT face=Arial color=#3366ff size=2><SPAN lang=EN-CA
style="FONT-SIZE: 10pt; COLOR: #3366ff; FONT-FAMILY: Arial">This application
has requested the Runtime to terminate it in an unusual
way.<o:p></o:p></SPAN></FONT></P>
<P class=MsoNormal><FONT face=Arial color=#3366ff size=2><SPAN lang=EN-CA
style="FONT-SIZE: 10pt; COLOR: #3366ff; FONT-FAMILY: Arial">Please contact the
application's support team for more information.<o:p></o:p></SPAN></FONT></P>
<P class=MsoNormal><FONT face=Arial color=#3366ff size=2><SPAN lang=EN-CA
style="FONT-SIZE: 10pt; COLOR: #3366ff; FONT-FAMILY: Arial"><o:p> </o:p></SPAN></FONT></P>
<P class=MsoNormal><FONT face=Arial size=2><SPAN lang=EN-CA
style="FONT-SIZE: 10pt; FONT-FAMILY: Arial">Is there something wrong with my
command?<o:p></o:p></SPAN></FONT></P>
<P class=MsoNormal><FONT face=Arial size=2><SPAN lang=EN-CA
style="FONT-SIZE: 10pt; FONT-FAMILY: Arial"><o:p> </o:p></SPAN></FONT></P>
<P class=MsoNormal><FONT face=Arial size=2><SPAN lang=EN-CA
style="FONT-SIZE: 10pt; FONT-FAMILY: Arial">Thanks<o:p></o:p></SPAN></FONT></P>
<P class=MsoNormal><FONT face=Arial size=2><SPAN lang=EN-CA
style="FONT-SIZE: 10pt; FONT-FAMILY: Arial"><o:p> </o:p></SPAN></FONT></P>
<P class=MsoNormal><FONT face=Arial size=2><SPAN lang=EN-CA
style="FONT-SIZE: 10pt; FONT-FAMILY: Arial">Jean-Sébastien
Moreau<o:p></o:p></SPAN></FONT></P>
<P class=MsoNormal><FONT face=Arial size=2><SPAN lang=EN-CA
style="FONT-SIZE: 10pt; FONT-FAMILY: Arial"><o:p> </o:p></SPAN></FONT></P>
<P class=MsoNormal><FONT face="Times New Roman" size=3><SPAN lang=EN-CA
style="FONT-SIZE: 12pt">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>
<P>
<HR>
<P></P>_______________________________________________<BR>Gdal-dev mailing
list<BR>Gdal-dev@lists.maptools.org<BR>http://lists.maptools.org/mailman/listinfo/gdal-dev</BLOCKQUOTE></BODY></HTML>