So, using -p "raster" creates far worse distortion in the KML. I'm back to not using it. I get distortion only at the highest zoom levels that way.<br><br><div class="gmail_quote">2009/4/1 Klokan Petr Přidal <span dir="ltr"><<a href="mailto:klokan@klokan.cz">klokan@klokan.cz</a>></span><br>
<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex;">Mano,<br>
<div class="im"><br>
> Thanks for the pointer. So it looks like, right now, there's a bug in<br>
> gdal2tiles, according to Jesse? Any news on when that might be fixed?<br>
<br>
</div>Just use this gdal2tiles.py:<br>
<a href="http://maptiler.googlecode.com/svn/trunk/maptiler/gdal2tiles.py" target="_blank">http://maptiler.googlecode.com/svn/trunk/maptiler/gdal2tiles.py</a><br>
<br>
The issue he is referring is fixed in MapTiler SVN:<br>
<a href="http://code.google.com/p/maptiler/issues/detail?id=9" target="_blank">http://code.google.com/p/maptiler/issues/detail?id=9</a><br>
Commited in maptiler SVN in r17 on Mar 20, 2009.<br>
<br>
I am proposing to fix all known bugs during this summer as part of<br>
Google Summer of Code project, and also implement support for OGC WMTS<br>
standard, publish a stable version of MapTiler<br>
(<a href="http://www.maptiler.org/" target="_blank">http://www.maptiler.org/</a>) and synchronize the code with GDAL SVN.<br>
<font color="#888888"><br>
Klokan<br>
</font><div><div></div><div class="h5"><br>
><br>
> Mano<br>
><br>
> 2009/3/31 Klokan Petr Přidal <<a href="mailto:klokan@klokan.cz">klokan@klokan.cz</a>>:<br>
>> Mano,<br>
>><br>
>> If you would like to have both Google Maps and Google Earth<br>
>> presentation for a global map then you must generate two tile sets,<br>
>> because Google Maps supports only Mercator tiles (EPSG:900913) and<br>
>> Google Earth only geodetic (EPSG:4326).<br>
>><br>
>> GDAL2Tiles has as a default tile profile 'mercator', it means that it<br>
>> will warp your input into Spherical Mercator internally.<br>
>> To create tiles and KML for Google Earth for your EPSG:4326 input data<br>
>> you should use -p "raster".<br>
>><br>
>> From the "gdal2tiles --help":<br>
>><br>
>> -k, --force-kml Generate KML for Google Earth - default for 'geodetic'<br>
>> profile and 'raster' in EPSG:4326. For a dataset with<br>
>> different projection use with caution!<br>
>><br>
>> Detailed description of recommended step by step usage of gdal2tiles<br>
>> for global maps was posted by Jesse Varner<br>
>> from CIRES & NOAA/NGDC, who used gdal2tiles for official presentation<br>
>> of Global magnetic anomaly map EMAG2 (for Google Maps/Earth) at:<br>
>> <a href="http://ngdc.noaa.gov/geomag/data/Google_Maps/EMAG2/index.html" target="_blank">http://ngdc.noaa.gov/geomag/data/Google_Maps/EMAG2/index.html</a><br>
>><br>
>> His post is here:<br>
>> <a href="http://groups.google.com/group/maptiler/msg/fe105e27a62711e4" target="_blank">http://groups.google.com/group/maptiler/msg/fe105e27a62711e4</a><br>
>><br>
>> Best regards,<br>
>><br>
>> Klokan<br>
>><br>
>> On Tue, Mar 31, 2009 at 6:37 PM, Mano Marks <<a href="mailto:mmarks@google.com">mmarks@google.com</a>> wrote:<br>
>>> I'm getting started with gdal2tiles, and I'm getting strange results.<br>
>>><br>
>>> I downloaded a blue marble jpg from NASA:<br>
>>> <a href="http://www.nasa.gov/vision/earth/features/blue_marble.html" target="_blank">http://www.nasa.gov/vision/earth/features/blue_marble.html</a><br>
>>><br>
>>> And I ran the following command lines:<br>
>>><br>
>>> gdal_translate -of VRT -a_srs EPSG:4326 -gcp 0 0 -180 90 -gcp 21600 0<br>
>>> 180 90 -gcp 21600 10800 180 -90 world_200401.jpg bluemarble1.vrt<br>
>>><br>
>>> gdalwarp -of VRT -t_srs EPSG:4326 bluemarble1.vrt bluemarble2.vrt<br>
>>><br>
>>> gdal2tiles -k bluemarble2.vrt<br>
>>><br>
>>> Of course, the last step took awhile.<br>
>>><br>
>>> The Google Maps and OpenLayers output was fine. However, the KML had<br>
>>> some odd results. When loaded directly, it looked fine, but when I<br>
>>> zoomed out, it appeared that what was the equivalent of zoom 0 and 1<br>
>>> the images retain a Mercator projection. Is this a known issue, or did<br>
>>> I do something wrong?<br>
>>><br>
>>> --<br>
>>> Mano Marks<br>
>>> Geo Developer Advocate<br>
>>> Google, Inc.<br>
>>> <a href="mailto:mmarks@google.com">mmarks@google.com</a><br>
>>> <a href="http://twitter.com/ManoMarks" target="_blank">http://twitter.com/ManoMarks</a><br>
>>> _______________________________________________<br>
>>> gdal-dev mailing list<br>
>>> <a href="mailto:gdal-dev@lists.osgeo.org">gdal-dev@lists.osgeo.org</a><br>
>>> <a href="http://lists.osgeo.org/mailman/listinfo/gdal-dev" target="_blank">http://lists.osgeo.org/mailman/listinfo/gdal-dev</a><br>
>>><br>
>><br>
>><br>
>><br>
>> --<br>
>> <a href="http://blog.klokan.cz/" target="_blank">http://blog.klokan.cz/</a><br>
>> <a href="http://www.maptiler.org/" target="_blank">http://www.maptiler.org/</a><br>
>> <a href="http://www.oldmapsonline.org/" target="_blank">http://www.oldmapsonline.org/</a><br>
>><br>
><br>
><br>
><br>
> --<br>
> Mano Marks<br>
> Geo Developer Advocate<br>
> Google, Inc.<br>
> <a href="mailto:mmarks@google.com">mmarks@google.com</a><br>
> <a href="http://twitter.com/ManoMarks" target="_blank">http://twitter.com/ManoMarks</a><br>
><br>
<br>
<br>
<br>
</div></div>--<br>
<div><div></div><div class="h5"><a href="http://blog.klokan.cz/" target="_blank">http://blog.klokan.cz/</a><br>
<a href="http://www.maptiler.org/" target="_blank">http://www.maptiler.org/</a><br>
<a href="http://www.oldmapsonline.org/" target="_blank">http://www.oldmapsonline.org/</a><br>
</div></div></blockquote></div><br><br clear="all"><br>-- <br>Mano Marks<br>Geo Developer Advocate<br><a href="http://twitter.com/ManoMarks">http://twitter.com/ManoMarks</a><br>Join me for Google I/O, Google's biggest Developer Conference, in San Francisco, May 27th and 28th, 2009<br>
<a href="http://code.google.com/events/io/">http://code.google.com/events/io/</a><br><br>