O'Reilly logo

Python Geospatial Development - Second Edition 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

Chapter 8. Using Python and Mapnik to Generate Maps

Because geospatial data is almost impossible to understand until it is displayed, the creation of maps to visually represent spatial data is an extremely important topic. In this chapter we will look at Mapnik, a powerful Python library for generating maps out of geospatial data.

This chapter will cover the following:

  • Underlying concepts used by Mapnik to generate maps
  • Creating a simple map using the contents of a shapefile
  • Different data sources that Mapnik supports
  • Using rules, filters, and styles to control the map generation process
  • Using "symbolizers" to draw lines, polygons, labels, points, and raster images onto your map
  • Defining the colors used on a map
  • Working with maps and layers
  • Setting your ...

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