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

Integrating new functionality into the application


In Chapter 2, The Geocaching App, we developed the application so that it could find points close to your location. However, the data was organized differently inside the application; although it was a very efficient way of handling data, it became very hard for us to understand how to perform operations on this data.

Through abstraction, we implemented a new form of data representation—one that is very intuitive and easy to use.

Now, we will change the application so that it can use this new type of data to perform its functions and also to aggregate the new capability of combining multiple sources of data.

Take a look at the GeocachingApp and PointCollection classes; you may notice that they have some parts that look similar to each other. Both of them store data and have methods to open data.

At this point, with little modification, if we transfer methods from one class to another, we could end up with a functional application, and that's...