python and gis

28
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

Upload: andrii-mishkovskyi

Post on 27-Jan-2015

152 views

Category:

Technology


2 download

DESCRIPTION

Pycamp Kyiv 2010 presentation. Talk about usage of Python in GIS.

TRANSCRIPT

Page 1: Python and GIS

Python and GISNobody expects Python in maps!

Andrii V. Mishkovskyi

January 30, 2010

Andrii V. Mishkovskyi () Python and GIS January 30, 2010 1 / 28

Page 2: Python and GIS

GIS stands for...

GeographicInformationSystem

Andrii V. Mishkovskyi () Python and GIS January 30, 2010 2 / 28

Page 3: Python and GIS

Maps and map services

TilesRoutingGeocodingStaticmaps

Andrii V. Mishkovskyi () Python and GIS January 30, 2010 3 / 28

Page 4: Python and GIS

Geolocation

GPS NavigatorsGeotagging (Flickr, Twitter, GeoRSS)

Andrii V. Mishkovskyi () Python and GIS January 30, 2010 4 / 28

Page 5: Python and GIS

And also

Historical mappingGeocachingAugmented reality

Andrii V. Mishkovskyi () Python and GIS January 30, 2010 5 / 28

Page 6: Python and GIS

GIS involves...

Math (analytic geometry)Computer graphics (rendering)Databases (GiST, OpenGIS spec)

Andrii V. Mishkovskyi () Python and GIS January 30, 2010 6 / 28

Page 7: Python and GIS

Python advantages

Clean languageLots of existing modulesEasy interaction with C libraries

Andrii V. Mishkovskyi () Python and GIS January 30, 2010 7 / 28

Page 8: Python and GIS

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

Page 9: Python and GIS
Page 10: Python and GIS

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

Page 11: Python and GIS
Page 12: Python and GIS

PyProj

Pyrex wrapper over PROJ.4Forward and reverse projectionsGeodetic projections

Andrii V. Mishkovskyi () Python and GIS January 30, 2010 12 / 28

Page 13: Python and GIS
Page 14: Python and GIS
Page 15: Python and GIS
Page 16: Python and GIS

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

Page 17: Python and GIS
Page 18: Python and GIS
Page 19: Python and GIS
Page 20: Python and GIS
Page 21: Python and GIS

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

Page 22: Python and GIS

GeoAlchemy

Small add-on to SQLAlchemySupport of OpenGIS geometriesGeometry functions (AsKML,Intersects, etc.)

Andrii V. Mishkovskyi () Python and GIS January 30, 2010 22 / 28

Page 23: Python and GIS

TileCache

Implements WMS-C standardProxy over tile providers (GoogleMaps, OSM, CloudMade)Uses TurboGears

Andrii V. Mishkovskyi () Python and GIS January 30, 2010 23 / 28

Page 24: Python and GIS
Page 25: Python and GIS

GeoDjango

Everybody loves DjangoGreat documentationAll in one place, no need to do ityourself

Andrii V. Mishkovskyi () Python and GIS January 30, 2010 25 / 28

Page 26: Python and GIS

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

Page 27: Python and GIS

Links

gispython.orggeodjango.orgmapnik.orgopenstreetmap.org

Andrii V. Mishkovskyi () Python and GIS January 30, 2010 27 / 28

Page 28: Python and GIS

Thank [email protected]

Andrii V. Mishkovskyi () Python and GIS January 30, 2010 28 / 28