<html dir="ltr">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1">
<style type="text/css">P {
        WHITE-SPACE: pre-wrap
}
LI {
        WHITE-SPACE: pre-wrap
}
</style><style id="owaParaStyle">P {
        MARGIN-BOTTOM: 0px; MARGIN-TOP: 0px
}
</style>
</head>
<body style="FONT-SIZE: 9pt; FONT-FAMILY: 'Sans Serif'; FONT-WEIGHT: 400; FONT-STYLE: normal" fPStyle="1" ocsi="0">
<div style="direction: ltr;font-family: Tahoma;color: #000000;font-size: 10pt;">
<p>Hi Even,</p>
<p> </p>
<p>I rebuilt GDAL with your code change in <font size="2">DIMAP driver. And it didn't work: gdalinfo returns the same output.</font></p>
<div DanaPrelude="1">
<p> </p>
<p><font size="2">I then ran "gdalwarp -rpc -to RPC_HEIGHT=0 c:/<span style="FONT-SIZE: 11pt; FONT-FAMILY: "Arial","sans-serif"; LINE-HEIGHT: 115%; mso-fareast-font-family: 宋体; mso-fareast-theme-font: minor-fareast; mso-ansi-language: EN-CA; mso-fareast-language: ZH-CN; mso-bidi-language: AR-SA"><font face="Tahoma">DIM_SPOT7_P_201511221101122_SEN_1.XML
 c:/test.tif </font></span></font></p>
<p><font size="2" face="Tahoma"><span style="FONT-SIZE: 11pt; FONT-FAMILY: "Arial","sans-serif"; LINE-HEIGHT: 115%; mso-fareast-font-family: 宋体; mso-fareast-theme-font: minor-fareast; mso-ansi-language: EN-CA; mso-fareast-language: ZH-CN; mso-bidi-language: AR-SA">gdalwarp
 worked. </span></font></p>
<p><font size="2" face="Tahoma"><span style="FONT-SIZE: 11pt; FONT-FAMILY: "Arial","sans-serif"; LINE-HEIGHT: 115%; mso-fareast-font-family: 宋体; mso-fareast-theme-font: minor-fareast; mso-ansi-language: EN-CA; mso-fareast-language: ZH-CN; mso-bidi-language: AR-SA"></span></font> </p>
<p><font size="2" face="Tahoma"><span style="FONT-SIZE: 11pt; FONT-FAMILY: "Arial","sans-serif"; LINE-HEIGHT: 115%; mso-fareast-font-family: 宋体; mso-fareast-theme-font: minor-fareast; mso-ansi-language: EN-CA; mso-fareast-language: ZH-CN; mso-bidi-language: AR-SA">That
 being said, I still would like to see the <font face="Tahoma">DIMAP driver updated so that I don't have to run gdalwarp. So I can simply drag and drop the *.XML onto OpenEV viewer.</font></span></font></p>
<div style="FONT-SIZE: 13px; FONT-FAMILY: Tahoma">
<div class="BodyFragment"><font size="2">
<div class="PlainText"> </div>
<div class="PlainText">Thanks,<br>
Shawn<br>
</div>
</font></div>
</div>
</div>
<div style="FONT-SIZE: 16px; FONT-FAMILY: Times New Roman; COLOR: #000000">
<hr tabindex="-1">
<div id="divRpF522473" style="DIRECTION: ltr"><font color="#000000" size="2" face="Tahoma"><b>From:</b> Even Rouault [even.rouault@spatialys.com]<br>
<b>Sent:</b> January-13-18 10:15 AM<br>
<b>To:</b> gdal-dev@lists.osgeo.org<br>
<b>Cc:</b> Gong, Shawn<br>
<b>Subject:</b> Re: [gdal-dev] SPOT7 DIMAP driver for tiled datasets has no lat/lon<br>
</font><br>
</div>
<div></div>
<div>
<p style="MARGIN: 0px; TEXT-INDENT: 0px">Shawn,</p>
<p style="MARGIN: 0px; TEXT-INDENT: 0px"> </p>
<p style="MARGIN: 0px; TEXT-INDENT: 0px">the driver shouldn't likely report the geotransform in that case, but just the RPC. You can try to warp it with gdalwarp -rpc</p>
<p style="MARGIN: 0px; TEXT-INDENT: 0px"> </p>
<p style="MARGIN: 0px; TEXT-INDENT: 0px">I've blindly pushed a untested fix in trunk so that the geotransform is not reported in your case:</p>
<p style="MARGIN: 0px; TEXT-INDENT: 0px">https://trac.osgeo.org/gdal/changeset/41264</p>
<p style="MARGIN: 0px; TEXT-INDENT: 0px"> </p>
<p style="MARGIN: 0px; TEXT-INDENT: 0px"> </p>
<p style="MARGIN: 0px; TEXT-INDENT: 0px">Even</p>
<p style="MARGIN: 0px; TEXT-INDENT: 0px"> </p>
<p style="MARGIN: 0px; TEXT-INDENT: 0px">-- </p>
<p style="MARGIN: 0px; TEXT-INDENT: 0px">Spatialys - Geospatial professional services</p>
<p style="MARGIN: 0px; TEXT-INDENT: 0px">http://www.spatialys.com</p>
</div>
</div>
</div>
</body>
</html>