Login   |      Register
English    中文


Tutorial for Python 3 in Open Source GIS

Tutorial for Python 3 in Open Source GIS

In the era of knowledge economy and economic globalization, geospatial information is the strategic information resource of modern society, and geospatial information industry has become an important part of modern knowledge economy.

The development of open source GIS is relatively early, and the technical system is now relatively complete. It has been developed in data processing, mapping, and web applications, and has applications in foreign schools, research institutions, and businesses. However, in China, due to insufficient publicity, there is relatively little understanding of open source GIS from school to enterprise. As the promotion organization of China’s open source GIS, OSGeo China Chapter is now only promoted by several technology enthusiasts.

This tutorial introduces the application of Python language in open source GIS from the perspective of application development and based on the author’s several years of work experience. Hope to be able to take this opportunity, so that open source GIS can be applied, and further promote the concept and technology of open source GIS.

This tutorial focuses on the processing, analysis and mapping of spatial data as the main line. In the selection of content, to the current most classic, commonly used class library, the purpose is to give beginners a systematic explanation of the basic concepts. Because Python is limited when choosing a topic, it relies heavily on the existing Python’s class libraries and programs in terms of the choice of content, which can somehow undermine the integrity of the main line, and, in addition, when introducing different class libraries and programs, it will inevitably be subject to existing knowledge and terminology.

The content of this tutorial is suitable for geographic information students, researchers, developers to read. As an application book, some data is used in the tutorial, and there is code, these resources can be downloaded from the website, and the content on the site will be updated accordingly. The code in the tutorial has been tested to run in a mainstream Linux operating system, and most of the Windows system can also be run.

One more point to make it clear:

This tutorial is written in languages of Latex + Python 3, and then Latex is converted to reStructuredText format.

There are no pictures in the source code for this tutorial, and the pictures in the tutorial are all generated from the code.

All the code in this tutorial is maintained using unit tests to ensure that the code works correctly. The test environment is Debian 9 and Ubuntu 18.04.


  • 1 Software Installation and Environment Configuration
  • 1 OGR introduction