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 2. The Geocaching App

In this chapter, we will build a geocaching app that will initially get geocache points from the Internet and return the coordinates and information on the point closest to a user's location.

We will go through some of the most important steps in every geoprocessing application: we will discuss opening files, reading information, preparing data for analysis, and performing calculations with each object in your data. To achieve this, you will learn how to organize your code with Python and use the resources provided by the language to write consistent applications.

In this chapter, we will start to make use of classes, methods, functions, decorators, and exception handling, which will help us build an application with reusable components and clean code. Don't worry if these terms are new to you; they will be explained in the examples. In short, here's what we will cover:

  • Programming the basic application structures

  • Downloading geocaching data

  • Opening geocaching files...