python and gis
DESCRIPTION
Pycamp Kyiv 2010 presentation. Talk about usage of Python in GIS.TRANSCRIPT
Python and GISNobody expects Python in maps!
Andrii V. Mishkovskyi
January 30, 2010
Andrii V. Mishkovskyi () Python and GIS January 30, 2010 1 / 28
GIS stands for...
GeographicInformationSystem
Andrii V. Mishkovskyi () Python and GIS January 30, 2010 2 / 28
Maps and map services
TilesRoutingGeocodingStaticmaps
Andrii V. Mishkovskyi () Python and GIS January 30, 2010 3 / 28
Geolocation
GPS NavigatorsGeotagging (Flickr, Twitter, GeoRSS)
Andrii V. Mishkovskyi () Python and GIS January 30, 2010 4 / 28
And also
Historical mappingGeocachingAugmented reality
Andrii V. Mishkovskyi () Python and GIS January 30, 2010 5 / 28
GIS involves...
Math (analytic geometry)Computer graphics (rendering)Databases (GiST, OpenGIS spec)
Andrii V. Mishkovskyi () Python and GIS January 30, 2010 6 / 28
Python advantages
Clean languageLots of existing modulesEasy interaction with C libraries
Andrii V. Mishkovskyi () Python and GIS January 30, 2010 7 / 28
Shapely
Wrapper over GEOS libraryBasic geometriesGeometry collectionsFunctions for all geometry operations(intersection, equality, etc.)
Andrii V. Mishkovskyi () Python and GIS January 30, 2010 8 / 28
NumPy
Lots of array operationsBest way of converting binary dataFor example, hillshading or heatmaps
Andrii V. Mishkovskyi () Python and GIS January 30, 2010 10 / 28
PyProj
Pyrex wrapper over PROJ.4Forward and reverse projectionsGeodetic projections
Andrii V. Mishkovskyi () Python and GIS January 30, 2010 12 / 28
Mapnik
Established library for making beautifulmapsWritten in C++Boost.Python interfaceUsed by Flickr, OpenStreetMap,CloudMade and many more
Andrii V. Mishkovskyi () Python and GIS January 30, 2010 16 / 28
SQLAlchemy
Best ORM everAccess to almost any existing RDBMS...but not really suitable for GIS stuff
Andrii V. Mishkovskyi () Python and GIS January 30, 2010 21 / 28
GeoAlchemy
Small add-on to SQLAlchemySupport of OpenGIS geometriesGeometry functions (AsKML,Intersects, etc.)
Andrii V. Mishkovskyi () Python and GIS January 30, 2010 22 / 28
TileCache
Implements WMS-C standardProxy over tile providers (GoogleMaps, OSM, CloudMade)Uses TurboGears
Andrii V. Mishkovskyi () Python and GIS January 30, 2010 23 / 28
GeoDjango
Everybody loves DjangoGreat documentationAll in one place, no need to do ityourself
Andrii V. Mishkovskyi () Python and GIS January 30, 2010 25 / 28
GIS is fun and geekyLots of cool Python APIs to experimentwithLots of free data to play withPython has all you need for GIS...unless you’re mapping distantplanets
Andrii V. Mishkovskyi () Python and GIS January 30, 2010 26 / 28
Links
gispython.orggeodjango.orgmapnik.orgopenstreetmap.org
Andrii V. Mishkovskyi () Python and GIS January 30, 2010 27 / 28
Thank [email protected]
Andrii V. Mishkovskyi () Python and GIS January 30, 2010 28 / 28