SlideShare a Scribd company logo
Workshop – Lund 2015 1
Landscape ecology analysis with QGIS
Workshop at Lund University (2015) by Martin Jung
Workshop – Lund 2015 2
About me
● BSc thesis about plant-pollinator networks in Białowieza
● MSc thesis about broad-scale biodiversity modelling
● Starting a PhD in september on Global biodiversity impacts of land-use
dynamics
● Using QGISQGIS since many years, two plugins (LecoS, QSDM)
Twitter: @Martin_Ecology
Blog: http://conservationecology.wordpress.com/
Workshop – Lund 2015 3
Roadplan for today
1 Working with GIS formats and attributes in QGIS
2 Projections
3 Introduction to Georeferencing with QGIS
… Short break somewhere here ...
4 Landscape Analysis with QGIS (LecoS)
5 Questions and problems (...Open end...)
Workshop – Lund 2015 4
Now install (if you haven't already)
● Make some room on your computer (at least 1 GB !)
● Install the current Stable Version ( QGIS 2.8 ) on your computer (see
provided folder) for Windows
● MAC-Users: Download QGIS and install python libraries
● (http://www.kyngchaos.com/software/python )
Important!
– Make sure the libraries python-scipy, python-numpy, python-pil and python-
matplotlib are checked
Workshop – Lund 2015 5
● Select “Advanced Install”
● “Install from local Folder”
● Mark everything
– Qgis
– Python-numpy
– Python-scipy
– ...
How to install (WIN)
Install from local folder
Workshop – Lund 2015 6
GIS data
formats
Source: maprabu.blogspot.com
Format:
*.shp, *.csv, *.gpx, *.kml, ...
Format:
*.tif, *.vrt, *.hdr, *.asc, ...
Workshop – Lund 2015 7
Raster vs vector
● Vector
– Advantage: Accuracy, more visually pleasing
– Disadvantage: Space-inefficient. Every vertex needs to be stored.
Algorithms computational intensive.
● Raster
– Advantage: Geogr. Position associated with data, easier for analysis
– Disadvantage: Resolution dependent on cellsize. Often not nice-
looking
Workshop – Lund 2015 8
Other data sources
● Google, Bing, Openstreetmaps, ... ( OpenLayers plugin)
● WMS server, for instance the EEA WMS services
– http://discomap.eea.europa.eu/home.html
– Can be loaded into QGIS as WMS layer
Those files can be visualized, but not edited (see WFS) !!!
You can make a screenshot though and georeference this, but check
the publishers license!
Workshop – Lund 2015 9
A note on proprietary formats
● Long-term ArcGIS users are often confronted with .lyr files
– Proprietary format by ESRI. Container that stores data and viz
● (Open-source alternative in QGIS ← .qlr )
● TMK: Not convertible without having a ESRI license!
– Arc2Earth extension for ArcMap lets you save .lyr to .sld
Workshop – Lund 2015 10
What are Map projections
● Map projections to represent a 3-dimensional structure on a 2d
planar plane
● Many formats and types
– Spherical, azimuthal, equidistant, equal area, …
– Most commonly used:
● WGS84 (lon,lat ← In degree)
● WGS84 Google Pseudo-Mercator (in meter, but inaccurate in tropics!!! )
● WGS84 UTM (in meter, subdivided in lon-lat grids)
http://epsg.io/ ← Lookup projections
Workshop – Lund 2015 11
Now hands on in QGIS
Workshop – Lund 2015 12
Geo-referencing with QGIS
● GR is the process of
associating data with spatial
coordinates
● In QGIS using the excellent
gdal-referencer
● What we need:
– A non-spatial file
– A reference projection
– Reference points or ROI
Harsjön
Workshop – Lund 2015 13
(1) Get the geocode plugin (or use the bar) to jump to
59.55275,18.33490 long-lat
(2) Load Google layers or any other WMS service
(3) Make sure the gdal-georeferencer is available (Raster menu)
(4) Add the Harsjön.tif file to the referencer and add around 5-6
GCP points – Choose linear interpolation
(5) Now you have the rasterized the map and create a new
vector point layer with the study-locations
Workshop – Lund 2015 14
Visualizing Gradients
● Add the pH-0915_3.csv to
QGIS via “Add-delimited-
Text-layer”
● Specify RT90 2.5 gon V as
projection (assumed)
● Color the points with the Ph
attribute
● Subset to Skane (Select –
Save Selection).
Computational intensive!!!
● Use the Heatmap plugin (Ph
as weight) or GRASS-
modules in Processing
(v.surf.*)
Vector Raster
Workshop – Lund 2015 15
Use the new Heatmap renderer (QGIS 2.8)
Workshop – Lund 2015 16
Short Break
Kort paus
Kurze Pause
Workshop – Lund 2015 17
LecoS
● Simple Plugin to extract landscape metrics from raster layer
● Inspired by FRAGSTAT
● With Graphical interface, but more options available in
Processing Toolbox
Workshop – Lund 2015 18
Example Data set
Use the data within the Gotland zip file
Workshop – Lund 2015 19
Research questions
1) What is the most abundant land-cover type in the study
locations?
2) How much combined forest is there in our study sites?
3) How heterogen is the landcover in our study-sites?
4) What is the distance to the Forest-edge for each of our sites?
● (Optional) Neutral Landscape Models with NLMPy
Workshop – Lund 2015 20
Landscape analysis preparation
Landscape Layer Studylocations with 500m Buffer
Workshop – Lund 2015 21
Research Question 1.)
● Crop your the raster dataset with your buffered Studysites
(overlapping buffers are not correctly cropped. Use DissolveDissolve first)
● Use “LecoS – Land cover statistics” to compute the
“Landscape proportion” of each land cover class
● Use “Groupstats”, “QScatter” or “Statist” to get the aggregated
values
– Or export to csv and open with a spreadsheet program!
Workshop – Lund 2015 22
Results Question 1.)
Results Top 3:
30 (Åkermark) Arable land→ 21 %
44 (Barrskog ej på lavmark 7-15 meter) Coniferous
forest →17 %
32 (Betesmark) Pasture → 11 %
Workshop – Lund 2015 23
Research Question 2.)
● Isolate all forest cover from both datasets using the raster calculator
(Classes 40 – 50)
●
("Layer_Gotland@1" >= 40 AND "Layer_Gotland@1" <= 50)("Layer_Gotland@1" >= 40 AND "Layer_Gotland@1" <= 50)
● Use “LecoS – Polygon overlay” to compute the Total forest cover for
each buffer
● Ether add to attribute table (Layer needs to be reloaded ) or save as
csv
Workshop – Lund 2015 24
Results Question 2.)
● On average:
– 285874 m² (28.58 ha)
Workshop – Lund 2015 25
Research Question 3.)
● In order to measure land-cover heterogeneity you have 2
options:
– Ether use the Moving Window in the Processing Toolbox, select
variety and an appropriate window size
– Afterwards extract the mean for each of your buffers using the
polygon-overlay
● Or
– Use the LecoS polygon-overlay tool to compute a “diversity-index”
like Shannon or Simpson index for each of your buffers
Workshop – Lund 2015 26
Research
Question 3.)
Workshop – Lund 2015 27
Research Question 4.)
The landscape modifier
● Clean Map of small pixels
● Extract the forest edge of the previous
generated forest extract.
● Then use the Proximity tool in the
Raster menu
● Use the Save-As function (rightclick
raster) to correctly set a nodata-value
● Use LecoS to extract the median values
inside the grid per buffer or point
Workshop – Lund 2015 28
Results question 4.)
FeatureID 27 + 30
farthest away from forest
edge
~ 942m and 522m
Workshop – Lund 2015 29
(Optional) Neutral Landscape Models (NLMpy)
● LecoS has optional NLMpy
support since version 1.9.3
● Neutral Landscape Models
as “Nullmodel” for continuous
and classified landscapes
● Publication:
● onlinelibrary.wiley.com/doi/10
.1111/2041-210X.12308/full
Workshop – Lund 2015 30
How to get the library?
● In order to install non-supported libraries you have to use PIP
(python package index).
● NO Guarantee that this will work for your!
● https://pypi.python.org/pypi/nlmpy
– Open the Python console in QGIS (or terminal on Linux)
– Run pip install nlmpy
– Or alternatively download and pip install nlmpy-0.1.1.tar.gz
Workshop – Lund 2015 31
Time for Map Presentation?
Workshop – Lund 2015 32
Running scripts in the Processing Toolbox
● The Processing toolbox (formerly called Sextante) in QGIS can
be used to write models and script to do repeatable tasks
● Currently Python and R scripts are supported
● In order to create a R-script, make sure that it is enabled in the
Processing options (menu)
Workshop – Lund 2015 33
Other useful stuff -
Processing R commands
Command Function
##[datagis]=group Sets the group to “datagis”
##layer = vector or raster Specifies the input layer to use
##distance=number 100 Sets a number field with default 100
##title=string France Get text input. Default is “France”
##field=field layer Select a field from the vector layer “layer”
hist(layer[[field]]) R-command: Histogram for fields from layer
##showplots Has to be set in order to see plot outputs
>t.test(layer[[field]]) Console output with a “>” before command
##output=output vector File output as vector or raster
Workshop – Lund 2015 34
Example Script
##[Own Scripts]=group
##showplots
##layer=vector
##y=field layer
##x=field layer
plot(as.numeric( layer[[y]] )~as.numeric( layer[[x]] ),pch=19,bty="l",ylab=paste( y ),xlab=paste( x ) )
fit = lm( layer[[y]]~layer[[x]] )
abline(fit,col="blue",lwd=2)
Workshop – Lund 2015 35
Additional examples, help and tutorials
● http://www.gistutor.com/
● http://qgis.spatialthoughts.com/
● Youtube → search QGIS
● http://gis.stackexchange.com
● QGIS-user mailing list → http://lists.osgeo.org/listinfo/qgis-user
Workshop – Lund 2015 36
Thanks for your attention!
Open questions....!

More Related Content

Viewers also liked

Reproducibility with R
Reproducibility with RReproducibility with R
Reproducibility with R
Martin Jung
 
Apresentação Achva Stein
Apresentação Achva SteinApresentação Achva Stein
Apresentação Achva Stein
transformurb
 
Millington Research Overview | EED Seminar Sept 2013
Millington Research Overview | EED Seminar Sept 2013Millington Research Overview | EED Seminar Sept 2013
Millington Research Overview | EED Seminar Sept 2013
James Millington
 
R presentation - UoN
R presentation - UoNR presentation - UoN
R presentation - UoN
Lukasz Kosma Bonenberg
 
WF ED 540, CLASS MEETING 7, RMarkdown, 2016
WF ED 540, CLASS MEETING 7, RMarkdown, 2016WF ED 540, CLASS MEETING 7, RMarkdown, 2016
WF ED 540, CLASS MEETING 7, RMarkdown, 2016
Penn State University
 
Landscape ecology (2013bpln010)
Landscape ecology (2013bpln010)Landscape ecology (2013bpln010)
Landscape ecology (2013bpln010)
Bhupendra Singh
 
Landscape ecology
Landscape ecologyLandscape ecology
Landscape ecology
Mary Scipioni
 
Ecology architecture
Ecology architectureEcology architecture
Ecology architecture
Universidad Yacambú
 

Viewers also liked (8)

Reproducibility with R
Reproducibility with RReproducibility with R
Reproducibility with R
 
Apresentação Achva Stein
Apresentação Achva SteinApresentação Achva Stein
Apresentação Achva Stein
 
Millington Research Overview | EED Seminar Sept 2013
Millington Research Overview | EED Seminar Sept 2013Millington Research Overview | EED Seminar Sept 2013
Millington Research Overview | EED Seminar Sept 2013
 
R presentation - UoN
R presentation - UoNR presentation - UoN
R presentation - UoN
 
WF ED 540, CLASS MEETING 7, RMarkdown, 2016
WF ED 540, CLASS MEETING 7, RMarkdown, 2016WF ED 540, CLASS MEETING 7, RMarkdown, 2016
WF ED 540, CLASS MEETING 7, RMarkdown, 2016
 
Landscape ecology (2013bpln010)
Landscape ecology (2013bpln010)Landscape ecology (2013bpln010)
Landscape ecology (2013bpln010)
 
Landscape ecology
Landscape ecologyLandscape ecology
Landscape ecology
 
Ecology architecture
Ecology architectureEcology architecture
Ecology architecture
 

Similar to Lund 2015 - QGIS workshop

Presentation - Lund 2013 GIS workshop
Presentation - Lund 2013 GIS workshopPresentation - Lund 2013 GIS workshop
Presentation - Lund 2013 GIS workshop
Martin Jung
 
R programming for data science
R programming for data scienceR programming for data science
R programming for data science
Sovello Hildebrand
 
A performance analysis of OpenStack Cloud vs Real System on Hadoop Clusters
A performance analysis of OpenStack Cloud vs Real System on Hadoop ClustersA performance analysis of OpenStack Cloud vs Real System on Hadoop Clusters
A performance analysis of OpenStack Cloud vs Real System on Hadoop Clusters
Kumari Surabhi
 
2018 - Grupo QGIS Brasil e o lançamento do QGIS 3.4 LTR (Versão de Longo Prazo)
2018 - Grupo QGIS Brasil e o lançamento do QGIS 3.4 LTR (Versão de Longo Prazo)2018 - Grupo QGIS Brasil e o lançamento do QGIS 3.4 LTR (Versão de Longo Prazo)
2018 - Grupo QGIS Brasil e o lançamento do QGIS 3.4 LTR (Versão de Longo Prazo)
George Porto Ferreira
 
Integrating Puppet and Gitolite for sysadmins cooperations
Integrating Puppet and Gitolite for sysadmins cooperationsIntegrating Puppet and Gitolite for sysadmins cooperations
Integrating Puppet and Gitolite for sysadmins cooperations
Luca Mazzaferro
 
Hadoop and Spark
Hadoop and SparkHadoop and Spark
Hadoop and Spark
Shravan (Sean) Pabba
 
Processing Landsat 8 Multi-Spectral Images with GRASS Tools & the potential o...
Processing Landsat 8 Multi-Spectral Images with GRASS Tools & the potential o...Processing Landsat 8 Multi-Spectral Images with GRASS Tools & the potential o...
Processing Landsat 8 Multi-Spectral Images with GRASS Tools & the potential o...
Shaun Lewis
 
Apache Spark and Python: unified Big Data analytics
Apache Spark and Python: unified Big Data analyticsApache Spark and Python: unified Big Data analytics
Apache Spark and Python: unified Big Data analytics
Julien Anguenot
 
Deploying an Open Source DAM in SAAS Mode (European Drupal Days 2015)
Deploying an Open Source DAM in SAAS Mode (European Drupal Days 2015)Deploying an Open Source DAM in SAAS Mode (European Drupal Days 2015)
Deploying an Open Source DAM in SAAS Mode (European Drupal Days 2015)
Eugenio Minardi
 
OpenTelemetry For Architects
OpenTelemetry For ArchitectsOpenTelemetry For Architects
OpenTelemetry For Architects
Kevin Brockhoff
 
Ad-hoc Big-Data Analysis with Lua
Ad-hoc Big-Data Analysis with LuaAd-hoc Big-Data Analysis with Lua
Ad-hoc Big-Data Analysis with Lua
Alexander Gladysh
 
Introduction to GIS
Introduction to GISIntroduction to GIS
Introduction to GIS
Hans van der Kwast
 
11. From Hadoop to Spark 1:2
11. From Hadoop to Spark 1:211. From Hadoop to Spark 1:2
11. From Hadoop to Spark 1:2
Fabio Fumarola
 
Report Hadoop Map Reduce
Report Hadoop Map ReduceReport Hadoop Map Reduce
Report Hadoop Map Reduce
Urvashi Kataria
 
SCM Puppet: from an intro to the scaling
SCM Puppet: from an intro to the scalingSCM Puppet: from an intro to the scaling
SCM Puppet: from an intro to the scaling
Stanislav Osipov
 
Maintaining spatial data infrastructures (SDIs) using distributed task queues
Maintaining spatial data infrastructures (SDIs) using distributed task queuesMaintaining spatial data infrastructures (SDIs) using distributed task queues
Maintaining spatial data infrastructures (SDIs) using distributed task queues
Paolo Corti
 
DocDoku: Using web technologies in a desktop application. OW2con'15, November...
DocDoku: Using web technologies in a desktop application. OW2con'15, November...DocDoku: Using web technologies in a desktop application. OW2con'15, November...
DocDoku: Using web technologies in a desktop application. OW2con'15, November...
OW2
 
DocDokuPLM presentation - OW2Con 2015 Community Award winner
DocDokuPLM presentation - OW2Con 2015 Community Award winnerDocDokuPLM presentation - OW2Con 2015 Community Award winner
DocDokuPLM presentation - OW2Con 2015 Community Award winner
DocDoku
 
Big Linked Data Querying - ExtremeEarth Open Workshop
Big Linked Data Querying - ExtremeEarth Open WorkshopBig Linked Data Querying - ExtremeEarth Open Workshop
Big Linked Data Querying - ExtremeEarth Open Workshop
ExtremeEarth
 
Devoxx 2015 - Building the Internet of Things with Eclipse IoT
Devoxx 2015 - Building the Internet of Things with Eclipse IoTDevoxx 2015 - Building the Internet of Things with Eclipse IoT
Devoxx 2015 - Building the Internet of Things with Eclipse IoT
Benjamin Cabé
 

Similar to Lund 2015 - QGIS workshop (20)

Presentation - Lund 2013 GIS workshop
Presentation - Lund 2013 GIS workshopPresentation - Lund 2013 GIS workshop
Presentation - Lund 2013 GIS workshop
 
R programming for data science
R programming for data scienceR programming for data science
R programming for data science
 
A performance analysis of OpenStack Cloud vs Real System on Hadoop Clusters
A performance analysis of OpenStack Cloud vs Real System on Hadoop ClustersA performance analysis of OpenStack Cloud vs Real System on Hadoop Clusters
A performance analysis of OpenStack Cloud vs Real System on Hadoop Clusters
 
2018 - Grupo QGIS Brasil e o lançamento do QGIS 3.4 LTR (Versão de Longo Prazo)
2018 - Grupo QGIS Brasil e o lançamento do QGIS 3.4 LTR (Versão de Longo Prazo)2018 - Grupo QGIS Brasil e o lançamento do QGIS 3.4 LTR (Versão de Longo Prazo)
2018 - Grupo QGIS Brasil e o lançamento do QGIS 3.4 LTR (Versão de Longo Prazo)
 
Integrating Puppet and Gitolite for sysadmins cooperations
Integrating Puppet and Gitolite for sysadmins cooperationsIntegrating Puppet and Gitolite for sysadmins cooperations
Integrating Puppet and Gitolite for sysadmins cooperations
 
Hadoop and Spark
Hadoop and SparkHadoop and Spark
Hadoop and Spark
 
Processing Landsat 8 Multi-Spectral Images with GRASS Tools & the potential o...
Processing Landsat 8 Multi-Spectral Images with GRASS Tools & the potential o...Processing Landsat 8 Multi-Spectral Images with GRASS Tools & the potential o...
Processing Landsat 8 Multi-Spectral Images with GRASS Tools & the potential o...
 
Apache Spark and Python: unified Big Data analytics
Apache Spark and Python: unified Big Data analyticsApache Spark and Python: unified Big Data analytics
Apache Spark and Python: unified Big Data analytics
 
Deploying an Open Source DAM in SAAS Mode (European Drupal Days 2015)
Deploying an Open Source DAM in SAAS Mode (European Drupal Days 2015)Deploying an Open Source DAM in SAAS Mode (European Drupal Days 2015)
Deploying an Open Source DAM in SAAS Mode (European Drupal Days 2015)
 
OpenTelemetry For Architects
OpenTelemetry For ArchitectsOpenTelemetry For Architects
OpenTelemetry For Architects
 
Ad-hoc Big-Data Analysis with Lua
Ad-hoc Big-Data Analysis with LuaAd-hoc Big-Data Analysis with Lua
Ad-hoc Big-Data Analysis with Lua
 
Introduction to GIS
Introduction to GISIntroduction to GIS
Introduction to GIS
 
11. From Hadoop to Spark 1:2
11. From Hadoop to Spark 1:211. From Hadoop to Spark 1:2
11. From Hadoop to Spark 1:2
 
Report Hadoop Map Reduce
Report Hadoop Map ReduceReport Hadoop Map Reduce
Report Hadoop Map Reduce
 
SCM Puppet: from an intro to the scaling
SCM Puppet: from an intro to the scalingSCM Puppet: from an intro to the scaling
SCM Puppet: from an intro to the scaling
 
Maintaining spatial data infrastructures (SDIs) using distributed task queues
Maintaining spatial data infrastructures (SDIs) using distributed task queuesMaintaining spatial data infrastructures (SDIs) using distributed task queues
Maintaining spatial data infrastructures (SDIs) using distributed task queues
 
DocDoku: Using web technologies in a desktop application. OW2con'15, November...
DocDoku: Using web technologies in a desktop application. OW2con'15, November...DocDoku: Using web technologies in a desktop application. OW2con'15, November...
DocDoku: Using web technologies in a desktop application. OW2con'15, November...
 
DocDokuPLM presentation - OW2Con 2015 Community Award winner
DocDokuPLM presentation - OW2Con 2015 Community Award winnerDocDokuPLM presentation - OW2Con 2015 Community Award winner
DocDokuPLM presentation - OW2Con 2015 Community Award winner
 
Big Linked Data Querying - ExtremeEarth Open Workshop
Big Linked Data Querying - ExtremeEarth Open WorkshopBig Linked Data Querying - ExtremeEarth Open Workshop
Big Linked Data Querying - ExtremeEarth Open Workshop
 
Devoxx 2015 - Building the Internet of Things with Eclipse IoT
Devoxx 2015 - Building the Internet of Things with Eclipse IoTDevoxx 2015 - Building the Internet of Things with Eclipse IoT
Devoxx 2015 - Building the Internet of Things with Eclipse IoT
 

Recently uploaded

在线办理(lboro毕业证书)拉夫堡大学毕业证学历证书一模一样
在线办理(lboro毕业证书)拉夫堡大学毕业证学历证书一模一样在线办理(lboro毕业证书)拉夫堡大学毕业证学历证书一模一样
在线办理(lboro毕业证书)拉夫堡大学毕业证学历证书一模一样
pjq9n1lk
 
Overview of the Global Peatlands Assessment
Overview of the Global Peatlands AssessmentOverview of the Global Peatlands Assessment
Overview of the Global Peatlands Assessment
Global Landscapes Forum (GLF)
 
Global Peatlands Map and Hotspot Explanation Atlas
Global Peatlands Map and Hotspot Explanation AtlasGlobal Peatlands Map and Hotspot Explanation Atlas
Global Peatlands Map and Hotspot Explanation Atlas
Global Landscapes Forum (GLF)
 
Improving the viability of probiotics by encapsulation methods for developmen...
Improving the viability of probiotics by encapsulation methods for developmen...Improving the viability of probiotics by encapsulation methods for developmen...
Improving the viability of probiotics by encapsulation methods for developmen...
Open Access Research Paper
 
Improving the Management of Peatlands and the Capacities of Stakeholders in I...
Improving the Management of Peatlands and the Capacities of Stakeholders in I...Improving the Management of Peatlands and the Capacities of Stakeholders in I...
Improving the Management of Peatlands and the Capacities of Stakeholders in I...
Global Landscapes Forum (GLF)
 
Climate Change All over the World .pptx
Climate Change All over the World  .pptxClimate Change All over the World  .pptx
Climate Change All over the World .pptx
sairaanwer024
 
Microbial characterisation and identification, and potability of River Kuywa ...
Microbial characterisation and identification, and potability of River Kuywa ...Microbial characterisation and identification, and potability of River Kuywa ...
Microbial characterisation and identification, and potability of River Kuywa ...
Open Access Research Paper
 
Kinetic studies on malachite green dye adsorption from aqueous solutions by A...
Kinetic studies on malachite green dye adsorption from aqueous solutions by A...Kinetic studies on malachite green dye adsorption from aqueous solutions by A...
Kinetic studies on malachite green dye adsorption from aqueous solutions by A...
Open Access Research Paper
 
DENR-PENRO-Bulacan-Presentation Philippine EIS
DENR-PENRO-Bulacan-Presentation Philippine EISDENR-PENRO-Bulacan-Presentation Philippine EIS
DENR-PENRO-Bulacan-Presentation Philippine EIS
MarlonJayBayag
 
一比一原版(UMTC毕业证书)明尼苏达大学双城分校毕业证如何办理
一比一原版(UMTC毕业证书)明尼苏达大学双城分校毕业证如何办理一比一原版(UMTC毕业证书)明尼苏达大学双城分校毕业证如何办理
一比一原版(UMTC毕业证书)明尼苏达大学双城分校毕业证如何办理
zm9ajxup
 
Optimizing Post Remediation Groundwater Performance with Enhanced Microbiolog...
Optimizing Post Remediation Groundwater Performance with Enhanced Microbiolog...Optimizing Post Remediation Groundwater Performance with Enhanced Microbiolog...
Optimizing Post Remediation Groundwater Performance with Enhanced Microbiolog...
Joshua Orris
 
world-environment-day-2024-240601103559-14f4c0b4.pptx
world-environment-day-2024-240601103559-14f4c0b4.pptxworld-environment-day-2024-240601103559-14f4c0b4.pptx
world-environment-day-2024-240601103559-14f4c0b4.pptx
mfasna35
 
Peatland Management in Indonesia, Science to Policy and Knowledge Education
Peatland Management in Indonesia, Science to Policy and Knowledge EducationPeatland Management in Indonesia, Science to Policy and Knowledge Education
Peatland Management in Indonesia, Science to Policy and Knowledge Education
Global Landscapes Forum (GLF)
 
Global Climate Change and global warming
Global Climate Change and global warmingGlobal Climate Change and global warming
Global Climate Change and global warming
ballkicker20
 
How about Huawei mobile phone-www.cfye-commerce.shop
How about Huawei mobile phone-www.cfye-commerce.shopHow about Huawei mobile phone-www.cfye-commerce.shop
How about Huawei mobile phone-www.cfye-commerce.shop
laozhuseo02
 
原版制作(Newcastle毕业证书)纽卡斯尔大学毕业证在读证明一模一样
原版制作(Newcastle毕业证书)纽卡斯尔大学毕业证在读证明一模一样原版制作(Newcastle毕业证书)纽卡斯尔大学毕业证在读证明一模一样
原版制作(Newcastle毕业证书)纽卡斯尔大学毕业证在读证明一模一样
p2npnqp
 
ENVIRONMENT~ Renewable Energy Sources and their future prospects.
ENVIRONMENT~ Renewable Energy Sources and their future prospects.ENVIRONMENT~ Renewable Energy Sources and their future prospects.
ENVIRONMENT~ Renewable Energy Sources and their future prospects.
tiwarimanvi3129
 
Peatlands of Latin America and the Caribbean
Peatlands of Latin America and the CaribbeanPeatlands of Latin America and the Caribbean
Peatlands of Latin America and the Caribbean
Global Landscapes Forum (GLF)
 
Enhanced action and stakeholder engagement for sustainable peatland management
Enhanced action and stakeholder engagement for sustainable peatland managementEnhanced action and stakeholder engagement for sustainable peatland management
Enhanced action and stakeholder engagement for sustainable peatland management
Global Landscapes Forum (GLF)
 
Evolving Lifecycles with High Resolution Site Characterization (HRSC) and 3-D...
Evolving Lifecycles with High Resolution Site Characterization (HRSC) and 3-D...Evolving Lifecycles with High Resolution Site Characterization (HRSC) and 3-D...
Evolving Lifecycles with High Resolution Site Characterization (HRSC) and 3-D...
Joshua Orris
 

Recently uploaded (20)

在线办理(lboro毕业证书)拉夫堡大学毕业证学历证书一模一样
在线办理(lboro毕业证书)拉夫堡大学毕业证学历证书一模一样在线办理(lboro毕业证书)拉夫堡大学毕业证学历证书一模一样
在线办理(lboro毕业证书)拉夫堡大学毕业证学历证书一模一样
 
Overview of the Global Peatlands Assessment
Overview of the Global Peatlands AssessmentOverview of the Global Peatlands Assessment
Overview of the Global Peatlands Assessment
 
Global Peatlands Map and Hotspot Explanation Atlas
Global Peatlands Map and Hotspot Explanation AtlasGlobal Peatlands Map and Hotspot Explanation Atlas
Global Peatlands Map and Hotspot Explanation Atlas
 
Improving the viability of probiotics by encapsulation methods for developmen...
Improving the viability of probiotics by encapsulation methods for developmen...Improving the viability of probiotics by encapsulation methods for developmen...
Improving the viability of probiotics by encapsulation methods for developmen...
 
Improving the Management of Peatlands and the Capacities of Stakeholders in I...
Improving the Management of Peatlands and the Capacities of Stakeholders in I...Improving the Management of Peatlands and the Capacities of Stakeholders in I...
Improving the Management of Peatlands and the Capacities of Stakeholders in I...
 
Climate Change All over the World .pptx
Climate Change All over the World  .pptxClimate Change All over the World  .pptx
Climate Change All over the World .pptx
 
Microbial characterisation and identification, and potability of River Kuywa ...
Microbial characterisation and identification, and potability of River Kuywa ...Microbial characterisation and identification, and potability of River Kuywa ...
Microbial characterisation and identification, and potability of River Kuywa ...
 
Kinetic studies on malachite green dye adsorption from aqueous solutions by A...
Kinetic studies on malachite green dye adsorption from aqueous solutions by A...Kinetic studies on malachite green dye adsorption from aqueous solutions by A...
Kinetic studies on malachite green dye adsorption from aqueous solutions by A...
 
DENR-PENRO-Bulacan-Presentation Philippine EIS
DENR-PENRO-Bulacan-Presentation Philippine EISDENR-PENRO-Bulacan-Presentation Philippine EIS
DENR-PENRO-Bulacan-Presentation Philippine EIS
 
一比一原版(UMTC毕业证书)明尼苏达大学双城分校毕业证如何办理
一比一原版(UMTC毕业证书)明尼苏达大学双城分校毕业证如何办理一比一原版(UMTC毕业证书)明尼苏达大学双城分校毕业证如何办理
一比一原版(UMTC毕业证书)明尼苏达大学双城分校毕业证如何办理
 
Optimizing Post Remediation Groundwater Performance with Enhanced Microbiolog...
Optimizing Post Remediation Groundwater Performance with Enhanced Microbiolog...Optimizing Post Remediation Groundwater Performance with Enhanced Microbiolog...
Optimizing Post Remediation Groundwater Performance with Enhanced Microbiolog...
 
world-environment-day-2024-240601103559-14f4c0b4.pptx
world-environment-day-2024-240601103559-14f4c0b4.pptxworld-environment-day-2024-240601103559-14f4c0b4.pptx
world-environment-day-2024-240601103559-14f4c0b4.pptx
 
Peatland Management in Indonesia, Science to Policy and Knowledge Education
Peatland Management in Indonesia, Science to Policy and Knowledge EducationPeatland Management in Indonesia, Science to Policy and Knowledge Education
Peatland Management in Indonesia, Science to Policy and Knowledge Education
 
Global Climate Change and global warming
Global Climate Change and global warmingGlobal Climate Change and global warming
Global Climate Change and global warming
 
How about Huawei mobile phone-www.cfye-commerce.shop
How about Huawei mobile phone-www.cfye-commerce.shopHow about Huawei mobile phone-www.cfye-commerce.shop
How about Huawei mobile phone-www.cfye-commerce.shop
 
原版制作(Newcastle毕业证书)纽卡斯尔大学毕业证在读证明一模一样
原版制作(Newcastle毕业证书)纽卡斯尔大学毕业证在读证明一模一样原版制作(Newcastle毕业证书)纽卡斯尔大学毕业证在读证明一模一样
原版制作(Newcastle毕业证书)纽卡斯尔大学毕业证在读证明一模一样
 
ENVIRONMENT~ Renewable Energy Sources and their future prospects.
ENVIRONMENT~ Renewable Energy Sources and their future prospects.ENVIRONMENT~ Renewable Energy Sources and their future prospects.
ENVIRONMENT~ Renewable Energy Sources and their future prospects.
 
Peatlands of Latin America and the Caribbean
Peatlands of Latin America and the CaribbeanPeatlands of Latin America and the Caribbean
Peatlands of Latin America and the Caribbean
 
Enhanced action and stakeholder engagement for sustainable peatland management
Enhanced action and stakeholder engagement for sustainable peatland managementEnhanced action and stakeholder engagement for sustainable peatland management
Enhanced action and stakeholder engagement for sustainable peatland management
 
Evolving Lifecycles with High Resolution Site Characterization (HRSC) and 3-D...
Evolving Lifecycles with High Resolution Site Characterization (HRSC) and 3-D...Evolving Lifecycles with High Resolution Site Characterization (HRSC) and 3-D...
Evolving Lifecycles with High Resolution Site Characterization (HRSC) and 3-D...
 

Lund 2015 - QGIS workshop

  • 1. Workshop – Lund 2015 1 Landscape ecology analysis with QGIS Workshop at Lund University (2015) by Martin Jung
  • 2. Workshop – Lund 2015 2 About me ● BSc thesis about plant-pollinator networks in Białowieza ● MSc thesis about broad-scale biodiversity modelling ● Starting a PhD in september on Global biodiversity impacts of land-use dynamics ● Using QGISQGIS since many years, two plugins (LecoS, QSDM) Twitter: @Martin_Ecology Blog: http://conservationecology.wordpress.com/
  • 3. Workshop – Lund 2015 3 Roadplan for today 1 Working with GIS formats and attributes in QGIS 2 Projections 3 Introduction to Georeferencing with QGIS … Short break somewhere here ... 4 Landscape Analysis with QGIS (LecoS) 5 Questions and problems (...Open end...)
  • 4. Workshop – Lund 2015 4 Now install (if you haven't already) ● Make some room on your computer (at least 1 GB !) ● Install the current Stable Version ( QGIS 2.8 ) on your computer (see provided folder) for Windows ● MAC-Users: Download QGIS and install python libraries ● (http://www.kyngchaos.com/software/python ) Important! – Make sure the libraries python-scipy, python-numpy, python-pil and python- matplotlib are checked
  • 5. Workshop – Lund 2015 5 ● Select “Advanced Install” ● “Install from local Folder” ● Mark everything – Qgis – Python-numpy – Python-scipy – ... How to install (WIN) Install from local folder
  • 6. Workshop – Lund 2015 6 GIS data formats Source: maprabu.blogspot.com Format: *.shp, *.csv, *.gpx, *.kml, ... Format: *.tif, *.vrt, *.hdr, *.asc, ...
  • 7. Workshop – Lund 2015 7 Raster vs vector ● Vector – Advantage: Accuracy, more visually pleasing – Disadvantage: Space-inefficient. Every vertex needs to be stored. Algorithms computational intensive. ● Raster – Advantage: Geogr. Position associated with data, easier for analysis – Disadvantage: Resolution dependent on cellsize. Often not nice- looking
  • 8. Workshop – Lund 2015 8 Other data sources ● Google, Bing, Openstreetmaps, ... ( OpenLayers plugin) ● WMS server, for instance the EEA WMS services – http://discomap.eea.europa.eu/home.html – Can be loaded into QGIS as WMS layer Those files can be visualized, but not edited (see WFS) !!! You can make a screenshot though and georeference this, but check the publishers license!
  • 9. Workshop – Lund 2015 9 A note on proprietary formats ● Long-term ArcGIS users are often confronted with .lyr files – Proprietary format by ESRI. Container that stores data and viz ● (Open-source alternative in QGIS ← .qlr ) ● TMK: Not convertible without having a ESRI license! – Arc2Earth extension for ArcMap lets you save .lyr to .sld
  • 10. Workshop – Lund 2015 10 What are Map projections ● Map projections to represent a 3-dimensional structure on a 2d planar plane ● Many formats and types – Spherical, azimuthal, equidistant, equal area, … – Most commonly used: ● WGS84 (lon,lat ← In degree) ● WGS84 Google Pseudo-Mercator (in meter, but inaccurate in tropics!!! ) ● WGS84 UTM (in meter, subdivided in lon-lat grids) http://epsg.io/ ← Lookup projections
  • 11. Workshop – Lund 2015 11 Now hands on in QGIS
  • 12. Workshop – Lund 2015 12 Geo-referencing with QGIS ● GR is the process of associating data with spatial coordinates ● In QGIS using the excellent gdal-referencer ● What we need: – A non-spatial file – A reference projection – Reference points or ROI Harsjön
  • 13. Workshop – Lund 2015 13 (1) Get the geocode plugin (or use the bar) to jump to 59.55275,18.33490 long-lat (2) Load Google layers or any other WMS service (3) Make sure the gdal-georeferencer is available (Raster menu) (4) Add the Harsjön.tif file to the referencer and add around 5-6 GCP points – Choose linear interpolation (5) Now you have the rasterized the map and create a new vector point layer with the study-locations
  • 14. Workshop – Lund 2015 14 Visualizing Gradients ● Add the pH-0915_3.csv to QGIS via “Add-delimited- Text-layer” ● Specify RT90 2.5 gon V as projection (assumed) ● Color the points with the Ph attribute ● Subset to Skane (Select – Save Selection). Computational intensive!!! ● Use the Heatmap plugin (Ph as weight) or GRASS- modules in Processing (v.surf.*) Vector Raster
  • 15. Workshop – Lund 2015 15 Use the new Heatmap renderer (QGIS 2.8)
  • 16. Workshop – Lund 2015 16 Short Break Kort paus Kurze Pause
  • 17. Workshop – Lund 2015 17 LecoS ● Simple Plugin to extract landscape metrics from raster layer ● Inspired by FRAGSTAT ● With Graphical interface, but more options available in Processing Toolbox
  • 18. Workshop – Lund 2015 18 Example Data set Use the data within the Gotland zip file
  • 19. Workshop – Lund 2015 19 Research questions 1) What is the most abundant land-cover type in the study locations? 2) How much combined forest is there in our study sites? 3) How heterogen is the landcover in our study-sites? 4) What is the distance to the Forest-edge for each of our sites? ● (Optional) Neutral Landscape Models with NLMPy
  • 20. Workshop – Lund 2015 20 Landscape analysis preparation Landscape Layer Studylocations with 500m Buffer
  • 21. Workshop – Lund 2015 21 Research Question 1.) ● Crop your the raster dataset with your buffered Studysites (overlapping buffers are not correctly cropped. Use DissolveDissolve first) ● Use “LecoS – Land cover statistics” to compute the “Landscape proportion” of each land cover class ● Use “Groupstats”, “QScatter” or “Statist” to get the aggregated values – Or export to csv and open with a spreadsheet program!
  • 22. Workshop – Lund 2015 22 Results Question 1.) Results Top 3: 30 (Åkermark) Arable land→ 21 % 44 (Barrskog ej på lavmark 7-15 meter) Coniferous forest →17 % 32 (Betesmark) Pasture → 11 %
  • 23. Workshop – Lund 2015 23 Research Question 2.) ● Isolate all forest cover from both datasets using the raster calculator (Classes 40 – 50) ● ("Layer_Gotland@1" >= 40 AND "Layer_Gotland@1" <= 50)("Layer_Gotland@1" >= 40 AND "Layer_Gotland@1" <= 50) ● Use “LecoS – Polygon overlay” to compute the Total forest cover for each buffer ● Ether add to attribute table (Layer needs to be reloaded ) or save as csv
  • 24. Workshop – Lund 2015 24 Results Question 2.) ● On average: – 285874 m² (28.58 ha)
  • 25. Workshop – Lund 2015 25 Research Question 3.) ● In order to measure land-cover heterogeneity you have 2 options: – Ether use the Moving Window in the Processing Toolbox, select variety and an appropriate window size – Afterwards extract the mean for each of your buffers using the polygon-overlay ● Or – Use the LecoS polygon-overlay tool to compute a “diversity-index” like Shannon or Simpson index for each of your buffers
  • 26. Workshop – Lund 2015 26 Research Question 3.)
  • 27. Workshop – Lund 2015 27 Research Question 4.) The landscape modifier ● Clean Map of small pixels ● Extract the forest edge of the previous generated forest extract. ● Then use the Proximity tool in the Raster menu ● Use the Save-As function (rightclick raster) to correctly set a nodata-value ● Use LecoS to extract the median values inside the grid per buffer or point
  • 28. Workshop – Lund 2015 28 Results question 4.) FeatureID 27 + 30 farthest away from forest edge ~ 942m and 522m
  • 29. Workshop – Lund 2015 29 (Optional) Neutral Landscape Models (NLMpy) ● LecoS has optional NLMpy support since version 1.9.3 ● Neutral Landscape Models as “Nullmodel” for continuous and classified landscapes ● Publication: ● onlinelibrary.wiley.com/doi/10 .1111/2041-210X.12308/full
  • 30. Workshop – Lund 2015 30 How to get the library? ● In order to install non-supported libraries you have to use PIP (python package index). ● NO Guarantee that this will work for your! ● https://pypi.python.org/pypi/nlmpy – Open the Python console in QGIS (or terminal on Linux) – Run pip install nlmpy – Or alternatively download and pip install nlmpy-0.1.1.tar.gz
  • 31. Workshop – Lund 2015 31 Time for Map Presentation?
  • 32. Workshop – Lund 2015 32 Running scripts in the Processing Toolbox ● The Processing toolbox (formerly called Sextante) in QGIS can be used to write models and script to do repeatable tasks ● Currently Python and R scripts are supported ● In order to create a R-script, make sure that it is enabled in the Processing options (menu)
  • 33. Workshop – Lund 2015 33 Other useful stuff - Processing R commands Command Function ##[datagis]=group Sets the group to “datagis” ##layer = vector or raster Specifies the input layer to use ##distance=number 100 Sets a number field with default 100 ##title=string France Get text input. Default is “France” ##field=field layer Select a field from the vector layer “layer” hist(layer[[field]]) R-command: Histogram for fields from layer ##showplots Has to be set in order to see plot outputs >t.test(layer[[field]]) Console output with a “>” before command ##output=output vector File output as vector or raster
  • 34. Workshop – Lund 2015 34 Example Script ##[Own Scripts]=group ##showplots ##layer=vector ##y=field layer ##x=field layer plot(as.numeric( layer[[y]] )~as.numeric( layer[[x]] ),pch=19,bty="l",ylab=paste( y ),xlab=paste( x ) ) fit = lm( layer[[y]]~layer[[x]] ) abline(fit,col="blue",lwd=2)
  • 35. Workshop – Lund 2015 35 Additional examples, help and tutorials ● http://www.gistutor.com/ ● http://qgis.spatialthoughts.com/ ● Youtube → search QGIS ● http://gis.stackexchange.com ● QGIS-user mailing list → http://lists.osgeo.org/listinfo/qgis-user
  • 36. Workshop – Lund 2015 36 Thanks for your attention! Open questions....!