From f9379221b797763a263d4ef24f5cdb9d2bb4090e Mon Sep 17 00:00:00 2001
From: Julien Michel <julien.michel@c-s.fr>
Date: Fri, 23 Feb 2007 15:51:41 +0000
Subject: [PATCH] Ajout du support du format Imagine ERDAS.

---
 Code/IO/otbGDALImageIO.cxx | 2 ++
 1 file changed, 2 insertions(+)

diff --git a/Code/IO/otbGDALImageIO.cxx b/Code/IO/otbGDALImageIO.cxx
index 5d08369039..6add105f53 100755
--- a/Code/IO/otbGDALImageIO.cxx
+++ b/Code/IO/otbGDALImageIO.cxx
@@ -1088,6 +1088,8 @@ std::string GDALImageIO::TypeConversion(std::string name)
 			extGDAL="GTiff";
 	else if ((extension=="hdr")||(extension=="HDR"))
 			extGDAL="ENVI";
+	else if ((extension=="img")||(extension=="IMG"))
+	  extGDAL="HFA";
 //Pas PNG car BUG !!
 //	else if ((extension=="png")||(extension=="PNG"))
 //			extGDAL="PNG";
-- 
GitLab