[Geoserver-users] WMS layer in Google Earth failed

Hi,

I just started to learn how to setup goeserver in my workstation and publish WMS layers, I can successfully see the WMS layer map in ArcGIS Desktop, ArcGIS Pro and Global Mapper. Please see example from ArcGIS Desktop

But in Google Earth, I keep getting “WMS Capability fetch failed” message. Does anyone know why and how I can fix it?

Thanks,

Daniel

Daniel,

try with the complete GetCapabilities URL.

In your case :

http://2014-0301:8080/geoserver/MEMS/ows?request=GetCapabilities&service=WMS

Try to see if anything comes up with this url in a browser.

Hope this helps.

image001.png

image002.png

···

Envoyé à partir d’Outlook


De : Daniel Yu <dyu@anonymised.com.11085…>
Envoyé : 23 septembre 2021 14:25
À : geoserver-users@lists.sourceforge.net geoserver-users@anonymised.coms.sourceforge.net
Objet : [Geoserver-users] WMS layer in Google Earth failed

Hi,

I just started to learn how to setup goeserver in my workstation and publish WMS layers, I can successfully see the WMS layer map in ArcGIS Desktop, ArcGIS Pro and Global Mapper. Please see example from ArcGIS Desktop

But in Google Earth, I keep getting “WMS Capability fetch failed” message. Does anyone know why and how I can fix it?

Thanks,

Daniel

Hi Olivier,

Yes, I got below and still error in Google Earth.

Thanks,

Daniel

image003.png

image002.png

image001.png

image002.png

···

From: Olivier Gagnon mcnolii@anonymised.com
Sent: September 23, 2021 1:10 PM
To: Daniel Yu dyu@anonymised.com; geoserver-users@anonymised.comorge.net
Subject: Re: WMS layer in Google Earth failed

CAUTION: This email originated from outside of MEMS. Do not click links or open attachments unless you know the content is safe.

Daniel,

try with the complete GetCapabilities URL.

In your case :

http://2014-0301:8080/geoserver/MEMS/ows?request=GetCapabilities&service=WMS

Try to see if anything comes up with this url in a browser.

Hope this helps.

Envoyé à partir d’Outlook


De : Daniel Yu <dyu@anonymised.com>
Envoyé : 23 septembre 2021 14:25
À : geoserver-users@lists.sourceforge.net <geoserver-users@lists.sourceforge.net>
Objet : [Geoserver-users] WMS layer in Google Earth failed

Hi,

I just started to learn how to setup goeserver in my workstation and publish WMS layers, I can successfully see the WMS layer map in ArcGIS Desktop, ArcGIS Pro and Global Mapper. Please see example from ArcGIS Desktop

But in Google Earth, I keep getting “WMS Capability fetch failed” message. Does anyone know why and how I can fix it?

Thanks,

Daniel

in getcapabilities you should have something like…

image/png
application/atom+xml
application/json;type=utfgrid
application/pdf
application/rss+xml
application/vnd.google-earth.kml+xml
application/vnd.google-earth.kml+xml;mode=networklink

see this

https://docs.geoserver.org/latest/en/user/services/wms/googleearth/quickstart.html#direct-access-to-kml

and in google earth try with network link

http://2014-0301:8080/geoserver/wms/kml?layers=MEMS:AER_WELLS_BH

Daniel Yu <dyu@anonymised.com> escreveu no dia quinta, 23/09/2021 à(s) 20:27:

image003.png

image002.png

image001.png

image002.png

···

www.vfonsecaz.pt

Hi Vitor,

Thanks for this.

I can use network link but still need to use IP address.

question.

  • Use network link it actually shows layer in vector format?
  • I found my layer symbol disappear when I zoon in. you know why?

Before zoom in

After zoom in

My style (SLD)

<?xml version="1.0" encoding="ISO-8859-1"?>

<StyledLayerDescriptor version=“1.0.0”

xsi:schemaLocation=http://www.opengis.net/sld StyledLayerDescriptor.xsd

xmlns=http://www.opengis.net/sld

xmlns:ogc=http://www.opengis.net/ogc

xmlns:xlink=http://www.w3.org/1999/xlink

xmlns:xsi=http://www.w3.org/2001/XMLSchema-instance>

Point as graphic

GeoServer SLD Cook Book: Point as graphic

<OnlineResource

xlink:type=“simple”

xlink:href=“well_centre3.png” />

image/png

32

ogc:PropertyNameUWI</ogc:PropertyName>

Arial

12

normal

bold

0.5

-1.5

0

5

#000000

image001.png

image002.png

image003.png

image002.png

image001.png

image002.png

···

From: Vitor Fonseca <vfonsecaz@…84…>
Sent: September 24, 2021 2:45 AM
To: Daniel Yu <dyu@…11085…>
Cc: Olivier Gagnon <mcnolii@…95…>; geoserver-users@lists.sourceforge.net
Subject: Re: [Geoserver-users] WMS layer in Google Earth failed

in getcapabilities you should have something like…

**image/png

**application/atom+xml

**application/json;type=utfgrid

**application/pdf

**application/rss+xml

____application/vnd.google-earth.kml+xml

____application/vnd.google-earth.kml+xml;mode=networklink

see this

https://docs.geoserver.org/latest/en/user/services/wms/googleearth/quickstart.html#direct-access-to-kml

and in google earth try with network link

http://2014-0301:8080/geoserver/wms/kml?layers=MEMS:AER_WELLS_BH

Daniel Yu <dyu@…11085…> escreveu no dia quinta, 23/09/2021 à(s) 20:27:

Hi Olivier,

Yes, I got below and still error in Google Earth.

Thanks,

Daniel

From: Olivier Gagnon <mcnolii@…95…>
Sent: September 23, 2021 1:10 PM
To: Daniel Yu <dyu@…11085…>; geoserver-users@lists.sourceforge.net
Subject: Re: WMS layer in Google Earth failed

CAUTION: This email originated from outside of MEMS. Do not click links or open attachments unless you know the content is safe.

Daniel,

try with the complete GetCapabilities URL.

In your case :

http://2014-0301:8080/geoserver/MEMS/ows?request=GetCapabilities&service=WMS

Try to see if anything comes up with this url in a browser.

Hope this helps.

Envoyé à partir d’Outlook


De : Daniel Yu <dyu@…11085…>
Envoyé : 23 septembre 2021 14:25
À : geoserver-users@lists.sourceforge.net <geoserver-users@lists.sourceforge.net>
Objet : [Geoserver-users] WMS layer in Google Earth failed

Hi,

I just started to learn how to setup goeserver in my workstation and publish WMS layers, I can successfully see the WMS layer map in ArcGIS Desktop, ArcGIS Pro and Global Mapper. Please see example from ArcGIS Desktop

But in Google Earth, I keep getting “WMS Capability fetch failed” message. Does anyone know why and how I can fix it?

Thanks,

Daniel


Geoserver-users mailing list

Please make sure you read the following two resources before posting to this list:

If you want to request a feature or an improvement, also see this: https://github.com/geoserver/geoserver/wiki/Successfully-requesting-and-integrating-new-features-and-improvements-in-GeoServer

Geoserver-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/geoserver-users

www.vfonsecaz.pt

Consider adding the complete URL information: SERVICE=WMS&REQUEST=GETCAPABILITIES&ZVERSION=1.3.0

I expect the other projects filled in these details for you.

image001.png

···


Jody Garnett

Yes network link can be vector format as long as you use a wfs url with output format kml (application%2Fvnd.google-earth.kml%2Bxml)

e.g.
http://<geoserver_url>/ows?SERVICE=WFS&Request=GetFeature&VERSION=1.3.0&TYPENAME=workspace:layer_namet&outputFormat=application%2Fvnd.google-earth.kml%2Bxml

Daniel Yu <dyu@anonymised.com> escreveu no dia sexta, 24/09/2021 à(s) 15:34:

image001.png

image002.png

image003.png

image002.png

image001.png

image002.png

···

www.vfonsecaz.pt