[gdal-dev] gdal2tiles on exported arcgis geotiff

Reflect Thirteen bx_eternal at hotmail.com
Thu Jul 2 14:54:40 EDT 2009


I have a geotiff (exported from arcgis) which has this medata (output from gdalinfo):

Driver: GTiff/GeoTIFF
Files: BasinOverlay.tif
Size is 15488, 9788
Coordinate System is:
GEOGCS["WGS 84",
    DATUM["WGS_1984",
        SPHEROID["WGS 84",6378137,298.2572235630016,
            AUTHORITY["EPSG","7030"]],
        AUTHORITY["EPSG","6326"]],
    PRIMEM["Greenwich",0],
    UNIT["degree",0.0174532925199433],
    AUTHORITY["EPSG","4326"]]
Origin = (-0.001782845184388,0.001173508094395)
Pixel Size = (0.000000224060325,-0.000000224056112)
Metadata:
  AREA_OR_POINT=Area
  TIFFTAG_XRESOLUTION=1200
  TIFFTAG_YRESOLUTION=1200
  TIFFTAG_RESOLUTIONUNIT=2 (pixels/inch)
Image Structure Metadata:
  INTERLEAVE=PIXEL
Corner Coordinates:
Upper Left  (  -0.0017828,   0.0011735) (  0d 0'6.42"W,  0d 0'4.22"N)
Lower Left  (  -0.0017828,  -0.0010196) (  0d 0'6.42"W,  0d 0'3.67"S)
Upper Right (   0.0016874,   0.0011735) (  0d 0'6.07"E,  0d 0'4.22"N)
Lower Right (   0.0016874,  -0.0010196) (  0d 0'6.07"E,  0d 0'3.67"S)
Center      (  -0.0000477,   0.0000770) (  0d 0'0.17"W,  0d 0'0.28"N)

I tried running gdal_translate to change the "Origin" (and reduce the size) and then ran gdal2tiles.py on the resulting geotif but the resulting tiles do not line up correctly. What is the best way to handle this sort of file? Does anyone familiar with arcgis know the best way to export a geotiff so that it is easier to process using gdal2tiles? Below are the commands I ran:

gdal_translate -a_ullr -180 90 180 -90 -outsize 25% 25% BasinOverlay.tif b14.tif

python gdal2tiles.py -z "5" -t "Basing Overlay" -w google -n  b14.tif
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.osgeo.org/pipermail/gdal-dev/attachments/20090702/ba94cd81/attachment.html


More information about the gdal-dev mailing list