Take the 2-minute tour ×
Geographic Information Systems Stack Exchange is a question and answer site for cartographers, geographers and GIS professionals. It's 100% free, no registration required.

In your opinion, what is the best book/site to learn Python with GIS goals in mind?

By "best", I mean:

  • not very long (book)
  • easy to understand (book/site)
  • good practical examples (book/site)

For answers specific to learning how to use the ArcPy site-package for Python to customize ArcGIS for Desktop there is a separate Q&A: What are some resources for learning ArcPy?

share|improve this question
I agree, if the question was rephrased "useful GIS resources for programming in Python + general resources for learning python with GIS goals in mind" or something similar I think would be more on topic. –  Andy W Oct 27 '10 at 19:59

13 Answers 13

up vote 32 down vote accepted

Edit: adding more links to GIS specific resources.

For straight python, his has been discussed thoroughly on Stack Overflow:

The second link has a link to the latest edition of a book I loved when learning pythonHow to Think Like A Computer Scientist: Learning With Python

Finally, I throw in a plug for Zed Shaw's learn python book: Learn Python the Hard Way.

share|improve this answer
+1 for Zed Shaw! I am in the middle of Learn Python the Hard Way and I am learning more then I ever had in any of my prior classes/books. Really great place to start learning about programming for noobs. –  Furlong Nov 9 '10 at 18:51

Try http://www.gis.usu.edu/~chrisg/python/2009/ in an attempt to get back on topic :-)

share|improve this answer
Nice, Python, GIS and open source :) –  underdark Oct 28 '10 at 7:03
Here is a small amount of course material I found for using Python with ArcGIS. web.mit.edu/djq/Public/IAP_GIS I do not remember how I came across this site but I assume it is meant to be public. Not nearly as expansive as the website iant gives though. –  Andy W Oct 28 '10 at 13:20

For Python GIS, see the FOSS4G 2010 python workshop and the corresponding slides

A good start, mainly oriented on Pylons framework and Geoalchemy, the two main components of Mapfish Server

Edit : Do a

git clone https://github.com/elpaso/python-gis-workshop

see into the pdf all the links related to GIS for python and enjoy !

share|improve this answer

I am surprised that no one has mentioned the official Python tutorial. I have been working through it on and off for the past couple of years, and I have found it to be both simple and helpful.


share|improve this answer

It won't be released in paper form until December, but Erik Westra's 'Python Geo-Spatial Development' from Packt Press looks promising: https://www.packtpub.com/python-geo-spatial-development/book

I second Chris Garrard's materials at: http://www.gis.usu.edu/~chrisg/python/2009/

There are videos on general Python concepts and skills at Miro: http://python.mirocommunity.org/

Lots of good Python videos from PyCon at blip: http://pycon.blip.tv/

share|improve this answer

Dive Into Python. Good and free. Provides good intro to many basic Pythonic principles.

Here's a shameless plug for a article I wrote for ArcUser on geoprocessing with Python.

share|improve this answer
You'll have to purchase the hard copy these days; Mark Pilgrim took down his content when he committed infosuicide. –  Brad Koch Mar 26 '13 at 21:37
@BradKoch - Interesting, looks like it's getting mirrored at diveintopython.net/index.html –  Chad Cooper Mar 26 '13 at 21:57

Take a look at "A Primer on Scientific Programming with Python‎" - Hans Petter Langtangen - 2009

With 693 pages it’s maybe a bit long, but it matches the other two of your requirements nicely. A preview is available at Google books

share|improve this answer

NC State's Master of GIS Programming course is available for free online. They cover more in my opinion than the Penn State course with some ESRI specifics (script tools).

share|improve this answer

Whilst this doesn't strictly relate to Python for GIS, the best resource I have found up to now for learning straight Python is Codeacademy, here: http://www.codecademy.com/

Courses are well structured, with regular challenges and tasks to reinforce learning. Best of all, it's completely free.

share|improve this answer

New Edition Released: Python Geospatial Development The goal of the book is the provide Python developers with the knowledge needed in order to create mapping applications from start to finish using open source geospatial Python tools.

share|improve this answer

The Penn State free course on Python and geoprocessing in ArcGIS is very easy to follow and is very much oriented towards ArcGIS users rather than developers, so you might like it.

share|improve this answer

There is a great compilation of resources from a similar thread titled What are some resources for learning Python and arcpy? Here you will find links to everything from tutorials and free classes to books and blogs. This is really an excellent comprehensive resource!

share|improve this answer

The website Python GIS Resources is a site that I run which hopefully provides exactly what this question asks for. On the website you will find:

  • A large and continually maintenanced index list of available GIS-related Python modules/packages/libraries, each with a short description, category, and link.

The website is meant to be a one-stop resource-hub for Python open-source GIS tools.

If there are any resources that are missing you can also contribute and help keep the website up-to-date by posting a reply somewhere or sending an email.

share|improve this answer

Your Answer


By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.