[gdal-dev] gdalbuildvrt problem with heterogenous band characteristics

Casper Børgesen (CABO) CABO at NIRAS.DK
Tue Jul 31 06:46:20 PDT 2012


What do you mean by manually? I run gdalbuildvrt using the command line, so I don’t understand how it can be done more manually ☺

gdalbuildvrt myfile.vrt file1.tif file2.tif file3.tif file4.tif

I have tried using an old version of gdalinfo (1.7.0) and it gives tells me that my first 3 bands in the old file contains a mask flag:

Mask Flags: PER_DATASET ALPHA

This flag is not present in the 3 new files. Could this be the reason?

Btw. my normal version of gdal is 1.9.

Regards, Casper

From: Chaitanya kumar CH [mailto:chaitanya.ch at gmail.com]
Sent: 31. juli 2012 15:30
To: Casper Børgesen (CABO)
Cc: gdal-dev at lists.osgeo.org
Subject: Re: [gdal-dev] gdalbuildvrt problem with heterogenous band characteristics

Casper,

This message should not appear unless there is a difference in the band data type, colour interpretation or the band order.
Can you check if manually adding the old file works?
On Mon, Jul 30, 2012 at 11:01 PM, Casper Børgesen (CABO) <CABO at niras.dk<mailto:CABO at niras.dk>> wrote:
Hi!

I’m trying to create a VRT file from 4 GeoTIFFs using gdalbuildvrt. Three of the GeoTIFFs are created using OrthoVista and the last one created with an earlier version of the same program. When I run gdalbuildvrt I get the following error message when I try to add the file created by the early version:

Warning 6: gdalbuildvrt does not support heterogenous band characteristics. Skipping...

Running gdalinfo on the 4 files I see only a difference in the metadata section (and of course in the coordinates).
In the following is the band information from two of the files:

[From new version]
Band 1 Block=6250x20 Type=Byte, ColorInterp=Red
  Overviews: 1024x1024
Band 2 Block=6250x20 Type=Byte, ColorInterp=Green
  Overviews: 1024x1024
Band 3 Block=6250x20 Type=Byte, ColorInterp=Blue
  Overviews: 1024x1024
Band 4 Block=6250x20 Type=Byte, ColorInterp=Undefined
  Overviews: 1024x1024

[From earlier version]
Band 1 Block=6250x20 Type=Byte, ColorInterp=Red
  Overviews: 1024x1024
Band 2 Block=6250x20 Type=Byte, ColorInterp=Green
  Overviews: 1024x1024
Band 3 Block=6250x20 Type=Byte, ColorInterp=Blue
  Overviews: 1024x1024
Band 4 Block=6250x20 Type=Byte, ColorInterp=Undefined
  Overviews: 1024x1024

To me they seem identical and I can display them both using QGis 1.8. I guess that the difference is deeper inside the TIFFs than gdalinfo informs me about – what can I do to avoid this problem?

Regards Casper

_______________________________________________
gdal-dev mailing list
gdal-dev at lists.osgeo.org<mailto:gdal-dev at lists.osgeo.org>
http://lists.osgeo.org/mailman/listinfo/gdal-dev



--
Best regards,
Chaitanya kumar CH.

+91-9494447584
17.2416N 80.1426E
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.osgeo.org/pipermail/gdal-dev/attachments/20120731/d100f882/attachment-0001.html>


More information about the gdal-dev mailing list