Skip to Content
Mastering Geospatial Analysis with Python
book

Mastering Geospatial Analysis with Python

by Silas Toms, Paul Crickard, Eric van Rees
April 2018
Beginner to intermediate content levelBeginner to intermediate
440 pages
11h 36m
English
Packt Publishing
Content preview from Mastering Geospatial Analysis with Python

Steps from Django to GeoDjango

Within this section, we'll install Django add GeoDjango configurations, and add the required libraries (including the GDAL and OGR) that bring spatial functionality to DjangoInstalling the Django 2 module for Python 3, and configuring the GeoDjango components, depends on a number of steps. These include:

  1. Using pip to install Django 2
  2. Installing and enabling a spatial database (if not already installed)
  3. Installing GDAL/ OGR/PROJ4/GEOS
  4. Configuring the Windows environment variables
  5. Generating a project
  6. Opening settings.py
  7. Adding django.contrib.gis to INSTALLED_APPS
  8. Configuring database settings to point to the spatial database
Become an O’Reilly member and get unlimited access to this title plus top books and audiobooks from O’Reilly and nearly 200 top publishers, thousands of courses curated by job role, 150+ live events each month,
and much more.
Start your free trial

You might also like

Learning Geospatial Analysis with Python

Learning Geospatial Analysis with Python

Joel Lawhead

Publisher Resources

ISBN: 9781788293334Supplemental Content