Create a globe in QGIS¶
I followed this tutorial by Steven Bernard to create a globe from a world map in QGIS.
The steps are straightforward. The fiddly bit was getting the line endings and indentation correct which are essential in Python, so I copied the text out and created a gist with line endings preserved:
This can then be called by opening the Python console as per the video, and typing:
import globe_projection_processing_qgis.py as circle circle.doClip(iface, x, y)
y with your latitude and longitude (NOT
longitude and latitude, note the order) respectively.
The result is a beautiful globe when appropriately styled: