Hi Even, Thank you very much for fixing that. Those options are a little trick. I understand.
So now what is the default to deal with RPC on a baseline tiff (-co profile=baseline) is: a) Create the RPC on a .tif.aux.xml if there is a "RPB=NO" and when there is no RPB. - That means that for baseline Tiff files the RPC goes to a RPC by default. b) Create the RPC on a .tif.aux.xml only if there is a "RPB=NO". - That means that RPC is not the default. That behavior is more compatible with other "basic" formats. I guess. Anyway, can we backport that to 1.11 and 1.10? Thanks a lot. Ivan > From: [email protected] > To: [email protected] > Subject: Re: [gdal-dev] baseline tiff and rpb file > Date: Fri, 10 Apr 2015 22:37:43 +0200 > CC: [email protected] > > 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
_______________________________________________ gdal-dev mailing list [email protected] http://lists.osgeo.org/mailman/listinfo/gdal-dev
