[gdal-dev] gdal_retile: output isn't georeferenced?
Andrew C Aitchison
andrew at aitchison.me.uk
Mon Mar 15 01:21:56 PDT 2021
On Fri, 12 Mar 2021, mhw-at-yg wrote:
> Is it expected that `gdal_retile -of cog -ps 4096 4096 -t myoutdir
> infile.tif` creates files that are not georeferenced?
>
> Using Gdal from QGIS 3.16 on Win10.
>
> ~~~
> $ gdalinfo --version
> GDAL 3.1.4, released 2020/10/20
>
> $ gdalinfo u:.\SPOT6_321_BeaverRiver_08Sep2018_NAD83_YAlbers_01_01.tif.msk
> Driver: GTiff/GeoTIFF
> Files: u:.\SPOT6_321_BeaverRiver_08Sep2018_NAD83_YAlbers_01_01.tif.msk
> Size is 4096, 4096
> Metadata:
> INTERNAL_MASK_FLAGS_1=2
> INTERNAL_MASK_FLAGS_2=2
> INTERNAL_MASK_FLAGS_3=2
> Image Structure Metadata:
> COMPRESSION=DEFLATE
> INTERLEAVE=BAND
> Corner Coordinates:
> Upper Left ( 0.0, 0.0)
> Lower Left ( 0.0, 4096.0)
> Upper Right ( 4096.0, 0.0)
> Lower Right ( 4096.0, 4096.0)
> Center ( 2048.0, 2048.0)
> Band 1 Block=256x256 Type=Byte, ColorInterp=Gray
> ~~~
Is the "main" or "image" file geo-referenced ?
It may be that the .tif.msk mask files are assumed to be the same as
the matching .tif file.
--
Andrew C. Aitchison Kendal, UK
andrew at aitchison.me.uk
More information about the gdal-dev
mailing list