Make a globe-like azimuthal orthographic projection

Sometimes, you want to provide a globe-like view on a static GIS map. Azimuthal orthographic projections can warp a layer containing countries to represent a round globe. In this recipe, we'll present data in one of these projections, named Sphere Azimuthal Equidistant.

Getting ready

You will need the Clip to Hemisphere plugin. Use the QGIS plugin manager to install it. The plugin will appear in the Processing Toolbox. You will also need to download the following zipped shapefile and extract it to your qgis_data directory:

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

How to do it...

We are going to load the countries shapefile and clip it by centering the map on Africa 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.