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 discussed important concepts related to code organization and data manipulation. This was accomplished by writing code with an increasing level of abstraction until we had a class with high-level functionality.

First, we wrote utility functions in order to automate tasks and prepare the data to be processed. Some of these functions were simple abstractions over the OGR library, which were made to avoid unnecessary code repetition.

Then, we wrote methods in a class representing the application. These methods take care of performing sequences of operations to make an application work.

Finally, we presented the foundation of how to perform mathematical operations over the elements of data. We wrote a very efficient method that calculates the distance for a list of elements.

In the next chapter, we will improve our data abstraction and make it possible for the application to combine multiple sources of data.