ewrg-ces - ernetwgbis.ces.iisc.ernet.in/energy/stc/prelake-foss4g... · the status bar shows the...

47
Bharath Setturu Research scholar, EWRG, Center for Ecological Sciences, IISc, Bangalore [email protected] & IIIT-HYDERABAD EWRG-CES

Upload: others

Post on 26-Dec-2019

0 views

Category:

Documents


0 download

TRANSCRIPT

Page 1: EWRG-CES - ERNETwgbis.ces.iisc.ernet.in/energy/stc/prelake-foss4g... · The status bar shows the current position in map coordinates EWRG-CES. Working with vector data Step 1 Step

Bharath SetturuResearch scholar,

EWRG, Center for Ecological

Sciences, IISc, [email protected]

&

IIIT-HYDERABAD

EWRG-C

ES

Page 2: EWRG-CES - ERNETwgbis.ces.iisc.ernet.in/energy/stc/prelake-foss4g... · The status bar shows the current position in map coordinates EWRG-CES. Working with vector data Step 1 Step

Introduction to QGIS

oQuantum GIS (QGIS) is a GIS tool for managing geographical data, 3-D

analysis, statistical analysis.

oQGIS is Free and Open Source software.

oIt is an official project of OSGEO (Open Source Geospatial Foundation)

oAvailable under GNU General Public License; having support for vector,

raster, and database formats.

oQGIS is translated into 70 languages (Hindi, Tamil, Malayalam, Telugu)

oPlug-ins available to expand compatibility and functionality.

oExtensive help and documentation is available.

EWRG-C

ES

Page 3: EWRG-CES - ERNETwgbis.ces.iisc.ernet.in/energy/stc/prelake-foss4g... · The status bar shows the current position in map coordinates EWRG-CES. Working with vector data Step 1 Step

Who uses open source?

Who uses open source GIS?

90% of supercomputers

80% of internet servers

70% of smart phones *

ESRI

IDRISI

ERDAS

Google

many others . . .

EWRG-C

ES

Page 4: EWRG-CES - ERNETwgbis.ces.iisc.ernet.in/energy/stc/prelake-foss4g... · The status bar shows the current position in map coordinates EWRG-CES. Working with vector data Step 1 Step

QGIS is multiplatform GIS that runs on

Qgis

Unix

Windows

Mac OSX

Linux

ANDROID version of Qgis is also available for mobile phones

EWRG-C

ES

Page 5: EWRG-CES - ERNETwgbis.ces.iisc.ernet.in/energy/stc/prelake-foss4g... · The status bar shows the current position in map coordinates EWRG-CES. Working with vector data Step 1 Step

Gary Sherman in February 2002 started to develop a gis.

Quantum GIS can also be used as graphical user interface to

GRASS from version 1.2.

The first release July 19, 2002.

The current versionQgis 2.14 Essen

1.6 Capiapo1.7 Wrocla1.80. Lisbao

2.0 DUFOR2.14 ESSEN

EWRG-C

ES

Page 6: EWRG-CES - ERNETwgbis.ces.iisc.ernet.in/energy/stc/prelake-foss4g... · The status bar shows the current position in map coordinates EWRG-CES. Working with vector data Step 1 Step

Quantum GIS Users around the World

EWRG-C

ES

Page 7: EWRG-CES - ERNETwgbis.ces.iisc.ernet.in/energy/stc/prelake-foss4g... · The status bar shows the current position in map coordinates EWRG-CES. Working with vector data Step 1 Step

GIS Data FormatsRaster

• Data are divided into cell, pixels, or elements

• Cells are organized in arrays

• Each cell has a single value

• Perhaps the most common example of raster data is a digital image

Vector

Data are associated with points, lines, polygons or boundaries enclosing

areas

Points are located by coordinates

Lines are described by a series of connecting vectors (line segments described

by the coordinates of the start of the vector, its direction, and magnitude or

length)

Areas or polygons are described by a series of vectors enclosing the area

EWRG-C

ES

Page 8: EWRG-CES - ERNETwgbis.ces.iisc.ernet.in/energy/stc/prelake-foss4g... · The status bar shows the current position in map coordinates EWRG-CES. Working with vector data Step 1 Step

Features

POINT

LINE

POLYGON

EWRG-C

ES

Page 9: EWRG-CES - ERNETwgbis.ces.iisc.ernet.in/energy/stc/prelake-foss4g... · The status bar shows the current position in map coordinates EWRG-CES. Working with vector data Step 1 Step

QGIS_DATA TYPES

MAP

DATA

• Contains the location and shape of geographic features.

• Maps use three basic shapes to present real-world features:

points, lines, and areas (called polygons)

ATTRIBUTE DATA

• Tabular data is the descriptive data that GIS links to map features.

• Ex specific areas information like states, census tracts, cities, and so on and often comes packaged with map data.

IMAGE DATA

• Features are represented as a matrix of cells

• Image data ranges from satellite images and aerial photographs to scanned maps

EWRG-C

ES

Page 10: EWRG-CES - ERNETwgbis.ces.iisc.ernet.in/energy/stc/prelake-foss4g... · The status bar shows the current position in map coordinates EWRG-CES. Working with vector data Step 1 Step

Getting Started

Installation:Get the latest information of binary packages at the QGIS website at

http://www.qgis.org/en/site/

EWRG-C

ES

Page 11: EWRG-CES - ERNETwgbis.ces.iisc.ernet.in/energy/stc/prelake-foss4g... · The status bar shows the current position in map coordinates EWRG-CES. Working with vector data Step 1 Step

12

3

4

5

Menu Bar

Tool Bar

Map Legend

Map View/ Canvas area

Status Bar

EWRG-C

ES

Page 12: EWRG-CES - ERNETwgbis.ces.iisc.ernet.in/energy/stc/prelake-foss4g... · The status bar shows the current position in map coordinates EWRG-CES. Working with vector data Step 1 Step

The menu bar provides access to numerous QGIS features.

The toolbars offers additional tools for interacting with the map. Hold the

mouse over the particular icon, a short description of the tool’s purpose will

be displayed.

Every menu bar can be moved around according to your needs. Additionally

every menu bar can be switched off using your right mouse button context

menu holding the mouse over the toolbars

The map legend area sets the visibility

QGIS - maps are displayed in map canvas area

The map overview panel provides a full extent view of layers added

The status bar shows the current position in map coordinates

EWRG-C

ES

Page 13: EWRG-CES - ERNETwgbis.ces.iisc.ernet.in/energy/stc/prelake-foss4g... · The status bar shows the current position in map coordinates EWRG-CES. Working with vector data Step 1 Step

Working with vector dataStep 1

Step 2

Step 3

EWRG-C

ES

Page 14: EWRG-CES - ERNETwgbis.ces.iisc.ernet.in/energy/stc/prelake-foss4g... · The status bar shows the current position in map coordinates EWRG-CES. Working with vector data Step 1 Step

Improving the performance

Select properties by right click on the layer name; the properties

dialogue box will be opened with multiple options

i.e. General, Styles, Lables, Attributes, Metadata, Actions, Diagram

overlay.

EWRG-C

ES

Page 15: EWRG-CES - ERNETwgbis.ces.iisc.ernet.in/energy/stc/prelake-foss4g... · The status bar shows the current position in map coordinates EWRG-CES. Working with vector data Step 1 Step

Improving performance

EWRG-C

ES

Page 16: EWRG-CES - ERNETwgbis.ces.iisc.ernet.in/energy/stc/prelake-foss4g... · The status bar shows the current position in map coordinates EWRG-CES. Working with vector data Step 1 Step

OverlayingWe can overlay one vector on another by adding a vector layer.

EWRG-C

ES

Page 17: EWRG-CES - ERNETwgbis.ces.iisc.ernet.in/energy/stc/prelake-foss4g... · The status bar shows the current position in map coordinates EWRG-CES. Working with vector data Step 1 Step

Database ingest-querying

• Data ingestion is the process of obtaining, importing, and

processing data.

• Process: involves altering individual files by editing their

content and fit into a larger document.

EWRG-C

ES

Page 18: EWRG-CES - ERNETwgbis.ces.iisc.ernet.in/energy/stc/prelake-foss4g... · The status bar shows the current position in map coordinates EWRG-CES. Working with vector data Step 1 Step

Editing Attribute Information

Start Editing Add column

Add Attribute

InformationSave edits and

stop toggle edit

EWRG-C

ES

Page 19: EWRG-CES - ERNETwgbis.ces.iisc.ernet.in/energy/stc/prelake-foss4g... · The status bar shows the current position in map coordinates EWRG-CES. Working with vector data Step 1 Step

Map Calculator

EWRG-C

ES

Page 20: EWRG-CES - ERNETwgbis.ces.iisc.ernet.in/energy/stc/prelake-foss4g... · The status bar shows the current position in map coordinates EWRG-CES. Working with vector data Step 1 Step

Paper Map to Digital Map

Paper Map Digital MapScanning

Printing

Conversion

EWRG-C

ES

Page 21: EWRG-CES - ERNETwgbis.ces.iisc.ernet.in/energy/stc/prelake-foss4g... · The status bar shows the current position in map coordinates EWRG-CES. Working with vector data Step 1 Step

Reading

Coordinates in

toposheet

• 1: 50000

• Scanned toposheets have

no geographical reference

i.e., they are in the

rectangular coordinate

system

15’

15’

5’

5’

EWRG-C

ES

Page 22: EWRG-CES - ERNETwgbis.ces.iisc.ernet.in/energy/stc/prelake-foss4g... · The status bar shows the current position in map coordinates EWRG-CES. Working with vector data Step 1 Step

Geo referencing: Geo referencing usually refers to the method by which locations in the

raster and vector GIS files are related to real earth-surface positions.

EWRG-C

ES

Page 23: EWRG-CES - ERNETwgbis.ces.iisc.ernet.in/energy/stc/prelake-foss4g... · The status bar shows the current position in map coordinates EWRG-CES. Working with vector data Step 1 Step

To start geo referencing an unreferenced raster, we must load it using the

button. The raster will show up in the main working area of the dialog. Once

the raster is loaded, we can start to enter reference points.

Using the Add Point button, add points to the main working area and enter

their coordinates

For this procedure you have two options:

a) Click on a point in the raster image and enter the X and Y coordinates

manually

b) Click on a point in the raster image and choose the button from map

canvas to add the X and Y coordinates with the help of a georeferenced map

already loaded in the QGIS map canvas.

c) With the button, you can move the GCPs in both windows, if they are at

the wrong place.

Continue entering points. You should have at least 4 points, and the more

coordinates you can provide, the better the result will be. There are

additional tools on the plugin dialog to zoom and pan the working area in

order to locate a relevant set of GCP points.

EWRG-C

ES

Page 24: EWRG-CES - ERNETwgbis.ces.iisc.ernet.in/energy/stc/prelake-foss4g... · The status bar shows the current position in map coordinates EWRG-CES. Working with vector data Step 1 Step

•After entering GCP’s click on Settings option in Georeferencing menu bar

select Transformation Settings option.

•A drop box will be displayed and select options as shown in the below

image.

•Specify output file name and

transformation parameters and projection

system then click OK.EW

RG-CES

Page 25: EWRG-CES - ERNETwgbis.ces.iisc.ernet.in/energy/stc/prelake-foss4g... · The status bar shows the current position in map coordinates EWRG-CES. Working with vector data Step 1 Step

Working with raster data:

QGIS supports a number of different raster formats and uses GDAL libraries

•Arc/Info Binary Grid

•Arc/Info ASCII Grid

•GRASS Raster

•Geo TIFF

•JPEG

•Spatial Data Transfer Standard Grids (with some limitations)

•USGS ASCII DEM

•ERDAS Imagine(.img)

EWRG-C

ES

Page 26: EWRG-CES - ERNETwgbis.ces.iisc.ernet.in/energy/stc/prelake-foss4g... · The status bar shows the current position in map coordinates EWRG-CES. Working with vector data Step 1 Step

Loading raster data in QGIS

.

EWRG-C

ES

Page 27: EWRG-CES - ERNETwgbis.ces.iisc.ernet.in/energy/stc/prelake-foss4g... · The status bar shows the current position in map coordinates EWRG-CES. Working with vector data Step 1 Step

EWRG-C

ES

Page 28: EWRG-CES - ERNETwgbis.ces.iisc.ernet.in/energy/stc/prelake-foss4g... · The status bar shows the current position in map coordinates EWRG-CES. Working with vector data Step 1 Step

Improve the performance

EWRG-C

ES

Page 29: EWRG-CES - ERNETwgbis.ces.iisc.ernet.in/energy/stc/prelake-foss4g... · The status bar shows the current position in map coordinates EWRG-CES. Working with vector data Step 1 Step

Digitising

• Process of representing features as points, lines and

polygons.

Example: Light towers,

Bus stops, Schools etc

Example: Road network,

Stream Network etc.

Example: Forests, political

boundaries .. etc

(x1,y1)

(x2,y2)

(x3,y3) (x3,y3)

(x1,y1)

(x2,y2)

(xn,yn)

(xn,yn)

(x1,y1)

(x3,y3)(x2,y2)EW

RG-CES

Page 30: EWRG-CES - ERNETwgbis.ces.iisc.ernet.in/energy/stc/prelake-foss4g... · The status bar shows the current position in map coordinates EWRG-CES. Working with vector data Step 1 Step

Features

POINT

LINE

POLYGON

EWRG-C

ES

Page 31: EWRG-CES - ERNETwgbis.ces.iisc.ernet.in/energy/stc/prelake-foss4g... · The status bar shows the current position in map coordinates EWRG-CES. Working with vector data Step 1 Step

EWRG-C

ES

Page 32: EWRG-CES - ERNETwgbis.ces.iisc.ernet.in/energy/stc/prelake-foss4g... · The status bar shows the current position in map coordinates EWRG-CES. Working with vector data Step 1 Step

EWRG-C

ES

Page 33: EWRG-CES - ERNETwgbis.ces.iisc.ernet.in/energy/stc/prelake-foss4g... · The status bar shows the current position in map coordinates EWRG-CES. Working with vector data Step 1 Step

Importing GPS data

EWRG-C

ES

Page 34: EWRG-CES - ERNETwgbis.ces.iisc.ernet.in/energy/stc/prelake-foss4g... · The status bar shows the current position in map coordinates EWRG-CES. Working with vector data Step 1 Step

QGIS Plugins

Plugin Manager provides a resource to load or unload plugins.

-- Core Plugins are automatically part of every QGIS

distribution. They are written in one of two languages: C++ or

Python.

– External Plugins are currently all written in Python. They

can be added to QGIS using the Plugin Installer.

EWRG-C

ES

Page 35: EWRG-CES - ERNETwgbis.ces.iisc.ernet.in/energy/stc/prelake-foss4g... · The status bar shows the current position in map coordinates EWRG-CES. Working with vector data Step 1 Step

A lot of real world phenomena are continuous - elevations, soils,

temperatures etc.

If we wanted to model these, it is impossible to take measurements

throughout the surface.

Hence, the field measurements are taken at various points along the

surface and the intermediate values are inferred by a process called

‘interpolation’.

In QGIS, interpolation is achieved using the built-in Interpolation plugin.

Interpolation

Interpolation is used to create continuous surface from discrete points.

EWRG-C

ES

Page 36: EWRG-CES - ERNETwgbis.ces.iisc.ernet.in/energy/stc/prelake-foss4g... · The status bar shows the current position in map coordinates EWRG-CES. Working with vector data Step 1 Step

EWRG-C

ES

Page 37: EWRG-CES - ERNETwgbis.ces.iisc.ernet.in/energy/stc/prelake-foss4g... · The status bar shows the current position in map coordinates EWRG-CES. Working with vector data Step 1 Step

Import rainfall data and display it

Open attribute table to see the details

EWRG-C

ES

Page 38: EWRG-CES - ERNETwgbis.ces.iisc.ernet.in/energy/stc/prelake-foss4g... · The status bar shows the current position in map coordinates EWRG-CES. Working with vector data Step 1 Step

Click on Raster Interpolation Interpolation

EWRG-C

ES

Page 39: EWRG-CES - ERNETwgbis.ces.iisc.ernet.in/energy/stc/prelake-foss4g... · The status bar shows the current position in map coordinates EWRG-CES. Working with vector data Step 1 Step

EWRG-C

ES

Page 40: EWRG-CES - ERNETwgbis.ces.iisc.ernet.in/energy/stc/prelake-foss4g... · The status bar shows the current position in map coordinates EWRG-CES. Working with vector data Step 1 Step

Change colors as per requirements

EWRG-C

ES

Page 41: EWRG-CES - ERNETwgbis.ces.iisc.ernet.in/energy/stc/prelake-foss4g... · The status bar shows the current position in map coordinates EWRG-CES. Working with vector data Step 1 Step

Print Composer

● Simple maplayouts made easy

● Apply map, legend, north arrow and text

● Using external programms (inkscape) for finetuning.

● Lots of paperformats supported

● Logo inclusion, legend, labels, northarrow

● PNG/SVG/PDF support

● Adjustable drawing scale

● Separate DPI settings

EWRG-C

ES

Page 42: EWRG-CES - ERNETwgbis.ces.iisc.ernet.in/energy/stc/prelake-foss4g... · The status bar shows the current position in map coordinates EWRG-CES. Working with vector data Step 1 Step

Help from QGIS?

??

?

EWRG-C

ES

Page 43: EWRG-CES - ERNETwgbis.ces.iisc.ernet.in/energy/stc/prelake-foss4g... · The status bar shows the current position in map coordinates EWRG-CES. Working with vector data Step 1 Step

WEB SITE

(www.qgis.org/en/)

QGIS has active community support, update and upgrades

EWRG-C

ES

Page 44: EWRG-CES - ERNETwgbis.ces.iisc.ernet.in/energy/stc/prelake-foss4g... · The status bar shows the current position in map coordinates EWRG-CES. Working with vector data Step 1 Step

WIKI

EWRG-C

ES

Page 45: EWRG-CES - ERNETwgbis.ces.iisc.ernet.in/energy/stc/prelake-foss4g... · The status bar shows the current position in map coordinates EWRG-CES. Working with vector data Step 1 Step

BLOG BUGS

EWRG-C

ES

Page 46: EWRG-CES - ERNETwgbis.ces.iisc.ernet.in/energy/stc/prelake-foss4g... · The status bar shows the current position in map coordinates EWRG-CES. Working with vector data Step 1 Step

USER MAILING LIST

EWRG-C

ES

Page 47: EWRG-CES - ERNETwgbis.ces.iisc.ernet.in/energy/stc/prelake-foss4g... · The status bar shows the current position in map coordinates EWRG-CES. Working with vector data Step 1 Step

THANK YOU

EWRG-C

ES