[gdal-dev] gdaladdo zoom level not supported
mmfuller
mmfuller at protonmail.com
Wed Oct 21 09:43:14 PDT 2020
I tried to add zoom levels to an mbtiles file using gdaladdo. The mbtiles file was constructed from a large geotiff using gdal_translate.
When I ran gdaladdo, I got an error message about zoom levels:
ERROR 6: zoom_level > 22 not supported
A commenter on stack exchange GIS pointed out that I need to use power-of-two levels.
But they also noted that the error I got is normally for vectors, not rasters.
Also, they felt that the correct message should be "
Only power of two overviews are supported".
What do you think?
FILE CONSTRUCTION STEPS AND DETAILS:
-
construct GTiff from tiff:
gdal_translate -of 'GTiff' -a_srs '+proj=longlat +ellps=WGS84 +datum=WGS84 +no_defs' -a_ullr -90.473134 31.184680 -90.471041 31.182195 'TLTR.tif' 'TLTR_crs.tif'
-
convert to mbtiles format:
gdal_translate 'TLTR_crs.tif' 'TLTR.mbtiles' -of MBTILES
-
add zoom levels:
gdaladdo -r nearest 'TLTR.mbtiles' 12 14 16 18 20 22
Error message:
`ERROR 6: zoom_level > 22 not supported`
Try without explicit zoom levels: (but I did not clear overviews so this may be expected)
gdaladdo -r nearest 'TLTR.mbtiles'
ERROR 6: zoom_level > 22 not supported
Output from gdalinfo for TLTR.tif and TLTR crs.tif:
gdalinfo TLTR.tif
Warning 1: TIFFFetchNormalTag:Incompatible type for "RichTIFFIPTC"; tag ignored
Driver: GTiff/GeoTIFF
Files: TLTR.tif
Size is 21346, 25128
Coordinate System is `'
Metadata:
TIFFTAG_DATETIME=2020:10:14 09:52:37
TIFFTAG_RESOLUTIONUNIT=2 (pixels/inch)
TIFFTAG_SOFTWARE=Adobe Photoshop 21.2 (Macintosh)
TIFFTAG_XRESOLUTION=72
TIFFTAG_YRESOLUTION=72
Image Structure Metadata:
COMPRESSION=LZW
INTERLEAVE=PIXEL
Corner Coordinates:
Upper Left ( 0.0, 0.0)
Lower Left ( 0.0,25128.0)
Upper Right (21346.0, 0.0)
Lower Right (21346.0,25128.0)
Center (10673.0,12564.0)
Band 1 Block=21346x3 Type=Byte, ColorInterp=Red
Mask Flags: PER_DATASET ALPHA
Band 2 Block=21346x3 Type=Byte, ColorInterp=Green
Mask Flags: PER_DATASET ALPHA
Band 3 Block=21346x3 Type=Byte, ColorInterp=Blue
Mask Flags: PER_DATASET ALPHA
Band 4 Block=21346x3 Type=Byte, ColorInterp=Alpha
gdalinfo TLTR_crs.tif
Driver: GTiff/GeoTIFF
Files: TLTR_crs.tif
Size is 21346, 25128
Coordinate System is:
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"]]
Origin = (-90.473134000000002,31.184680000000000)
Pixel Size = (0.000000098051157,-0.000000098893664)
Metadata:
AREA_OR_POINT=Area
TIFFTAG_DATETIME=2020:10:14 09:52:37
TIFFTAG_RESOLUTIONUNIT=2 (pixels/inch)
TIFFTAG_SOFTWARE=Adobe Photoshop 21.2 (Macintosh)
TIFFTAG_XRESOLUTION=72
TIFFTAG_YRESOLUTION=72
Image Structure Metadata:
INTERLEAVE=PIXEL
Corner Coordinates:
Upper Left ( -90.4731340, 31.1846800) ( 90d28'23.28"W, 31d11' 4.85"N)
Lower Left ( -90.4731340, 31.1821950) ( 90d28'23.28"W, 31d10'55.90"N)
Upper Right ( -90.4710410, 31.1846800) ( 90d28'15.75"W, 31d11' 4.85"N)
Lower Right ( -90.4710410, 31.1821950) ( 90d28'15.75"W, 31d10'55.90"N)
Center ( -90.4720875, 31.1834375) ( 90d28'19.52"W, 31d11' 0.38"N)
Band 1 Block=21346x1 Type=Byte, ColorInterp=Red
Mask Flags: PER_DATASET ALPHA
Band 2 Block=21346x1 Type=Byte, ColorInterp=Green
Mask Flags: PER_DATASET ALPHA
Band 3 Block=21346x1 Type=Byte, ColorInterp=Blue
Mask Flags: PER_DATASET ALPHA
Band 4 Block=21346x1 Type=Byte, ColorInterp=Alpha
(base) dogmat2 gdal results of transformations:
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.osgeo.org/pipermail/gdal-dev/attachments/20201021/ee89ca50/attachment-0001.html>
More information about the gdal-dev
mailing list