Using Mapserver as a WMS server with Google Earth
Miller Joseph
miller_joseph at BAH.COM
Thu Sep 1 07:03:28 PDT 2005
There is a PHP script at this site for integrating WMS with Google
Earth:
http://chris.narx.net/?p=13
Just wanted to pass along what else I needed to do to make it work
properly with Mapserver. Google Earth does not support interlaced PNGs
so the following outputformat needs to be defined in the map file:
OUTPUTFORMAT
NAME PNG24
DRIVER "GD/PNG"
MIMETYPE "image/png"
EXTENSION PNG
IMAGEMODE RGBA
TRANSPARENT ON
FORMATOPTION "INTERLACE=NO"
END
WMS gets should include a FORMAT=image/png in the request. Also make
sure that Google Earth is set to refresh after each draw and that should
do it.
Just a heads up,
Joe Miller
More information about the MapServer-users
mailing list