Child pages
  • WMS in Google Earth

Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.

Table of contents

Table of Contents

Add a WMS layer via the Google Earth user interface

Image Modified

Image Modified

Image Modified

Image Modified

Image Modified

Add a WMS layer by editing a kml file

If you save the WMS layer you created via the GUI, you can save that to a separate *.kml file. IF you save as a *.kmz, that is simply a zipped *.kml. You can now edit the *.kml in an ASCII edit such as notepad, wordpad or textpad, to see what the syntax is for showing a WMS layer in Google Earth.

Image Modified

Once saved, you will see that kml uses a so-called GroundOverlay element.

...

Mastering WMS performance by editing a kml file

With the previous manual editing of kml files, you can add any WMS to your Google Earth. However, often you will not see nice WMS images, but a 'request in progress' arrow.

Image Modified

You can prevent this by switching of the automatic updating of WMS, and simply download the WMS image and refer to a local file, or use WMS as a means to refer to images as if they were static images on the web. You can do this by making sure

...

Note that the WMS image still needs to be request once, so initially you still see the 'request in progress' arrow. If you wan to reuse the image, you can also request the image yourselves in a web browser, save it, and point to it locally with the href element.

Mastering WMS appearance by editing a kml file

In a WMS url there are some optional argument, like time and elevation. GIS clients like Google Earth by default use the default value for these dimensions. For temporal data, usually the last time step is shown only, for instance in this WMS of the Dutch KNMI rain radar. When you edit a kml, you can insert on-default values for these parameters. In addition, you can specify better values for non-standard extensions like COLORSCALERANGE.