[gdal-dev] gdal2tiles strangeness

Mano Marks mmarks at google.com
Tue Mar 31 12:37:26 EDT 2009


I'm getting started with gdal2tiles, and I'm getting strange results.

I downloaded a blue marble jpg from NASA:
http://www.nasa.gov/vision/earth/features/blue_marble.html

And I ran the following command lines:

gdal_translate -of VRT -a_srs EPSG:4326 -gcp 0 0 -180 90 -gcp 21600 0
180 90 -gcp 21600 10800 180 -90 world_200401.jpg bluemarble1.vrt

gdalwarp -of VRT -t_srs EPSG:4326 bluemarble1.vrt bluemarble2.vrt

gdal2tiles -k bluemarble2.vrt

Of course, the last step took awhile.

The Google Maps and OpenLayers output was fine. However, the KML had
some odd results. When loaded directly, it looked fine, but when I
zoomed out, it appeared that what was the equivalent of zoom 0 and 1
the images retain a Mercator projection. Is this a known issue, or did
I do something wrong?

-- 
Mano Marks
Geo Developer Advocate
Google, Inc.
mmarks at google.com
http://twitter.com/ManoMarks


More information about the gdal-dev mailing list