Search icon CANCEL
Subscription
0
Cart icon
Your Cart (0 item)
Close icon
You have no products in your basket yet
Save more on your purchases! discount-offer-chevron-icon
Savings automatically calculated. No voucher code required.
Arrow left icon
Explore Products
Best Sellers
New Releases
Books
Videos
Audiobooks
Learning Hub
Free Learning
Arrow right icon
Arrow up icon
GO TO TOP
Python GeoSpatial Analysis Essentials

You're reading from   Python GeoSpatial Analysis Essentials Process, analyze, and display geospatial data using Python libraries and related tools

Arrow left icon
Product type Paperback
Published in Jun 2015
Publisher
ISBN-13 9781782174516
Length 200 pages
Edition 1st Edition
Languages
Tools
Arrow right icon
Author (1):
Arrow left icon
Erik Westra Erik Westra
Author Profile Icon Erik Westra
Erik Westra
Arrow right icon
View More author details
Toc

Introducing Mapnik


It is very difficult to make sense of geospatial data without being able to visualize it. The usual way in which spatial data is made visible is by drawing a map—indeed, a map is nothing more than an image created out of spatial data. Mapnik (http://mapnik.org) is a powerful tool for transforming raw geospatial data into a map image.

Mapnik itself is written in C++ but comes with bindings that allow you to access it from Python. Using Python code, you can define the various layers that make up a map, specify the datasources containing the data to be displayed, and then set up the styles which control how the various features are to be drawn.

Mapnik can be a little intimidating when you first start working with it, so let's jump in and get our hands dirty right away. Let's start by installing Mapnik onto your computer and use it to generate a simple map, before delving a bit deeper into how to build and style maps using the Mapnik library.

Installing Mapnik

To install Mapnik...

lock icon The rest of the chapter is locked
Register for a free Packt account to unlock a world of extra content!
A free Packt account unlocks extra newsletters, articles, discounted offers, and much more. Start advancing your knowledge today.
Unlock this book and the full library FREE for 7 days
Get unlimited access to 7000+ expert-authored eBooks and videos courses covering every tech area you can think of
Renews at $19.99/month. Cancel anytime
Banner background image