[gdal-dev] Construct a VRT such that is sees IMD, RPB, XML files?

Patrick Young patrick.mckendree.young at gmail.com
Fri Dec 7 13:03:03 PST 2018


Well I used gdal_translate to make a VRT directly from the original TIF and
it revealed the answer; Metadata!

<Metadata domain="RPC">
    <MDI key="HEIGHT_OFF">226</MDI>
    <MDI key="HEIGHT_SCALE">501</MDI>
    ...and so on...
  </Metadata>



On Fri, Dec 7, 2018 at 12:40 PM Patrick Young <
patrick.mckendree.young at gmail.com> wrote:

> Hi all,
>
> I'm got some code that builds a VRT out of a bunch of image tiles.  These
> tiles were originally chipped out of a DigitalGlobe 1B GeoTIFF that came
> with extra metadata, specifically gdalinfo reports that its finding a .IMD,
> .RPB, and .XML files along with the TIF itself, and gives me a nice summary
> of the RPCs among other things.
>
> My goal is to get the same behavior (e.g. recognize the RPCs) when I run
> gdalinfo on the VRT.  Is there a field to add to the xml that composes the
> VRT to get the driver to notice this?  My VRT is named with the same prefix
> as all the metadata files, just like the original GeoTIFF, so it has me
> thinking that the GeoTIFF driver is special in looking for these sidecars.
> If I translate the VRT to a GeoTIFF with the same prefix, everything looks
> good.
>
> Thanks for any insights!
> Patrick
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.osgeo.org/pipermail/gdal-dev/attachments/20181207/9b4f5fe1/attachment.html>


More information about the gdal-dev mailing list