Leveraging Open Source GIS with Python: A QGIS Approach

2,092 views
2,033 views

Published on

The accompanying slide presentation to a webinar I gave back in may showing the power of Python with open source tools like Quantum GIS (QGIS) and PostGIS.

0 Comments
0 Likes
Statistics
Notes
  • Be the first to comment

  • Be the first to like this

No Downloads
Views
Total views
2,092
On SlideShare
0
From Embeds
0
Number of Embeds
14
Actions
Shares
0
Downloads
3
Comments
0
Likes
0
Embeds 0
No embeds

No notes for slide

Leveraging Open Source GIS with Python: A QGIS Approach

  1. 1. A Quantum GIS Approach
  2. 2. <ul><li>The power of any GIS lies in the customization </li></ul><ul><li>Many embedded objects and processes available </li></ul><ul><li>A variety of programming and scripting languages </li></ul><ul><li>Plug-in, add-on, extension... </li></ul><ul><li>Stand alone using API and ActiveX </li></ul>
  3. 3. <ul><li>An Introduction to Quantum GIS (QGIS) </li></ul><ul><li>An Introduction to Python </li></ul><ul><li>An Introduction to Qt </li></ul><ul><li>An Overview of Python Bindings </li></ul><ul><li>Using the Python Shell in QGIS </li></ul><ul><li>Writing your first QGIS plugin </li></ul>
  4. 4. <ul><li>What is it? </li></ul><ul><li>How does it compare? </li></ul><ul><li>What can it do? </li></ul><ul><li>Why use QGIS? </li></ul>
  5. 5. <ul><li>What is it? </li></ul><ul><li>How does it compare? </li></ul><ul><li>What can it do? </li></ul><ul><li>Why use Python? </li></ul>
  6. 6. <ul><li>Off we go to the demo... </li></ul>
  7. 7. <ul><li>What is it? </li></ul><ul><li>What can it do? </li></ul><ul><li>Why use Qt? </li></ul><ul><li>What else? </li></ul><ul><ul><li>pyuic4 </li></ul></ul><ul><ul><li>pyrcc4 </li></ul></ul>
  8. 8. <ul><li>Off we go to the demo... </li></ul>
  9. 9. <ul><li>What are QGIS Python Bindings </li></ul><ul><ul><li>Python libraries that are accessible to QGIS </li></ul></ul><ul><ul><li>Python Core/GUI (Version 2.5) and PyQt4 (main bindings) </li></ul></ul><ul><li>How do they work? </li></ul><ul><ul><li>Calls to the libraries in the code... </li></ul></ul><ul><ul><ul><li>from PyQt4.QtCore import * </li></ul></ul></ul><ul><ul><ul><li>from qgis.core import * </li></ul></ul></ul><ul><li>What are they used for? </li></ul><ul><ul><li>Access to Python functions within QGIS </li></ul></ul><ul><li>Math </li></ul><ul><li>String </li></ul><ul><li>Logic </li></ul><ul><li>Regular expressions </li></ul><ul><li>Loops </li></ul>
  10. 10. <ul><li>Off we go to the demo... </li></ul>
  11. 11. <ul><li>What are they? </li></ul><ul><ul><li>Extend the functionality of QGIS </li></ul></ul><ul><ul><li>Python or C++ </li></ul></ul><ul><ul><li>Made up of GUI (Qt) and Python Code </li></ul></ul><ul><li>Do I have to make all of my own? </li></ul><ul><ul><li>Plenty available on the internet </li></ul></ul><ul><li>Where can I get them? </li></ul><ul><ul><li>Plugins  Fetch Python Plugins </li></ul></ul><ul><li>How do I install them? </li></ul><ul><ul><li>Above method...installs for you </li></ul></ul><ul><ul><li>Place entire directory in your Python Plugin directory </li></ul></ul><ul><ul><ul><li>~.qgis/python/plugins </li></ul></ul></ul><ul><li>How do I manage them? </li></ul><ul><ul><li>Plugins  Manage Plugins </li></ul></ul>
  12. 12. <ul><li>Off we go again to the demo... </li></ul>
  13. 13. <ul><li>Why QGIS? </li></ul><ul><ul><li>Open source and free </li></ul></ul><ul><ul><li>Extensable development environment </li></ul></ul><ul><ul><li>Many geoprocessing functions and objects </li></ul></ul><ul><li>Why Python? </li></ul><ul><ul><li>Integrated very well with QGIS </li></ul></ul><ul><ul><li>Well established programming language </li></ul></ul><ul><ul><li>Works very well with Qt for forms etc </li></ul></ul><ul><li>Python Bindings </li></ul><ul><ul><li>gives the power of programming to QGIS </li></ul></ul><ul><li>QGIS Plugins </li></ul><ul><ul><li>the real power of QGIS </li></ul></ul><ul><ul><li>lots of QGIS and third party plugins available </li></ul></ul>
  14. 14. <ul><li>How to get more training.... </li></ul><ul><ul><li>Contact Carteryx @ [email_address] or 778.668.5025 </li></ul></ul><ul><ul><li>More training classes to come (watch http://www.carteryx.com ) </li></ul></ul><ul><ul><li>Pre-defined and Personalized training.... </li></ul></ul><ul><li>Links </li></ul><ul><ul><li>http://www.qgis.org </li></ul></ul><ul><ul><li>http://forum.qgis.org </li></ul></ul><ul><ul><li>http://blog.qgis.org/ </li></ul></ul><ul><ul><li>http://wiki.qgis.org/qgiswiki </li></ul></ul><ul><ul><li>http://www.python.org </li></ul></ul><ul><ul><li>http://www.diveintopython.org/ </li></ul></ul>
  15. 15. <ul><li>Any Questions???? </li></ul>

×