How to Troubleshoot Apps for the Modern Connected Worker
Python and GIS
1. Python and GIS
Nobody expects Python in maps!
Andrii V. Mishkovskyi
January 30, 2010
Andrii V. Mishkovskyi () Python and GIS January 30, 2010 1 / 28
2. GIS stands for...
Geographic
Information
System
Andrii V. Mishkovskyi () Python and GIS January 30, 2010 2 / 28
3. Maps and map services
Tiles
Routing
Geocoding
Staticmaps
Andrii V. Mishkovskyi () Python and GIS January 30, 2010 3 / 28
4. Geolocation
GPS Navigators
Geotagging (Flickr, Twitter, GeoRSS)
Andrii V. Mishkovskyi () Python and GIS January 30, 2010 4 / 28
5. And also
Historical mapping
Geocaching
Augmented reality
Andrii V. Mishkovskyi () Python and GIS January 30, 2010 5 / 28
6. GIS involves...
Math (analytic geometry)
Computer graphics (rendering)
Databases (GiST, OpenGIS spec)
Andrii V. Mishkovskyi () Python and GIS January 30, 2010 6 / 28
7. Python advantages
Clean language
Lots of existing modules
Easy interaction with C libraries
Andrii V. Mishkovskyi () Python and GIS January 30, 2010 7 / 28
8. Shapely
Wrapper over GEOS library
Basic geometries
Geometry collections
Functions for all geometry operations
(intersection, equality, etc.)
Andrii V. Mishkovskyi () Python and GIS January 30, 2010 8 / 28
9.
10. NumPy
Lots of array operations
Best way of converting binary data
For example, hillshading or heatmaps
Andrii V. Mishkovskyi () Python and GIS January 30, 2010 10 / 28
11.
12. PyProj
Pyrex wrapper over PROJ.4
Forward and reverse projections
Geodetic projections
Andrii V. Mishkovskyi () Python and GIS January 30, 2010 12 / 28
13.
14.
15.
16. Mapnik
Established library for making beautiful
maps
Written in C++
Boost.Python interface
Used by Flickr, OpenStreetMap,
CloudMade and many more
Andrii V. Mishkovskyi () Python and GIS January 30, 2010 16 / 28
17.
18.
19.
20.
21. SQLAlchemy
Best ORM ever
Access to almost any existing RDBMS
...but not really suitable for GIS stuff
Andrii V. Mishkovskyi () Python and GIS January 30, 2010 21 / 28
22. GeoAlchemy
Small add-on to SQLAlchemy
Support of OpenGIS geometries
Geometry functions (AsKML,
Intersects, etc.)
Andrii V. Mishkovskyi () Python and GIS January 30, 2010 22 / 28
23. TileCache
Implements WMS-C standard
Proxy over tile providers (Google
Maps, OSM, CloudMade)
Uses TurboGears
Andrii V. Mishkovskyi () Python and GIS January 30, 2010 23 / 28
24.
25. GeoDjango
Everybody loves Django
Great documentation
All in one place, no need to do it
yourself
Andrii V. Mishkovskyi () Python and GIS January 30, 2010 25 / 28
26. GIS is fun and geeky
Lots of cool Python APIs to experiment
with
Lots of free data to play with
Python has all you need for GIS
...unless you’re mapping distant
planets
Andrii V. Mishkovskyi () Python and GIS January 30, 2010 26 / 28
27. Links
gispython.org
geodjango.org
mapnik.org
openstreetmap.org
Andrii V. Mishkovskyi () Python and GIS January 30, 2010 27 / 28
28. Thank you!
mishok13@gmail.com
Andrii V. Mishkovskyi () Python and GIS January 30, 2010 28 / 28