[gdal-dev] baseline tiff and rpb file

Even Rouault even.rouault at spatialys.com
Fri Apr 10 13:37:43 PDT 2015


Le vendredi 10 avril 2015 21:56:30, Ivan Lucena a écrit :
> Hi there,
> 
> The documentation says:
> 
> "GDAL can read and write the RPCCoefficientTag as described in the
> RPCs in GeoTIFF proposed extension. The tag is written only for
> files created with the default profile GDALGeoTIFF. For other profiles, a
> .RPB file is created. In GDAL data model, the RPC coefficients are stored
> into the RPC metadata domain. For more details, see the RPC Georeferencing
> RFC.
> If .RPB or _RPC.TXT files are found, they will be used to read the RPCs,
> even if the RPCCoefficientTag tag is set."
> [http://www.gdal.org/frmt_gtiff.html]
> 
> But there is no way to export the RPC metadata into the .tif.aux.xml file,
> like with other drivers.
> 
> I tried to turn off the create-option RPB but that doesn't work but It
> creates the .RPB file anyway.
> 
> $ gdal_translate -of gtiff <source dataset> output.tif -co profile=beseline
> -co RPB=no $ ls
> output.tif
> output.RPB
> 
> That woks fine with PNG/JPEG/BMP
> 
> $ gdal_translate -of png <source dataset> output.png
> $ ls
> output.png
> output.png.aux.xml
> 
> Is that how it suppose to be or is it a bug? I mean, by entering -co RPB=no
> GTIFF should create a  .aux.xml like other drivers do. Right?

Hi Ivan

Yes was a bug. I've just fixed it trunk (r28883). We have a non-trivial logic 
to decide how/when/if writing RPC information...

Even

-- 
Spatialys - Geospatial professional services
http://www.spatialys.com


More information about the gdal-dev mailing list