"elevation" doesn't respect manually generated SRTM1.vrt file
jollyrogers88 opened this issue · comments
jollyrogers88 commented
I've done the bulk download outside your tool (as advertised) and manually generated a new SRTM1.vrt file with gdalbuildvrt:
<VRTDataset rasterXSize="1292301" rasterYSize="464402">
<SRS>GEOGCS["WGS 84",DATUM["WGS_1984",SPHEROID["WGS 84",6378137,298.257223563,AUTHORITY["EPSG","7030"]],AUTHORITY["EPSG","6326"]],PRIMEM["Greenwich",0],UNIT["degree",0.0174532925199433],AUTHORITY["EPSG","4326"]]</SRS>
<GeoTransform> -1.7900041666666669e+02, 2.7777777777789753e-04, 0.0000000000000000e+00, 7.2000416666666666e+01, 0.0000000000000000e+00, -2.7777777777789753e-04</GeoTransform>
<VRTRasterBand dataType="Int16" band="1">
<NoDataValue>-32767</NoDataValue>
<ColorInterp>Gray</ColorInterp>
<ComplexSource>
<SourceFilename relativeToVRT="1">cache/N41/N41E000.tif</SourceFilename>
<SourceBand>1</SourceBand>
<SourceProperties RasterXSize="3602" RasterYSize="3602" DataType="Int16" BlockXSize="3602" BlockYSize="1" />
<SrcRect xOff="0" yOff="0" xSize="3602" ySize="3602" />
<DstRect xOff="644400" yOff="108000" xSize="3602" ySize="3602" />
<NODATA>-32767</NODATA>
</ComplexSource>
..
But when I e.g. execute eio clip -o Rome-30m-DEM.tif --bounds 12.35 41.8 12.65 42
elevation starts to download N41E012.hgt.gz despite ./cache/N41/N41E012.tif is definitively there and contains the right data (checked with QGIS).
What's my error?
jollyrogers88 commented
I've changed my file structure to
<ComplexSource>
<SourceFilename relativeToVRT="1">./cache/N41E000.tif</SourceFilename>
<SourceBand>1</SourceBand>
<SourceProperties RasterXSize="3602" RasterYSize="3602" DataType="Int16" BlockXSize="3602" BlockYSize="1" />
<SrcRect xOff="0" yOff="0" xSize="3602" ySize="3602" />
<DstRect xOff="644400" yOff="108000" xSize="3602" ySize="3602" />
<NODATA>-32767</NODATA>
</ComplexSource>
but this was fruitless.