SlideShare a Scribd company logo
Marianna Zichar
University of Debrecen
Agenda
 Motivation
 The language (with the main pitfalls)
 ArcGIS
 KML
 QGIS
 Projections
 Visualization
 Analysis and management of geospatial data
2
The language
 General-purpose interpreted, interactive, high-level
programming language
 Multiple programming paradigms
 Object-oriented
 Imperative
 Functional programming
 Procedural
 Dynamic language: Scripting  Non scripting
3
The language
 Python code can be packaged into standalone
executable programs
 Popular
 open source
 lots of tutorials and online resources
 very active community
4
Main pitfalls of Python
 Indentation identifies blocks of code
 Case sensitivity
 = is used to assign values
 == is used to test conditions
5
Python in geoinformatics?
YES!
Thousands of different modules and packages are
available to extend the functionality of Python
containing several ones related to geoinformatics.
6
ArcGIS
7
ArcGIS
Arcgisscripting (ArGIS 9.x)
Arcpy (ArcGIS 10.x)
 automate geoprocessing tasks
 manage map documents and layers
 find and fix broken data links
 edit data in feature classes and tables
8
Creating KML files
XML based language to describe features with geospatial
information
Simple text file
Modul: xml.dom.minidom
Assuming that you are already familiar with reading shape
files or geodatabases you can now write your own function to
export data.
9
QGIS
 Python Console
The integrated Python console is ideal for scripting. When
the console is started the modules qgis.core and qgis.utils
will be imported automatically.
 Python Plugins
It is possible to create and use Python plugins to enhance
the functionality of QGIS. The plugin installer allows users
to easily fetch, upgrade and remove Python plugins.
 Python Applications
Custom applications can be developed based on QGIS API.
10
11
12
Projections
 Pyproj
 ”wrapper’” around library called PROJ.4
 Class: Proj
longitude, latitude  native map (x,y) coordinates
 Class: Geod
performs various Great Circle distance and angle
calculations
npts() method: calculates
the coordinates of a number
of points spaced equidistantly
along a geodesic line
13
Projections
Translating UTM location into latitude and longitude
14
Visualizing geospatial data
 Mapnik toolkit: to build mapping applications

 Heavily used by OpenStreetMap, because it produces
images which are ideal to include in webpages.
15
Geospatial data from
PostGIS database,
shapefile, any other
format supported by
GDAL
Clearly rendered
images
Analyzing and manipulating geospatial
data
Shapely
package for manipulation and analysis of two-dimensional
geospatial geometries.
Based on the GEOS library.
16
Conclusion
Do you maybe know additional packages?
There are several packages which support
geoinformatics, and from which I overviewed some,
pointing out how useful is to get to know Python
language.
17

More Related Content

PDF
Symbology Automation using ArcPy
PPTX
Py datanyc2015
PPTX
c,c++,java and python in gis development
PDF
Python Científico
PDF
Up and Down the Python Data & Web Visualization Stack by Rob Story PyData SV ...
PPTX
BDE_SC4_WS3_6_Luigi Selmi - Pilot SC4
PDF
h5web: a web-based viewer of HDF5 files
PDF
Python and GIS
Symbology Automation using ArcPy
Py datanyc2015
c,c++,java and python in gis development
Python Científico
Up and Down the Python Data & Web Visualization Stack by Rob Story PyData SV ...
BDE_SC4_WS3_6_Luigi Selmi - Pilot SC4
h5web: a web-based viewer of HDF5 files
Python and GIS

Similar to Python in geoinformatics (20)

PPTX
APPLICATION OF PYTHON IN GEOSCIENCE
PPTX
Gdal introduction
PDF
Open Source GIS Workshop
PDF
Anaconda Python KNIME & Orange Installation
PPTX
Python ppt.pptx
PPTX
Python ppt.pptx
PPT
Open Source Databases And Gis
PDF
Glympse API Cross Compiling
PPTX
Introduction to GIS
PPTX
Python | What is Python | History of Python | Python Tutorial
PPT
Open Source GIS
PDF
Specialist-ArcGIS-Server-API-3.x-and-4-for-JavaScript.pdf
PDF
International Journal of Engineering Research and Development (IJERD)
PDF
Using python to analyze spatial data
PDF
The recovery of netherlands geographic information system (nlgis 2)
 
PPT
python programming language ppt by brandon
PPT
Mobile gis
PPTX
FOSS4G-NA 2012 : ReadyMap - OpenLayers in 3D
PDF
SAPUI5Role
APPLICATION OF PYTHON IN GEOSCIENCE
Gdal introduction
Open Source GIS Workshop
Anaconda Python KNIME & Orange Installation
Python ppt.pptx
Python ppt.pptx
Open Source Databases And Gis
Glympse API Cross Compiling
Introduction to GIS
Python | What is Python | History of Python | Python Tutorial
Open Source GIS
Specialist-ArcGIS-Server-API-3.x-and-4-for-JavaScript.pdf
International Journal of Engineering Research and Development (IJERD)
Using python to analyze spatial data
The recovery of netherlands geographic information system (nlgis 2)
 
python programming language ppt by brandon
Mobile gis
FOSS4G-NA 2012 : ReadyMap - OpenLayers in 3D
SAPUI5Role
Ad

More from MapWindow GIS (20)

PPTX
Decision Support in Uncertain Real Estate Transactions
PPTX
Comparative analysis of Székesfehérvár and Veszprém based on geoinformatic me...
PDF
Recent trends in the world of computers – Thought and facts
PPTX
Hydrological investigations in the Rétköz, Hungary
PDF
The multiresolution image format
PPTX
Guidelines for handling large amount of KML data
PPT
GIS based sewer maintenance using MapWindow Open Source GIS
PDF
State of FOSS4G in Hungary
PPT
Gis in Bihor
PDF
Workshop: Community mapping and empowerment by Nagesh Kolagani
PDF
Workshop: Community mapping and empowerment by Nagesh Kolagani
PDF
Ease-of-use and Effectiveness of Participatory GIS in Empowering Rural Commun...
PDF
Ease-of-use and Effectiveness of Participatory GIS in Empowering Rural Commun...
PDF
What's new in MapWindow v4.8 by Paul Meems
ODP
Collaborative geoprocessing with GGL by Fernando González Cortes
PDF
inp.PINS a link between GIS and Storm Water Management Model by Rui Daniel Pina
PDF
Ease-of-use and Effectiveness of Participatory GIS in Empowering Rural Commun...
ODP
Ktunaxa RMS, open source GIS for a first nation by Joachim Van der Auwera
ODP
Introducing the Geomajas Open Source framework for building spatial web appli...
PDF
Data mining in big databases with geo reference and easy web publishing and s...
Decision Support in Uncertain Real Estate Transactions
Comparative analysis of Székesfehérvár and Veszprém based on geoinformatic me...
Recent trends in the world of computers – Thought and facts
Hydrological investigations in the Rétköz, Hungary
The multiresolution image format
Guidelines for handling large amount of KML data
GIS based sewer maintenance using MapWindow Open Source GIS
State of FOSS4G in Hungary
Gis in Bihor
Workshop: Community mapping and empowerment by Nagesh Kolagani
Workshop: Community mapping and empowerment by Nagesh Kolagani
Ease-of-use and Effectiveness of Participatory GIS in Empowering Rural Commun...
Ease-of-use and Effectiveness of Participatory GIS in Empowering Rural Commun...
What's new in MapWindow v4.8 by Paul Meems
Collaborative geoprocessing with GGL by Fernando González Cortes
inp.PINS a link between GIS and Storm Water Management Model by Rui Daniel Pina
Ease-of-use and Effectiveness of Participatory GIS in Empowering Rural Commun...
Ktunaxa RMS, open source GIS for a first nation by Joachim Van der Auwera
Introducing the Geomajas Open Source framework for building spatial web appli...
Data mining in big databases with geo reference and easy web publishing and s...
Ad

Recently uploaded (20)

PDF
Why TechBuilder is the Future of Pickup and Delivery App Development (1).pdf
PDF
Wondershare Filmora 15 Crack With Activation Key [2025
PDF
Audit Checklist Design Aligning with ISO, IATF, and Industry Standards — Omne...
PDF
EN-Survey-Report-SAP-LeanIX-EA-Insights-2025.pdf
PPTX
Agentic AI : A Practical Guide. Undersating, Implementing and Scaling Autono...
PDF
Internet Downloader Manager (IDM) Crack 6.42 Build 41
PPTX
ai tools demonstartion for schools and inter college
PDF
top salesforce developer skills in 2025.pdf
PDF
Design an Analysis of Algorithms II-SECS-1021-03
PDF
Raksha Bandhan Grocery Pricing Trends in India 2025.pdf
PDF
Design an Analysis of Algorithms I-SECS-1021-03
PDF
Understanding Forklifts - TECH EHS Solution
PDF
System and Network Administration Chapter 2
PDF
How Creative Agencies Leverage Project Management Software.pdf
PDF
wealthsignaloriginal-com-DS-text-... (1).pdf
PDF
medical staffing services at VALiNTRY
PDF
Claude Code: Everyone is a 10x Developer - A Comprehensive AI-Powered CLI Tool
PDF
Internet Downloader Manager (IDM) Crack 6.42 Build 42 Updates Latest 2025
PDF
Addressing The Cult of Project Management Tools-Why Disconnected Work is Hold...
PDF
Flood Susceptibility Mapping Using Image-Based 2D-CNN Deep Learnin. Overview ...
Why TechBuilder is the Future of Pickup and Delivery App Development (1).pdf
Wondershare Filmora 15 Crack With Activation Key [2025
Audit Checklist Design Aligning with ISO, IATF, and Industry Standards — Omne...
EN-Survey-Report-SAP-LeanIX-EA-Insights-2025.pdf
Agentic AI : A Practical Guide. Undersating, Implementing and Scaling Autono...
Internet Downloader Manager (IDM) Crack 6.42 Build 41
ai tools demonstartion for schools and inter college
top salesforce developer skills in 2025.pdf
Design an Analysis of Algorithms II-SECS-1021-03
Raksha Bandhan Grocery Pricing Trends in India 2025.pdf
Design an Analysis of Algorithms I-SECS-1021-03
Understanding Forklifts - TECH EHS Solution
System and Network Administration Chapter 2
How Creative Agencies Leverage Project Management Software.pdf
wealthsignaloriginal-com-DS-text-... (1).pdf
medical staffing services at VALiNTRY
Claude Code: Everyone is a 10x Developer - A Comprehensive AI-Powered CLI Tool
Internet Downloader Manager (IDM) Crack 6.42 Build 42 Updates Latest 2025
Addressing The Cult of Project Management Tools-Why Disconnected Work is Hold...
Flood Susceptibility Mapping Using Image-Based 2D-CNN Deep Learnin. Overview ...

Python in geoinformatics

  • 2. Agenda  Motivation  The language (with the main pitfalls)  ArcGIS  KML  QGIS  Projections  Visualization  Analysis and management of geospatial data 2
  • 3. The language  General-purpose interpreted, interactive, high-level programming language  Multiple programming paradigms  Object-oriented  Imperative  Functional programming  Procedural  Dynamic language: Scripting  Non scripting 3
  • 4. The language  Python code can be packaged into standalone executable programs  Popular  open source  lots of tutorials and online resources  very active community 4
  • 5. Main pitfalls of Python  Indentation identifies blocks of code  Case sensitivity  = is used to assign values  == is used to test conditions 5
  • 6. Python in geoinformatics? YES! Thousands of different modules and packages are available to extend the functionality of Python containing several ones related to geoinformatics. 6
  • 8. ArcGIS Arcgisscripting (ArGIS 9.x) Arcpy (ArcGIS 10.x)  automate geoprocessing tasks  manage map documents and layers  find and fix broken data links  edit data in feature classes and tables 8
  • 9. Creating KML files XML based language to describe features with geospatial information Simple text file Modul: xml.dom.minidom Assuming that you are already familiar with reading shape files or geodatabases you can now write your own function to export data. 9
  • 10. QGIS  Python Console The integrated Python console is ideal for scripting. When the console is started the modules qgis.core and qgis.utils will be imported automatically.  Python Plugins It is possible to create and use Python plugins to enhance the functionality of QGIS. The plugin installer allows users to easily fetch, upgrade and remove Python plugins.  Python Applications Custom applications can be developed based on QGIS API. 10
  • 11. 11
  • 12. 12
  • 13. Projections  Pyproj  ”wrapper’” around library called PROJ.4  Class: Proj longitude, latitude  native map (x,y) coordinates  Class: Geod performs various Great Circle distance and angle calculations npts() method: calculates the coordinates of a number of points spaced equidistantly along a geodesic line 13
  • 14. Projections Translating UTM location into latitude and longitude 14
  • 15. Visualizing geospatial data  Mapnik toolkit: to build mapping applications   Heavily used by OpenStreetMap, because it produces images which are ideal to include in webpages. 15 Geospatial data from PostGIS database, shapefile, any other format supported by GDAL Clearly rendered images
  • 16. Analyzing and manipulating geospatial data Shapely package for manipulation and analysis of two-dimensional geospatial geometries. Based on the GEOS library. 16
  • 17. Conclusion Do you maybe know additional packages? There are several packages which support geoinformatics, and from which I overviewed some, pointing out how useful is to get to know Python language. 17

Editor's Notes

  • #3: Motivation: VBA ->
  • #4: It was created in the late eighties and early nineties Python supports multiple programming paradigms, including
  • #6: compact; there is no begin/end (or similar) statements to identify blocks of code colon
  • #8: demonstrates a number of ways how to use Python in ArcGIS.
  • #9: site package . In ArcGIS 9.x Python was just an option to perform geoprocessing tasks, although it was installed automatically with ArcGIS. Since the support of VBA will end totally after the version 10, every developer has to select a new platform.
  • #10: Every piece of information is enclosed by tags
  • #11: http://www.qgistutorials.com/en/docs/find_neighbor_polygons.html It is probably not surprising that the open source Python is ready to support an open source GIS software product too. Python can be used in several ways in QGIS:
  • #15: Two Proj objects
  • #16: works with geospatial data from PostGIS database, shapefile, or any other format supported by GDAL, and produces clearly-rendered, good-looking images
  • #17: https://pypi.python.org/pypi/Shapely Manipulation and analysis of geometric objects in the Cartesian plane. Shapely uses the GEOS library for all operations. GEOS is written in C++ and used in many applications and you can expect that all operations are highly optimized. The creation of new geometries with many coordinates, however, involves some overhead that might slow down your code.