SlideShare a Scribd company logo
1 of 25
THREE W’S OF GEOGRAPHY:
What is where?
Why is it there?
…and why do I care?
WHAT IS A GIS?
GIS = stands for “geographic information system”, “geographical information
science”, or “geospatial information studies”, depending on who you talk to
GIS is an ecoystem of computer software; hardware and data; and personnel to
help manipulate, analyze and present information that is tied to a spatial
location.
• Spatial location – usually a geographic location
• Information – visualization of analysis of data
• System – linking software, hardware, data
• People – a user and analyst of all of the above!
What you’re really after are “Smart Maps” – visualizing, manipulating, analyzing,
and displaying spatial data, connected to a database.
…AND WHAT IS A GIS NOT?
• GPS – global positioning system (though these do come into play to
obtain geographic coordiantes quite often)
• A static, unchanging map – paper or digital
• Maps are often the product of a GIS, but are just a way to visualize the
analysis
• The magic comes by separating the variables and making it dynamic
• A specific software package, like QGIS or ArcGIS
• Estimates are that 80% of all data has some sort of spatial component
DATABASES AREN’T REALLY ALL THAT EASY TO
INTERPRET, CONNECTIONS AREN’T EASY TO SEE:
…BUT WHEN MAPPED:
INPUTTING AND VISUALIZING DATA
• Raster – like a grid
• Pixels
• Each pixel has a location and value
• Satelite images and aerial photos are examples
• Vector – linear
• Comprised of points, lines, and polygons
• “Features” (house, lake, etc.)
• Features have “attributes”: size, type, length, etc.
WHAT IS QUANTUM GIS?
• Quantum GIS (QGIS) is an open-source desktop GIS
product that helps you visualize, manage, edit, analyze, and
compose maps with geographic data.
• Runs on Linux, Unix, Mac OSX, and Windows
• Supports vector, raster, and database formats – and these
formats can be obtained from anywhere
• GNU Public License
• Written in C++
• Uses the Qt library
• Allows integration of plugins developed using either C++ or
Python
HISTORY AND COMMUNITY
• Was started in May 2002
• Has a huge user community, and is constantly growing – web site,
source code (SVN), bug tracker, and mailing lists are hosted and
partially maintained by OSGeo.org
• Project Steering Committee – international team of developers and GIS
users who each have a specific area of responsibility (development,
release management, community resources, finance & marketing)
• Ways for you to contribute (if you want): code contributions, bug fixes,
bug reports, contributed documentation, advocacy, supporting other
users on mailing lists and the QGIS Forum
SOME WAYS THAT GIS IS USED:
• Emergency services: -- rescue groups, firefighters, police
• Environmental -- monitoring and modeling
• Business – site locations, delivery systems, customer locations,
“geotriggers”
• Industry – transportation, communication, mining, pipelines, oil, health
care
• Government – local, state, federal, military
• Education – research, as a teaching tool, administration
SPECIFIC CASE STUDIES
Networking solutions – route optimization, like Google Maps
Ecosystem Management – tracking deforestation, migration of species,
endangered species, protected animals and plants
Oil and mineral exploration – three-dimensional visualization with leases,
wells
Environmental monitoring of a toxic plume or oil spill
Modeling of social demographics, -- how populations change over time
Facilities mapping – can show where specific areas are in an office
building, where trees are on Rice’s campus, where patients are in a
hospital
ROUTE OPTIMIZATION
SPECIES PATTERNS
MAPPING OIL CONTAMINATION
SOCIAL DEMOGRAPHICS
RICE UNIVERSITY TREE MAP
GEOLOGICAL MODELING
SOME BEAUTIFUL EXAMPLES OF QGIS MAPS
https://www.flickr.com/groups/qgis/pool/
https://www.flickr.com/groups/qgis-screenshots/
WHY IS PYTHON A GOOD FIT FOR QGIS?
• Clear, readable syntax
• Implemented in many languages (C/C++, but also Java’s Jython and
.NET’s IronPython)
• Can be used to access tons of OSGeo libraries and software
• QGIS
• PostGIS
• GDAL/OGR
• GEOS
• JTS
• GeoTools
• Proj4
• Mapserver
• gvSIG
WHAT IS QT ? AND PYQYT?
• Qt helps you build graphical user interfaces
• Developed by Nokia
• Exists in Google Earth, Virtual Box, Skype, Autodesk, Android smart
phones, QGIS
• Qt is built using the C++ language – supports a number of compilers
• PyQt = Python bindings that wrap C++ Qt libraries,. This is great,
because it means that we can build Qt applications without learning
C++
QGIS + PYTHON
• Plugins – can create your own, or install public or private. Allows users
to create / extend editing tools that interact with data inside the QGIS
environment
• Python console – command line terminal inside QGIS that allows you to
test out ideas and make quick one-off jobs. Can interact with layers
that are loaded into QGIS, access their attributes and geometry
• Python scripts and applications – writing applications from scratch that
are built off QGIS and Qt libraries (we’re not doing that today)
PLAYING WITH THE PYTHON CONSOLE
• Accessing layers
• activeLayer()
• QgsMapCanvas
• Visible layers vs. layers in the order they’re stacked in the table of contents
• Loading layers into QGIS
• addVectorLayer() – takes three args (path, basename, provider key)
• addRasterLayer() – takes two args (path and basename)
• Accessing vector geometry
• OgsGeometry
• Buffer, intersection, combine, difference
• Accessing data attributes
• What’s the name of the selected feature?
• What values does this raster cell have?
• How many features meet this filtering requirement?
INSTALLING QGIS PLUGINS
[ open up QGIS, show where the plugins are housed]
[install a random public one]
[show how you can investigate the .py files using a terminal window in
/.qgis2/python/plugins]
[encourage folks to change parameters and recompile to see how layers
change, once they check out Python QGIS Cookbook]
I ♥ Maps: Quantum GIS + Python
I ♥ Maps: Quantum GIS + Python

More Related Content

What's hot

Dr. Margaret M. Cusack Steciuk
Dr. Margaret M. Cusack SteciukDr. Margaret M. Cusack Steciuk
Dr. Margaret M. Cusack Steciuk
mcusack
 

What's hot (20)

Gis
GisGis
Gis
 
Geographical information system
Geographical information systemGeographical information system
Geographical information system
 
GIS presentation
GIS presentationGIS presentation
GIS presentation
 
Visualizing Data with Geographic Information Systems (GIS)
Visualizing Data with Geographic Information Systems (GIS)Visualizing Data with Geographic Information Systems (GIS)
Visualizing Data with Geographic Information Systems (GIS)
 
Visualize Data with Maps
Visualize Data with MapsVisualize Data with Maps
Visualize Data with Maps
 
Q GIS Training Presentation
Q GIS Training PresentationQ GIS Training Presentation
Q GIS Training Presentation
 
Presentation on gis and future trends
Presentation on gis and future trendsPresentation on gis and future trends
Presentation on gis and future trends
 
Gis
GisGis
Gis
 
Teaching with Google Earth
Teaching with Google EarthTeaching with Google Earth
Teaching with Google Earth
 
GIS BY NIKHIL PAKWANNE
GIS BY NIKHIL PAKWANNEGIS BY NIKHIL PAKWANNE
GIS BY NIKHIL PAKWANNE
 
Gis
GisGis
Gis
 
Gis applications in civil engineering
Gis applications in civil engineeringGis applications in civil engineering
Gis applications in civil engineering
 
Introduction to GIS and its Applications
Introduction to GIS and its ApplicationsIntroduction to GIS and its Applications
Introduction to GIS and its Applications
 
Visualizing history - A proposal for Augmentive Drones in Archaeology.
Visualizing history - A proposal for Augmentive Drones in Archaeology.Visualizing history - A proposal for Augmentive Drones in Archaeology.
Visualizing history - A proposal for Augmentive Drones in Archaeology.
 
ArchaeoSTOR Map: Publishing archaeological geodata on the web
ArchaeoSTOR Map: Publishing archaeological geodata on the webArchaeoSTOR Map: Publishing archaeological geodata on the web
ArchaeoSTOR Map: Publishing archaeological geodata on the web
 
Dr. Margaret M. Cusack Steciuk
Dr. Margaret M. Cusack SteciukDr. Margaret M. Cusack Steciuk
Dr. Margaret M. Cusack Steciuk
 
Introduction To Geographical Information System (GIS)
Introduction To Geographical Information System (GIS) Introduction To Geographical Information System (GIS)
Introduction To Geographical Information System (GIS)
 
Geographic Information System - Swisstrack GPS Erfahrungen
Geographic Information System - Swisstrack GPS ErfahrungenGeographic Information System - Swisstrack GPS Erfahrungen
Geographic Information System - Swisstrack GPS Erfahrungen
 
Liberec geoportal
Liberec geoportalLiberec geoportal
Liberec geoportal
 
Cultures of Legibility Web Map
Cultures of Legibility Web MapCultures of Legibility Web Map
Cultures of Legibility Web Map
 

Viewers also liked

Infrastruktur data spatial
Infrastruktur data spatial Infrastruktur data spatial
Infrastruktur data spatial
Musnanda Satar
 
modul pelatihan pengolahan data spasial menggunakan quantum gis
modul pelatihan pengolahan data spasial menggunakan quantum gismodul pelatihan pengolahan data spasial menggunakan quantum gis
modul pelatihan pengolahan data spasial menggunakan quantum gis
Mohd. Yunus
 

Viewers also liked (20)

ESCI 452 - Final Project(s)
ESCI 452 - Final Project(s)ESCI 452 - Final Project(s)
ESCI 452 - Final Project(s)
 
Python 101: Python for Absolute Beginners (PyTexas 2014)
Python 101: Python for Absolute Beginners (PyTexas 2014)Python 101: Python for Absolute Beginners (PyTexas 2014)
Python 101: Python for Absolute Beginners (PyTexas 2014)
 
PyLadies-HTX: First Meetup!
PyLadies-HTX: First Meetup!PyLadies-HTX: First Meetup!
PyLadies-HTX: First Meetup!
 
Python 101++: Let's Get Down to Business!
Python 101++: Let's Get Down to Business!Python 101++: Let's Get Down to Business!
Python 101++: Let's Get Down to Business!
 
Introduction to Git / Github
Introduction to Git / GithubIntroduction to Git / Github
Introduction to Git / Github
 
Pengenalan Sistem Informasi Geografis
Pengenalan Sistem Informasi GeografisPengenalan Sistem Informasi Geografis
Pengenalan Sistem Informasi Geografis
 
SISTEM INFORMASI GEOGRAFIS (SIG)
SISTEM INFORMASI GEOGRAFIS (SIG)SISTEM INFORMASI GEOGRAFIS (SIG)
SISTEM INFORMASI GEOGRAFIS (SIG)
 
Inovasi Pelayanan Sistem Pertiketan Bus Transjakarta
Inovasi Pelayanan Sistem Pertiketan Bus TransjakartaInovasi Pelayanan Sistem Pertiketan Bus Transjakarta
Inovasi Pelayanan Sistem Pertiketan Bus Transjakarta
 
Infrastruktur data spatial
Infrastruktur data spatial Infrastruktur data spatial
Infrastruktur data spatial
 
11 Map Composer dengan QGIS 2.4
11 Map Composer dengan QGIS 2.411 Map Composer dengan QGIS 2.4
11 Map Composer dengan QGIS 2.4
 
QGIS 2.8: Classificação de Campos com Python
QGIS 2.8: Classificação de Campos com PythonQGIS 2.8: Classificação de Campos com Python
QGIS 2.8: Classificação de Campos com Python
 
04 Dasar-dasar QGIS dan Plugin
04 Dasar-dasar QGIS dan Plugin04 Dasar-dasar QGIS dan Plugin
04 Dasar-dasar QGIS dan Plugin
 
Telekomunikasi bergerak (mobile)
Telekomunikasi bergerak (mobile)Telekomunikasi bergerak (mobile)
Telekomunikasi bergerak (mobile)
 
Network Analyst dalam Sistem Informasi Geografis
Network Analyst dalam Sistem Informasi GeografisNetwork Analyst dalam Sistem Informasi Geografis
Network Analyst dalam Sistem Informasi Geografis
 
Modul Quantum GIS 2 (Aplikasi)
Modul Quantum GIS 2 (Aplikasi) Modul Quantum GIS 2 (Aplikasi)
Modul Quantum GIS 2 (Aplikasi)
 
modul pelatihan pengolahan data spasial menggunakan quantum gis
modul pelatihan pengolahan data spasial menggunakan quantum gismodul pelatihan pengolahan data spasial menggunakan quantum gis
modul pelatihan pengolahan data spasial menggunakan quantum gis
 
Modul GIS (QGIS) Diklat GPS dan GIS BPSDM Kementerian PUPR, April 2016
Modul GIS (QGIS) Diklat GPS dan GIS BPSDM Kementerian PUPR, April 2016Modul GIS (QGIS) Diklat GPS dan GIS BPSDM Kementerian PUPR, April 2016
Modul GIS (QGIS) Diklat GPS dan GIS BPSDM Kementerian PUPR, April 2016
 
Jurnal pengaruh kualitas pelayanan terhadap kepuasan pelanggan pengguna jasa ...
Jurnal pengaruh kualitas pelayanan terhadap kepuasan pelanggan pengguna jasa ...Jurnal pengaruh kualitas pelayanan terhadap kepuasan pelanggan pengguna jasa ...
Jurnal pengaruh kualitas pelayanan terhadap kepuasan pelanggan pengguna jasa ...
 
Makalah permukiman antang dan bukit baruga makassar
Makalah permukiman antang dan bukit baruga makassarMakalah permukiman antang dan bukit baruga makassar
Makalah permukiman antang dan bukit baruga makassar
 
Learn 90% of Python in 90 Minutes
Learn 90% of Python in 90 MinutesLearn 90% of Python in 90 Minutes
Learn 90% of Python in 90 Minutes
 

Similar to I ♥ Maps: Quantum GIS + Python

WORLDMAP: A SPATIAL INFRASTRUCTURE TO SUPPORT TEACHING AND RESEARCH (BROWN BA...
WORLDMAP: A SPATIAL INFRASTRUCTURE TO SUPPORT TEACHING AND RESEARCH (BROWN BA...WORLDMAP: A SPATIAL INFRASTRUCTURE TO SUPPORT TEACHING AND RESEARCH (BROWN BA...
WORLDMAP: A SPATIAL INFRASTRUCTURE TO SUPPORT TEACHING AND RESEARCH (BROWN BA...
Micah Altman
 
Geographical information system
Geographical information systemGeographical information system
Geographical information system
Bipin Karki
 
How to empower community by using GIS lecture 1
How to empower community by using GIS lecture 1How to empower community by using GIS lecture 1
How to empower community by using GIS lecture 1
wang yaohui
 

Similar to I ♥ Maps: Quantum GIS + Python (20)

WORLDMAP: A SPATIAL INFRASTRUCTURE TO SUPPORT TEACHING AND RESEARCH (BROWN BA...
WORLDMAP: A SPATIAL INFRASTRUCTURE TO SUPPORT TEACHING AND RESEARCH (BROWN BA...WORLDMAP: A SPATIAL INFRASTRUCTURE TO SUPPORT TEACHING AND RESEARCH (BROWN BA...
WORLDMAP: A SPATIAL INFRASTRUCTURE TO SUPPORT TEACHING AND RESEARCH (BROWN BA...
 
Env. mon
Env. monEnv. mon
Env. mon
 
What is GIS (Course Presentation).pdf
What is GIS (Course Presentation).pdfWhat is GIS (Course Presentation).pdf
What is GIS (Course Presentation).pdf
 
What is gis
What is gisWhat is gis
What is gis
 
QGIS Module 1
QGIS Module 1QGIS Module 1
QGIS Module 1
 
What is Geography Information Systems (GIS)
What is Geography Information Systems (GIS)What is Geography Information Systems (GIS)
What is Geography Information Systems (GIS)
 
IEEE SIGHT Bombay section webinar talk on GIS & Remote Sensing-Introduction t...
IEEE SIGHT Bombay section webinar talk on GIS & Remote Sensing-Introduction t...IEEE SIGHT Bombay section webinar talk on GIS & Remote Sensing-Introduction t...
IEEE SIGHT Bombay section webinar talk on GIS & Remote Sensing-Introduction t...
 
2017 GIS in Education Track: Sharing Historical Maps and Atlases in Web Apps
2017 GIS in Education Track: Sharing Historical Maps and Atlases in Web Apps2017 GIS in Education Track: Sharing Historical Maps and Atlases in Web Apps
2017 GIS in Education Track: Sharing Historical Maps and Atlases in Web Apps
 
Gis fandamentals -1
Gis fandamentals -1Gis fandamentals -1
Gis fandamentals -1
 
gis.pdf
gis.pdfgis.pdf
gis.pdf
 
gis.pdf
gis.pdfgis.pdf
gis.pdf
 
GIS Geographical Information System
GIS Geographical Information SystemGIS Geographical Information System
GIS Geographical Information System
 
Geographical information system
Geographical information systemGeographical information system
Geographical information system
 
Introduction to GIS and its Applications.pptx
Introduction to GIS and its Applications.pptxIntroduction to GIS and its Applications.pptx
Introduction to GIS and its Applications.pptx
 
Introduction to Geographic Information Systems (GIS).pptx
Introduction to Geographic Information Systems (GIS).pptxIntroduction to Geographic Information Systems (GIS).pptx
Introduction to Geographic Information Systems (GIS).pptx
 
Introduction to GIS
Introduction to GISIntroduction to GIS
Introduction to GIS
 
GEOGRAPHICAL INFORMATION SYSTEM (GIS)
GEOGRAPHICAL INFORMATION SYSTEM (GIS)GEOGRAPHICAL INFORMATION SYSTEM (GIS)
GEOGRAPHICAL INFORMATION SYSTEM (GIS)
 
USING E-INFRASTRUCTURES FOR BIODIVERSITY CONSERVATION - Module 2
USING E-INFRASTRUCTURES FOR BIODIVERSITY CONSERVATION - Module 2USING E-INFRASTRUCTURES FOR BIODIVERSITY CONSERVATION - Module 2
USING E-INFRASTRUCTURES FOR BIODIVERSITY CONSERVATION - Module 2
 
Free remote sensing and GIS data
Free remote sensing and GIS dataFree remote sensing and GIS data
Free remote sensing and GIS data
 
How to empower community by using GIS lecture 1
How to empower community by using GIS lecture 1How to empower community by using GIS lecture 1
How to empower community by using GIS lecture 1
 

Recently uploaded

Recently uploaded (20)

Apidays Singapore 2024 - Building Digital Trust in a Digital Economy by Veron...
Apidays Singapore 2024 - Building Digital Trust in a Digital Economy by Veron...Apidays Singapore 2024 - Building Digital Trust in a Digital Economy by Veron...
Apidays Singapore 2024 - Building Digital Trust in a Digital Economy by Veron...
 
MS Copilot expands with MS Graph connectors
MS Copilot expands with MS Graph connectorsMS Copilot expands with MS Graph connectors
MS Copilot expands with MS Graph connectors
 
Apidays New York 2024 - The value of a flexible API Management solution for O...
Apidays New York 2024 - The value of a flexible API Management solution for O...Apidays New York 2024 - The value of a flexible API Management solution for O...
Apidays New York 2024 - The value of a flexible API Management solution for O...
 
Corporate and higher education May webinar.pptx
Corporate and higher education May webinar.pptxCorporate and higher education May webinar.pptx
Corporate and higher education May webinar.pptx
 
Automating Google Workspace (GWS) & more with Apps Script
Automating Google Workspace (GWS) & more with Apps ScriptAutomating Google Workspace (GWS) & more with Apps Script
Automating Google Workspace (GWS) & more with Apps Script
 
MINDCTI Revenue Release Quarter One 2024
MINDCTI Revenue Release Quarter One 2024MINDCTI Revenue Release Quarter One 2024
MINDCTI Revenue Release Quarter One 2024
 
Exploring the Future Potential of AI-Enabled Smartphone Processors
Exploring the Future Potential of AI-Enabled Smartphone ProcessorsExploring the Future Potential of AI-Enabled Smartphone Processors
Exploring the Future Potential of AI-Enabled Smartphone Processors
 
Boost Fertility New Invention Ups Success Rates.pdf
Boost Fertility New Invention Ups Success Rates.pdfBoost Fertility New Invention Ups Success Rates.pdf
Boost Fertility New Invention Ups Success Rates.pdf
 
Web Form Automation for Bonterra Impact Management (fka Social Solutions Apri...
Web Form Automation for Bonterra Impact Management (fka Social Solutions Apri...Web Form Automation for Bonterra Impact Management (fka Social Solutions Apri...
Web Form Automation for Bonterra Impact Management (fka Social Solutions Apri...
 
Apidays Singapore 2024 - Scalable LLM APIs for AI and Generative AI Applicati...
Apidays Singapore 2024 - Scalable LLM APIs for AI and Generative AI Applicati...Apidays Singapore 2024 - Scalable LLM APIs for AI and Generative AI Applicati...
Apidays Singapore 2024 - Scalable LLM APIs for AI and Generative AI Applicati...
 
Apidays Singapore 2024 - Modernizing Securities Finance by Madhu Subbu
Apidays Singapore 2024 - Modernizing Securities Finance by Madhu SubbuApidays Singapore 2024 - Modernizing Securities Finance by Madhu Subbu
Apidays Singapore 2024 - Modernizing Securities Finance by Madhu Subbu
 
Axa Assurance Maroc - Insurer Innovation Award 2024
Axa Assurance Maroc - Insurer Innovation Award 2024Axa Assurance Maroc - Insurer Innovation Award 2024
Axa Assurance Maroc - Insurer Innovation Award 2024
 
Data Cloud, More than a CDP by Matt Robison
Data Cloud, More than a CDP by Matt RobisonData Cloud, More than a CDP by Matt Robison
Data Cloud, More than a CDP by Matt Robison
 
Ransomware_Q4_2023. The report. [EN].pdf
Ransomware_Q4_2023. The report. [EN].pdfRansomware_Q4_2023. The report. [EN].pdf
Ransomware_Q4_2023. The report. [EN].pdf
 
Manulife - Insurer Transformation Award 2024
Manulife - Insurer Transformation Award 2024Manulife - Insurer Transformation Award 2024
Manulife - Insurer Transformation Award 2024
 
How to Troubleshoot Apps for the Modern Connected Worker
How to Troubleshoot Apps for the Modern Connected WorkerHow to Troubleshoot Apps for the Modern Connected Worker
How to Troubleshoot Apps for the Modern Connected Worker
 
Mastering MySQL Database Architecture: Deep Dive into MySQL Shell and MySQL R...
Mastering MySQL Database Architecture: Deep Dive into MySQL Shell and MySQL R...Mastering MySQL Database Architecture: Deep Dive into MySQL Shell and MySQL R...
Mastering MySQL Database Architecture: Deep Dive into MySQL Shell and MySQL R...
 
Repurposing LNG terminals for Hydrogen Ammonia: Feasibility and Cost Saving
Repurposing LNG terminals for Hydrogen Ammonia: Feasibility and Cost SavingRepurposing LNG terminals for Hydrogen Ammonia: Feasibility and Cost Saving
Repurposing LNG terminals for Hydrogen Ammonia: Feasibility and Cost Saving
 
2024: Domino Containers - The Next Step. News from the Domino Container commu...
2024: Domino Containers - The Next Step. News from the Domino Container commu...2024: Domino Containers - The Next Step. News from the Domino Container commu...
2024: Domino Containers - The Next Step. News from the Domino Container commu...
 
ProductAnonymous-April2024-WinProductDiscovery-MelissaKlemke
ProductAnonymous-April2024-WinProductDiscovery-MelissaKlemkeProductAnonymous-April2024-WinProductDiscovery-MelissaKlemke
ProductAnonymous-April2024-WinProductDiscovery-MelissaKlemke
 

I ♥ Maps: Quantum GIS + Python

  • 1.
  • 2. THREE W’S OF GEOGRAPHY: What is where? Why is it there? …and why do I care?
  • 3. WHAT IS A GIS? GIS = stands for “geographic information system”, “geographical information science”, or “geospatial information studies”, depending on who you talk to GIS is an ecoystem of computer software; hardware and data; and personnel to help manipulate, analyze and present information that is tied to a spatial location. • Spatial location – usually a geographic location • Information – visualization of analysis of data • System – linking software, hardware, data • People – a user and analyst of all of the above! What you’re really after are “Smart Maps” – visualizing, manipulating, analyzing, and displaying spatial data, connected to a database.
  • 4. …AND WHAT IS A GIS NOT? • GPS – global positioning system (though these do come into play to obtain geographic coordiantes quite often) • A static, unchanging map – paper or digital • Maps are often the product of a GIS, but are just a way to visualize the analysis • The magic comes by separating the variables and making it dynamic • A specific software package, like QGIS or ArcGIS • Estimates are that 80% of all data has some sort of spatial component
  • 5. DATABASES AREN’T REALLY ALL THAT EASY TO INTERPRET, CONNECTIONS AREN’T EASY TO SEE:
  • 7. INPUTTING AND VISUALIZING DATA • Raster – like a grid • Pixels • Each pixel has a location and value • Satelite images and aerial photos are examples • Vector – linear • Comprised of points, lines, and polygons • “Features” (house, lake, etc.) • Features have “attributes”: size, type, length, etc.
  • 8. WHAT IS QUANTUM GIS? • Quantum GIS (QGIS) is an open-source desktop GIS product that helps you visualize, manage, edit, analyze, and compose maps with geographic data. • Runs on Linux, Unix, Mac OSX, and Windows • Supports vector, raster, and database formats – and these formats can be obtained from anywhere • GNU Public License • Written in C++ • Uses the Qt library • Allows integration of plugins developed using either C++ or Python
  • 9. HISTORY AND COMMUNITY • Was started in May 2002 • Has a huge user community, and is constantly growing – web site, source code (SVN), bug tracker, and mailing lists are hosted and partially maintained by OSGeo.org • Project Steering Committee – international team of developers and GIS users who each have a specific area of responsibility (development, release management, community resources, finance & marketing) • Ways for you to contribute (if you want): code contributions, bug fixes, bug reports, contributed documentation, advocacy, supporting other users on mailing lists and the QGIS Forum
  • 10. SOME WAYS THAT GIS IS USED: • Emergency services: -- rescue groups, firefighters, police • Environmental -- monitoring and modeling • Business – site locations, delivery systems, customer locations, “geotriggers” • Industry – transportation, communication, mining, pipelines, oil, health care • Government – local, state, federal, military • Education – research, as a teaching tool, administration
  • 11. SPECIFIC CASE STUDIES Networking solutions – route optimization, like Google Maps Ecosystem Management – tracking deforestation, migration of species, endangered species, protected animals and plants Oil and mineral exploration – three-dimensional visualization with leases, wells Environmental monitoring of a toxic plume or oil spill Modeling of social demographics, -- how populations change over time Facilities mapping – can show where specific areas are in an office building, where trees are on Rice’s campus, where patients are in a hospital
  • 18. SOME BEAUTIFUL EXAMPLES OF QGIS MAPS https://www.flickr.com/groups/qgis/pool/ https://www.flickr.com/groups/qgis-screenshots/
  • 19. WHY IS PYTHON A GOOD FIT FOR QGIS? • Clear, readable syntax • Implemented in many languages (C/C++, but also Java’s Jython and .NET’s IronPython) • Can be used to access tons of OSGeo libraries and software • QGIS • PostGIS • GDAL/OGR • GEOS • JTS • GeoTools • Proj4 • Mapserver • gvSIG
  • 20. WHAT IS QT ? AND PYQYT? • Qt helps you build graphical user interfaces • Developed by Nokia • Exists in Google Earth, Virtual Box, Skype, Autodesk, Android smart phones, QGIS • Qt is built using the C++ language – supports a number of compilers • PyQt = Python bindings that wrap C++ Qt libraries,. This is great, because it means that we can build Qt applications without learning C++
  • 21. QGIS + PYTHON • Plugins – can create your own, or install public or private. Allows users to create / extend editing tools that interact with data inside the QGIS environment • Python console – command line terminal inside QGIS that allows you to test out ideas and make quick one-off jobs. Can interact with layers that are loaded into QGIS, access their attributes and geometry • Python scripts and applications – writing applications from scratch that are built off QGIS and Qt libraries (we’re not doing that today)
  • 22. PLAYING WITH THE PYTHON CONSOLE • Accessing layers • activeLayer() • QgsMapCanvas • Visible layers vs. layers in the order they’re stacked in the table of contents • Loading layers into QGIS • addVectorLayer() – takes three args (path, basename, provider key) • addRasterLayer() – takes two args (path and basename) • Accessing vector geometry • OgsGeometry • Buffer, intersection, combine, difference • Accessing data attributes • What’s the name of the selected feature? • What values does this raster cell have? • How many features meet this filtering requirement?
  • 23. INSTALLING QGIS PLUGINS [ open up QGIS, show where the plugins are housed] [install a random public one] [show how you can investigate the .py files using a terminal window in /.qgis2/python/plugins] [encourage folks to change parameters and recompile to see how layers change, once they check out Python QGIS Cookbook]

Editor's Notes

  1. Explanation of why GIS + Python means a lot to me, personally Unsure of how to go about creating the slide deck Laying out the “why?” and hoping people get inspired
  2. * Geology data in Microsoft Excel
  3. * Same data, mapped in ArcGIS
  4. http://fon-gis.rice.edu/ricetrees/
  5. https://www.flickr.com/groups/qgis/pool/ https://www.flickr.com/groups/qgis-screenshots/
  6. [handout]
  7. Make sure to mention qgis is a dot file, so not immediately visible
  8. Make sure to print off steps!!