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

Next steps

While the shapeToMap.py program has been kept deliberately simple to make it easier to understand, there is a lot that can be done to improve this program and make it more useful. You might like to try challenging yourself by implementing the following new features:

  • Add an optional labelHalo entry to each map layer, which is used to draw a halo around the label text.
  • Add a labelPlacement entry to the map layer, to make it easy to control the label placement options.
  • Add a labelAllowOverlap entry to the map layer, which controls whether or not the labels are allowed to overlap.
  • Add a filter entry to the map layer, which is used to build a mapnik.Filter() expression to limit the set of features displayed within the map layer.
  • Add an option ...

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