Book Image

Geospatial Development By Example with Python

By : Pablo Carreira
5 (1)
Book Image

Geospatial Development By Example with Python

5 (1)
By: Pablo Carreira

Overview of this book

From Python programming good practices to the advanced use of analysis packages, this book teaches you how to write applications that will perform complex geoprocessing tasks that can be replicated and reused. Much more than simple scripts, you will write functions to import data, create Python classes that represent your features, and learn how to combine and filter them. With pluggable mechanisms, you will learn how to visualize data and the results of analysis in beautiful maps that can be batch-generated and embedded into documents or web pages. Finally, you will learn how to consume and process an enormous amount of data very efficiently by using advanced tools and modern computers’ parallel processing capabilities.
Table of Contents (17 chapters)
Geospatial Development By Example with Python
Credits
About the Author
About the Reviewers
www.PacktPub.com
Preface
Index

Chapter 5. Making Maps

In this chapter, we will start a new application and use it to produce nice maps from vector data.

In order to produce these maps, we will use Mapnik, one of the world's most used mapping packages. The objective is to understand how it works and adapt it to make an easy-to-use mapping application.

In the previous chapters, we produced some very functional classes that abstract geographic data; we will make this app capable of consuming this type of data.

We will cover the following topics:

  • Getting to know Mapnik and see how it works

  • Seeing the differences between pure Python and XML when defining a map

  • Experimenting with different styles

  • Using Python objects as a source of data for Mapnik

  • Abstracting Mapnik into a high-level application