Im using the following to try to produce a tms tileset:
gdalbuildvrt test.vrt *.tif
gdal2tiles -p raster --zoom=0-6 test.vrt out
Two tifs work fine, more than that and it seems to miscompute the resolution and i end up with tiles that have a small image top left with 3/4 of the tile empty
gdalinfo shows:
PROJCS["Transverse Mercator; New Zealand Geodetic Datum 2000; GRS80",
GEOGCS[,
DATUM["unknown",
SPHEROID["GRS 1980",6378137,298.2572221010002,
AUTHORITY["EPSG","7019"]]],
PRIMEM["Greenwich",0],
UNIT[,0.0174532925199433]],
PROJECTION["Transverse_Mercator"],
PARAMETER["latitude_of_origin",0],
PARAMETER["central_meridian",173],
PARAMETER["scale_factor",0.9996],
PARAMETER["false_easting",1600000],
PARAMETER["false_northing",10000000],
UNIT["metre",1,
AUTHORITY["EPSG","9001"]]]
Origin = (1419997.883500000000000,5154002.116499999500000)
Pixel Size = (4.233000000000000,-4.233000000000000)
Metadata:
TIFFTAG_IMAGEDESCRIPTION=Composite
TIFFTAG_XRESOLUTION=300
TIFFTAG_YRESOLUTION=300
TIFFTAG_RESOLUTIONUNIT=2 (pixels/inch)
AREA_OR_POINT=Area
Image Structure Metadata:
INTERLEAVE=PIXEL
Corner Coordinates:
Upper Left ( 1419997.884, 5154002.116) (170d45'51.96"E, 43d44'42.58"S)
Lower Left ( 1419997.884, 5118000.451) (170d45' 8.17"E, 44d 4' 8.61"S)
Upper Right ( 1444003.227, 5154002.116) (171d 3'44.60"E, 43d45' 2.17"S)
Lower Right ( 1444003.227, 5118000.451) (171d 3' 6.65"E, 44d 4'28.43"S)
Center ( 1432000.555, 5136001.284) (170d54'27.89"E, 43d54'35.81"S)
Band 1 Block=5671x17 Type=Byte, ColorInterp=Red
Band 2 Block=5671x17 Type=Byte, ColorInterp=Green
Band 3 Block=5671x17 Type=Byte, ColorInterp=Blue
Do i need to manually specify the resolution and if so how?