[gdal-dev] newb with gdal vrt file

Korver, Mark mkorver at amazon.com
Thu Dec 19 14:58:20 PST 2013


I am seeing the following error when trying to run a check on a new vrt that I created.

u at ip:/mnt/tx$ gdal_translate -of GTiff -b 1 -outsize 2% 2% utmzone_15_index.vrt utm15overview.tif
Input file size is 246390, 271201
0ERROR 4: Failed to open /mnt/tx/naip12_nc-cir_1m_3093_33_2_20120522.jp2.
u at ip:/mnt/tx$

I also tried specifying bands with -b 1 -b 2 -b 3, same error.

This is a vrt that points at 4 band jp2 files.  When I run gdal_translate directly on naip12_nc-cir_1m_3093_33_2_20120522.jp2 I don't have a problem.

I used the following command to generate the vrt.
gdalbuildvrt -input_file_list /mnt/tx/utmzone15.lst /mnt/tx/utmzone_15_index.vrt

there are 4 references to the file that it errors on in the vrt
cat utmzone_15_index.vrt | grep naip12_nc-cir_1m_3093_33_2_20120522
      <SourceFilename relativeToVRT="1">naip12_nc-cir_1m_3093_33_2_20120522.jp2</SourceFilename>
      <SourceFilename relativeToVRT="1">naip12_nc-cir_1m_3093_33_2_20120522.jp2</SourceFilename>
      <SourceFilename relativeToVRT="1">naip12_nc-cir_1m_3093_33_2_20120522.jp2</SourceFilename>
      <SourceFilename relativeToVRT="1">naip12_nc-cir_1m_3093_33_2_20120522.jp2</SourceFilename>

I suspect I just don't understand something about how I should build the vrt in the first place, and that it has something to do with bands.
I would appreciate if someone would point out what I have wrong.

You can see the vrt file here
http://korver-geodata.s3.amazonaws.com/utmzone_15_index.vrt?AWSAccessKeyId=AKIAJVGZCMETHRONYTUQ&Expires=1398979666&Signature=zVPjulOwuqD8TRULQ%2bLb%2f8Q8xJA%3d

The jp2 that it stops on is here.
http://korver-geodata.s3.amazonaws.com/naip/tx/2012/naip12_nc-cir_1m_3093_33_2_20120522.jp2?AWSAccessKeyId=AKIAJVGZCMETHRONYTUQ&Expires=1401918601&Signature=cY7CtKQcAkMkh%2bDtLnVHiSSDULI%3d

------------------------------------ 
Mark Korver
Education & Government Solutions Architect
Amazon Web Services 
o: 206.765.4745 | m: 206.669.3557






More information about the gdal-dev mailing list