<html>
<head>
<style><!--
.hmmessage P
{
margin:0px;
padding:0px
}
body.hmmessage
{
font-size: 12pt;
font-family:Calibri
}
--></style></head>
<body class='hmmessage'><div dir='ltr'>Hi Even,<br><br>Thank you very much for fixing that. Those options are a little trick. I understand.<br><br>So now what is the default to deal with RPC on a baseline tiff (-co profile=baseline) is:<br><br>a) Create the RPC on a .tif.aux.xml if there is a "RPB=NO" and when there is no RPB.<br><br>- That means that for baseline Tiff files the RPC goes to a RPC by default. <br><br>b) Create the RPC on a .tif.aux.xml only if there is a "RPB=NO".<br><br>- That means that RPC is not the default. That behavior is more compatible with other "basic" formats. I guess.<br><br>Anyway, can we backport that to 1.11 and 1.10?<br><br>Thanks a lot.<br><br>Ivan<br><br><div>> From: even.rouault@spatialys.com<br>> To: gdal-dev@lists.osgeo.org<br>> Subject: Re: [gdal-dev] baseline tiff and rpb file<br>> Date: Fri, 10 Apr 2015 22:37:43 +0200<br>> CC: lucena_ivan@hotmail.com<br>> <br>> Le vendredi 10 avril 2015 21:56:30, Ivan Lucena a écrit :<br>> > Hi there,<br>> > <br>> > The documentation says:<br>> > <br>> > "GDAL can read and write the RPCCoefficientTag as described in the<br>> > RPCs in GeoTIFF proposed extension. The tag is written only for<br>> > files created with the default profile GDALGeoTIFF. For other profiles, a<br>> > .RPB file is created. In GDAL data model, the RPC coefficients are stored<br>> > into the RPC metadata domain. For more details, see the RPC Georeferencing<br>> > RFC.<br>> > If .RPB or _RPC.TXT files are found, they will be used to read the RPCs,<br>> > even if the RPCCoefficientTag tag is set."<br>> > [http://www.gdal.org/frmt_gtiff.html]<br>> > <br>> > But there is no way to export the RPC metadata into the .tif.aux.xml file,<br>> > like with other drivers.<br>> > <br>> > I tried to turn off the create-option RPB but that doesn't work but It<br>> > creates the .RPB file anyway.<br>> > <br>> > $ gdal_translate -of gtiff <source dataset> output.tif -co profile=beseline<br>> > -co RPB=no $ ls<br>> > output.tif<br>> > output.RPB<br>> > <br>> > That woks fine with PNG/JPEG/BMP<br>> > <br>> > $ gdal_translate -of png <source dataset> output.png<br>> > $ ls<br>> > output.png<br>> > output.png.aux.xml<br>> > <br>> > Is that how it suppose to be or is it a bug? I mean, by entering -co RPB=no<br>> > GTIFF should create a .aux.xml like other drivers do. Right?<br>> <br>> Hi Ivan<br>> <br>> Yes was a bug. I've just fixed it trunk (r28883). We have a non-trivial logic <br>> to decide how/when/if writing RPC information...<br>> <br>> Even<br>> <br>> -- <br>> Spatialys - Geospatial professional services<br>> http://www.spatialys.com<br></div> </div></body>
</html>