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

Summary


In this chapter we saw how Mapnik works and how maps are defined and styled using both Python and XML. Using Mapnik's Python API, it was possible to define the map in XML and then alter it in Python, showing great flexibility for all kinds of needs.

As the app was structured, Mapnik was hidden behind high-level functionalities that enabled us to use the geographic data objects that we created before, allowing the application to filter the data to be displayed in the map.

In the next chapter, we will meet raster data for the first time; we will see how it works and display it in our maps.