Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

"elevation" doesn't respect manually generated SRTM1.vrt file #24

Open
jollyrogers88 opened this issue Jul 26, 2017 · 1 comment
Open

Comments

@jollyrogers88
Copy link

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
Copy link
Author

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.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants