I'm trying to create a VRT file from a GeoTIFF file using the following command:
gdalbuildvrt.exe "C:\Temp\3533.vrt" "C:\Temp\3533.tiff"
However it returns this error:
Warning 6: gdalbuildvrt does not support ungeoreferenced image. Skipping C:\Temp\3533.tiff
I then inspected the file's metadata:
gdalinfo "C:\Temp\3533.tiff"
Which confirmed it was georeferenced:
Driver: GTiff/GeoTIFF
Files: C:\Temp\3533.tiff
Size is 256, 256
GCP Projection =
GEOGCRS["WGS 84",
DATUM["World Geodetic System 1984",
ELLIPSOID["WGS 84",6378137,298.257223563,
LENGTHUNIT["metre",1]]],
PRIMEM["Greenwich",0,
ANGLEUNIT["degree",0.0174532925199433]],
CS[ellipsoidal,2],
AXIS["latitude",north,
ORDER[1],
ANGLEUNIT["degree",0.0174532925199433]],
AXIS["longitude",east,
ORDER[2],
ANGLEUNIT["degree",0.0174532925199433]],
ID["EPSG",4326]]
Data axis to CRS axis mapping: 2,1
GCP[ 0]: Id=1, Info=
(0,0) -> (130.517578125,-15.7076627695835,0)
GCP[ 1]: Id=2, Info=
(256,0) -> (130.60546875,-15.7076627695835,0)
GCP[ 2]: Id=3, Info=
(256,256) -> (130.60546875,-15.7922535703624,0)
GCP[ 3]: Id=4, Info=
(0,256) -> (130.517578125,-15.7922535703624,0)
Metadata:
AREA_OR_POINT=Area
Image Structure Metadata:
INTERLEAVE=PIXEL
Corner Coordinates:
Upper Left ( 0.0, 0.0)
Lower Left ( 0.0, 256.0)
Upper Right ( 256.0, 0.0)
Lower Right ( 256.0, 256.0)
Center ( 128.0, 128.0)
Band 1 Block=256x10 Type=Byte, ColorInterp=Red
Band 2 Block=256x10 Type=Byte, ColorInterp=Green
Band 3 Block=256x10 Type=Byte, ColorInterp=Blue
Is the GeoTIFF missing something that is required by gdalbuildvrt.exe?
Corner Coordinates
are not map coordinates, they're image/pixel coordinates. You couldgdalwarp
to vrt using the stored GCPs gdal.org/programs/gdalwarp.html