Installing dependencies on Windows - GitHubRGI/geopackage-python GitHub Wiki

Required Software

In order to generate tiles with gdal2tiles_parallel.py or package tiles with tiles2gpkg_parallel.py on a Windows machine, the following software must first be installed. The order in which you install these software packages is critical!

  1. Python 2.7
  2. GDAL
  3. GDAL optional drivers for MrSID
  4. GDAL bindings for Python
  5. Python Imaging Library (Optional but recommended)

Python 2.7

Download the latest version of Python 2.7 from the following page: https://www.python.org/downloads/

  • Ensure that you choose the correct architecture for your system. Mixing architectures will lead to a broken python environment in most cases! For 32-bit machines, choose the Windows x86 MSI Installer option and on 64-bit machines, choose the Windows x86-64 MSI Installer option.

GDAL

GDAL is the core functionality that is necessary to run the tiling operations. A script named gdal2tiles.py is provided with GDAL that will already perform tiling operations. Unfortunately, this script has not been updated to utilize all CPU cores available to the machine it is running on. Gdal2tiles_parallel.py was created with some improvements to make the tiling operations as fast as possible.

Navigate to http://www.gisinternals.com/sdk and choose the latest stable version of GDAL for your architecture. At this time of this writing (GDAL 1.11), the latest software installers were created with Microsoft Visual C++ (MSVC) 2010:

One there, choose the installers for GDAL core for Python 2.7, GDAL MrSID plugin, and the GDAL Python 2.7 bindings. At the time of this writing (GDAL 1.11), they are named the following:

32-bit

  • gdal-111-1600-core.msi
  • gdal-111-1600-mrsid.msi
  • GDAL-1.11.1.win32-py2.7.msi

64-bit

  • gdal-111-1600-x64-core.msi
  • gdal-111-1600-x64-mrsid.msi
  • GDAL-1.11.0.win32-amd64-py2.7.msi

GDAL Core MUST be installed first, the other two can be installed in any order.

Python Imaging Library

The Python Imaging Library is an optional dependency for tiles2gpkg_parallel.py however it is a good idea to install this module.

Download the latest version of Pillow for Windows machines from: http://www.lfd.uci.edu/~gohlke/pythonlibs/#pillow

32-bit

  • Pillow‑2.6.1.win32‑py2.7.exe

64-bit

  • Pillow‑2.6.1.win‑amd64‑py2.7.exe