I have some data with projected in 31300, when I change my wms settings to 4326, there's quite some shift in Google Earth. Made a screenshot at:<br><br><a href="http://img516.imageshack.us/img516/1986/shiftex6.jpg">http://img516.imageshack.us/img516/1986/shiftex6.jpg
</a><br><br>Steven<br><br><br><div class="gmail_quote">On Dec 7, 2007 3:40 PM, Milo van der Linden <<a href="mailto:mlinden@zeelandnet.nl">mlinden@zeelandnet.nl</a>> wrote:<br><blockquote class="gmail_quote" style="border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;">
<div bgcolor="#ffffff" text="#000000">
For wms layers to show up in Google Earth, you generate a
groundoverlay. The projection of the mapfile or layers itself is not so
important, as long as the wms service is able to publis in epsg:4326. <br>
<br>
This means that in your map metadata you need to have something like:<br>
<br>
METADATA<br>
"wms_title" "My WMS map"<br>
"wms_srs" "EPSG:4326 EPSG:28992"<br>
"wms_onlineresource"
<a href="http://www.myserver.com/cgi-bin/mapserv.exe?map=somemap.map" target="_blank">"http://www.myserver.com/cgi-bin/mapserv.exe?map=somemap.map"</a><br>
END<br>
<br>
where you separate the supported projections with spaces.<br>
<br>
<br>
When you create a GroundOverlay, Google generates the following kml
snippet:<br>
<br>
Make sure to add the STYLES= to the end of the request or mapserver
will generate a wrong result (this is for my 5.0 installation)<br>
<br>
<GroundOverlay><br>
<name>Terreincontouren</name><br>
<color>adffffff</color><br>
<Icon><br>
<href><a href="http://www.myserver.com/cgi-bin/mapserv.exe?map=somemap.map&VERSION=1.1.1&REQUEST=GetMap&SRS=EPSG:4326&WIDTH=1024&HEIGHT=1024&LAYERS=aLayer&TRANSPARENT=TRUE&FORMAT=image/png&STYLES=&" target="_blank">
http://www.myserver.com/cgi-bin/mapserv.exe?map=somemap.map&VERSION=1.1.1&REQUEST=GetMap&SRS=EPSG:4326&WIDTH=1024&HEIGHT=1024&LAYERS=aLayer&TRANSPARENT=TRUE&FORMAT=image/png&STYLES=&
</a>;</href><br>
<viewRefreshMode>onStop</viewRefreshMode><br>
</Icon><br>
<LatLonBox><br>
<north>52.43886219516767</north><br>
<south>52.19180808173348</south><br>
<east>5.137624941169889</east><br>
<west>4.652306951338773</west><br>
</LatLonBox><br>
</GroundOverlay><br>
<br>
<br>
<br>
It is also possible to show a mapserver legend in Google Earth with the
following kml snippet:<br>
<br>
<ScreenOverlay><br>
<visibility>1</visibility><br>
<name>Legenda - Percelen</name><br>
<Icon><br>
<href><a href="http://www.myserver.com/cgi-bin/mapserv.exe?map=somemap.map&VERSION=1.1.1&REQUEST=GetLegendGraphic&LAYER=aLayer&Format=image/png" target="_blank">http://www.myserver.com/cgi-bin/mapserv.exe?map=somemap.map&VERSION=1.1.1&REQUEST=GetLegendGraphic&LAYER=aLayer&Format=image/png
</a></href><br>
</Icon><br>
<overlayXY x="0" y="1" xunits="fraction"
yunits="fraction"/><br>
<screenXY x="0" y="1" xunits="fraction"
yunits="fraction"/><br>
<rotationXY x="0.5" y="0.5" xunits="fraction"
yunits="fraction"/><br>
<size x="-1" y="-1" xunits="pixels" yunits="pixels"/><br>
</ScreenOverlay><br>
<br>
<br>
If you embed these snippets in a kml file, you can see what happens.<br>
<br>
<br>
Hans Castorp schreef:
<div><div></div><div class="Wj3C7c"><blockquote type="cite">
<div>
<p><font face="Arial" size="2"><span style="font-size: 10pt; font-family: Arial;">Hi to all,</span></font></p>
<p><font face="Arial" size="2"><span style="font-size: 10pt; font-family: Arial;"> </span></font></p>
<p><font face="Arial" size="2"><span style="font-size: 10pt; font-family: Arial;" lang="EN-GB">It's
possible to visualize wms layers from
mapserver using Google Earth?? I'm trying to do it but I'm always
receiving an error saying that the wms server does not have layer that
google
earth could process. I think this could be something about my map file
configuration. Is there any trick??</span></font></p>
<p><font face="Arial" size="2"><span style="font-size: 10pt; font-family: Arial;" lang="EN-GB"> </span></font></p>
<p><font face="Arial" size="2"><span style="font-size: 10pt; font-family: Arial;" lang="EN-GB">PD: I'm
serving GeoTiff and shape layers.</span></font></p>
<p><font face="Arial" size="2"><span style="font-size: 10pt; font-family: Arial;" lang="EN-GB"> </span></font></p>
<p><font face="Arial" size="2"><span style="font-size: 10pt; font-family: Arial;" lang="EN-GB">Thanks in
advance.</span></font></p>
<p><font face="Arial" size="2"><span style="font-size: 10pt; font-family: Arial;" lang="EN-GB"> </span></font></p>
<p><font face="Arial" size="2"><span style="font-size: 10pt; font-family: Arial;" lang="EN-GB"> </span></font></p>
<div>
<p><font face="Arial" size="2"><span style="font-size: 10pt; font-family: Arial;" lang="EN-GB">Hans Castorp</span></font><span lang="EN-GB"></span></p>
</div>
<p><font face="Times New Roman" size="3"><span style="font-size: 12pt;" lang="EN-GB"> </span></font></p>
</div>
<br>
<p><font size="2">No virus found in this outgoing message.<br>
Checked by AVG Free Edition.<br>
Version: 7.5.503 / Virus Database: 269.16.17/1176 - Release Date:
06/12/2007 23:15<br>
</font> </p>
</blockquote>
<br>
<br>
</div></div><div>-- <br>
<br>
<table border="0" cellpadding="0" cellspacing="0" width="400">
<tbody>
<tr>
<td rowspan="3" align="left" height="0" valign="bottom" width="15"><br>
</td>
<td colspan="2" align="left" height="78" valign="top" width="0">
<p>Milo van der Linden
<br>
<a>skype: milovanderlinden</a><br>
<a href="mailto:mlinden@zeelandnet.nl" target="_blank">mlinden@zeelandnet.nl</a><br>
<a href="mailto:milovanderlinden@gmail.com" target="_blank">milovanderlinden@gmail.com</a><br>
<a href="mailto:milo@3dsite.nl" target="_blank">milo@3dsite.nl</a><br>
<a href="http://www.3dsite.nl" target="_blank">http://www.3dsite.nl</a><br>
</p>
</td>
<td rowspan="3" align="left" height="0" valign="top" width="15"> </td>
<td valign="top" width="300">
<p><span lang="NL">De informatie in dit bericht
reflecteert mijn persoonlijke mening en niet die van een bedrijf of
instantie. Aan de informatie kunnen geen rechten worden ontleend.
Indien dit bericht onderdeel is van een forum, mailing-list of
community dan gelden automatisch de bij het betreffende medium
behorende voorwaarden.</span>
<span lang="EN">The information in this message reflects my
personal opinion and not that of a company or public body. All rights
reserved.If this message is contained in a mailing-list or community,
the rights on the medium are automatically adapted.</span></p>
</td>
</tr>
</tbody>
</table>
</div>
</div>
</blockquote></div><br>