WMS & Google Earth

May 2, 2011 at 1:31 PM


I'm trying to use the sharpmap wms server (with the sample wms code first) in google earth (winform application first and web api next) and I've some troubles.

When I select the WMS Server, Google earth show this message : WMS Capability Fetch Failed.

I try with other wms server and I don't have any troubles (like http://geoservices.brgm.fr/geologie ie).

I modified the sharpmap wms server because the version of wms request expected in sharpmap is only 1.3.0 and google send a 1.1.1 request to avoid the exception. With this modification (I just deleted the test on the version number), the wms server answer to google earth but GE doesn't seems to understand the answer.


Any Idea?



May 2, 2011 at 9:47 PM

Try viewing the raw http communication with a debugging proxy and see if you find any clues. Try http://www.fiddler2.com/fiddler2/ 

good luck jd 

May 3, 2011 at 6:34 AM

can you try to replicate the call to getcapabilities in a browser, and see if the call works

May 3, 2011 at 6:51 AM

I tried with a brother and the server send me a well formated answer but google earth doesnt seems to understand it.

I also  add breakpoint to the code and when google earth call the wms server, there is a valid answer from the wms server. I think there is a missing information or a tag problem somewhere that google earth can need but not the others wms clients.

May 3, 2011 at 1:52 PM

Maybe its the version of sharpmap's WMS server that does not play well with Google Earth. You can try and apply peacenlove's patch 7721 and see if that works.

Hth FObermaier

May 3, 2011 at 1:57 PM
Edited May 3, 2011 at 2:59 PM

Thanks I will try this patch.

As I can see, there is an implementation of 1.1.1 getcapabilities version which is used by google earth, maybe it will do the trick.

 EDIT: ok with that patch, google earth can see all the layer I have inside the wms using the getcapabilities (from now I cant render it but I think it's not a big problem)