Skip to content

Using a .vrt - Cant load the geotiffs #20

@sweco-sekrsv

Description

@sweco-sekrsv

When running from a vrt file I get errors like:
ERROR 4: merged_9_3_cog.tif: No such file or directory

The vrt file and the geotiff files are in the same directory under ctod\ctod\files
See screenshot below. Any ideas?

Here is my vrt file:

<VRTDataset rasterXSize="167163" rasterYSize="85101">
  <SRS dataAxisToSRSAxisMapping="2,1">GEOGCS["WGS 84",DATUM["WGS_1984",SPHEROID["WGS 84",6378137,298.257223563,AUTHORITY["EPSG","7030"]],AUTHORITY["EPSG","6326"]],PRIMEM["Greenwich",0,AUTHORITY["EPSG","8901"]],UNIT["degree",0.0174532925199433,AUTHORITY["EPSG","9122"]],AXIS["Latitude",NORTH],AXIS["Longitude",EAST],AUTHORITY["EPSG","4326"]]</SRS>
  <GeoTransform>  1.6721191406249773e+01,  1.0844199888167833e-05,  0.0000000000000000e+00,  5.9534912109375028e+01,  0.0000000000000000e+00, -1.0844199888167833e-05</GeoTransform>
  <VRTRasterBand dataType="Float32" band="1">
    <NoDataValue>-9999</NoDataValue>
    <ColorInterp>Gray</ColorInterp>
    <ComplexSource>
      <SourceFilename relativeToVRT="1">merged_9_2_cog.tif</SourceFilename>
      <SourceBand>1</SourceBand>
      <SourceProperties RasterXSize="18432" RasterYSize="10240" DataType="Float32" BlockXSize="256" BlockYSize="256" />
      <SrcRect xOff="0" yOff="0" xSize="18432" ySize="10240" />
      <DstRect xOff="147913.531914894" yOff="19249.0212765951" xSize="18235.914893617" ySize="10131.0638297872" />
      <NODATA>-9999</NODATA>
    </ComplexSource>
    <ComplexSource>
      <SourceFilename relativeToVRT="1">merged_9_3_cog.tif</SourceFilename>
      <SourceBand>1</SourceBand>
      <SourceProperties RasterXSize="18432" RasterYSize="9216" DataType="Float32" BlockXSize="256" BlockYSize="256" />
      <SrcRect xOff="0" yOff="0" xSize="18432" ySize="9216" />
      <DstRect xOff="146900.425531915" yOff="28366.9787234036" xSize="18235.914893617" ySize="9117.95744680851" />
      <NODATA>-9999</NODATA>
    </ComplexSource>
  </VRTRasterBand>
  <OverviewList resampling="nearest">2 4 8 16</OverviewList>
</VRTDataset>

Image

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions