Sign In Start Free Trial
Account

Add to playlist

Create a Playlist

Modal Close icon
You need to login to use this feature.
  • Book Overview & Buying Geospatial Development By Example with Python
  • Table Of Contents Toc
  • Feedback & Rating feedback
Geospatial Development By Example with Python

Geospatial Development By Example with Python

By : Pablo Carreira
5 (4)
close
close
Geospatial Development By Example with Python

Geospatial Development By Example with Python

5 (4)
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 (12 chapters)
close
close
11
Index

Conventions

In this book, you will find a number of text styles that distinguish between different kinds of information. Here are some examples of these styles and an explanation of their meaning.

Code words in text, database table names, folder names, filenames, file extensions, pathnames, dummy URLs, user input, and Twitter handles are shown as follows: "A Python package is a directory containing one or more Python files (that is, modules) plus one __init__.py file."

A block of code is set as follows:

import ogr
# Open the shapefile and get the first layer.
datasource = ogr.Open("../data/world_borders_simple.shp") 
layer = datasource.GetLayerByIndex(0)
print("Number of features: {}".format(layer.GetFeatureCount()))

When we wish to draw your attention to a particular part of a code block, the relevant lines or items are set in bold:

if __name__ == '__main__':
    gdal.PushErrorHandler('CPLQuietErrorHandler')
    vector_data = PointCollection("../data/geocaching.gpx")
    vector_data.print_information()

Any command-line input or output is written as follows:

Collecting django
  Downloading Django-1.9-py2.py3-none-any.whl (6.6MB)
    100% |################################| 6.6MB 43kB/s
Installing collected packages: django
Successfully installed django-1.9

New terms and important words are shown in bold. Words that you see on the screen, for example, in menus or dialog boxes, appear in the text like this: "Proceed with the default options by clicking on the Next button."

Note

Warnings or important notes appear in a box like this.

Tip

Tips and tricks appear like this.

Unlock full access

Continue reading for free

A Packt free trial gives you instant online access to our library of over 7000 practical eBooks and videos, constantly updated with the latest in tech
bookmark search playlist font-size

Change the font size

margin-width

Change margin width

day-mode

Change background colour

Close icon Search
Country selected

Close icon Your notes and bookmarks

Delete Bookmark

Modal Close icon
Are you sure you want to delete it?
Cancel
Yes, Delete