O'Reilly logo

Python Geospatial Analysis Essentials by Erik Westra

Stay ahead with the world's most comprehensive technology and business learning platform.

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, tutorials, and more.

Start Free Trial

No credit card required

Learning Mapnik

Now that you've seen what Mapnik can do and have some idea of how Mapnik works, let's look more deeply at some of the other aspects of the Mapnik library. We will be covering datasources, symbolizers, and map rendering in this section of the chapter.

Datasources

Each map layer is associated with a datasource (a subclass of mapnik.Datasource) that provides the data to be displayed on the map. The various types of datasources are made available through C++ plugins, which are enabled or disabled when Mapnik is compiled. To see if a given type of datasource is available, you check to see if the associated plugin has been installed into your copy of Mapnik. You can see a list of the installed plugins (and therefore, the supported datasources) ...

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, interactive tutorials, and more.

Start Free Trial

No credit card required