Visualizing data on a globe

Ever since the release of Google Earth, spinning globe applications are a useful and popular method of geographical exploration. QGIS has an experimental plugin called QGIS Globe that is similar to Google Earth; however, it is extremely unstable. In this recipe, we'll display a layer in Google Earth.

Getting ready

You will need to use the QGIS plugin manager to install the mmqgis plugin.

Make sure you have Google Earth installed from https://www.google.com/earth/.

You will also need the following dataset from a previous recipe. It is a zipped directory called ufo, which you should uncompress to your qgis_data directory:

https://github.com/GeospatialPython/Learn/raw/master/ufo.zip

How to do it...

We will load our layer and ...

Get QGIS Python Programming Cookbook - Second Edition now with the O’Reilly learning platform.

O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.