The initial setup

The beginning of the program is to import statements followed by the Python logging module. The logging module provides a more robust way to track and log the program status than simple print statements. In this part of the program, we configure it as follows:

from xml.dom import minidom import json import urllib.request import urllib.parse import urllib.error import math import time import logging import numpy as np import srtm # Python 3 version: http://git.io/vl5Ls import sys from pygooglechart import SimpleLineChart from pygooglechart import Axis import fpdf try: import Image import ImageFilter import ImageEnhance import ImageDraw except: from PIL import Image from PIL import ImageFilter from PIL import ImageEnhance from PIL ...

Get Learning Geospatial Analysis with Python - 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.