O'Reilly logo

Geospatial Development By Example with Python by Pablo Carreira

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

Creating the Map Maker app

Now we will prepare an environment that is capable of using this data source. We are going to adapt the previous experiments into building blocks for the application and put them inside an application class, just as we did with the Geocaching app.

First let's organize the folder and files.

  1. Create a new package called map_maker inside your Chapter5 folder. To do this, right-click on the folder and chose New | Python Package.
  2. Move the my_datasource.py file to the map_make folder (drag and drop it).
  3. Copy the map_style.xml and map_functions.py files that are inside the mapnik_experiments folder to the map_maker folder.
  4. Rename map_style.xml to styles.xml.
  5. In the Chapter5 root, create a file named map_maker_app.py. The complete ...

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