I am using gdal2tiles.py to render map tiles of some data.
The file I use is generated by combining a .tif and .tfw using gdal_translate XX.tif XXn.tif
Whenever I open up the file in QGIS, I see all the data:
Next, I create tiles by gdal2tiles.py -p geodetic --s_srs "+proj=longlat +datum=WGS84 +no_defs" --srcnodata=0 final.tif
and add it to my website, but half of this file is rendered. (I’ve already adjusted Leaflet to use TMS indexing.)
gdalinfo dump:
Driver: GTiff/GeoTIFF
Files: XXn.tif
Size is 3600, 1800
Coordinate System is `'
Metadata:
TIFFTAG_DATETIME=2015:05:01 21:05:52
TIFFTAG_DOCUMENTNAME=XX.tif
TIFFTAG_IMAGEDESCRIPTION=IDL TIFF file
TIFFTAG_RESOLUTIONUNIT=2 (pixels/inch)
TIFFTAG_SOFTWARE=IDL 8.3, Exelis Visual Information Solutions, Inc.
TIFFTAG_XRESOLUTION=100
TIFFTAG_YRESOLUTION=100
Image Structure Metadata:
INTERLEAVE=BAND
Corner Coordinates:
Upper Left ( 0.0, 0.0)
Lower Left ( 0.0, 1800.0)
Upper Right ( 3600.0, 0.0)
Lower Right ( 3600.0, 1800.0)
Center ( 1800.0, 900.0)
Any ideas? Is this a projection issue? I haven’t worked with tif files before so I may be wrongly invoking one of these commands. I’ve also tried using gdalwarp
on the file and rendering it with the above command for gdal2tiles and I still get the same issue.