30
Géoinformatique & Géocommunication (10h Th, 20h labo, 80h proj) TP n°1 (23/02/2016): QGIS Pierre Stévens [email protected]

QGIS Training

Embed Size (px)

Citation preview

Page 1: QGIS Training

Géoinformatique & Géocommunication

(10h Th, 20h labo, 80h proj)

TP n°1 (23/02/2016):QGIS

Pierre Stévens

[email protected]

Page 2: QGIS Training

Basic

Are you crazy?

Advanced

Intermediate

Trap

Best practice

Repeat

Don't do that

Page 3: QGIS Training
Page 4: QGIS Training

CTRL + N

Page 5: QGIS Training

CTRL + SHIFT + R

/bingHam/raster/srtm.tif

Check Layer Properties

Page 6: QGIS Training

CTRL + SHIFT + V

/bingHam/vector/utah_faults.shp

Check Layer Properties

Page 7: QGIS Training

CTRL + SHIFT + R

CTRL + SHIFT + V

Check properties

Play with style

Open attributes table

Page 8: QGIS Training
Page 9: QGIS Training

/bingHam/vector/utah_faults.shp

Vector =

Geometry + Attributes

Page 10: QGIS Training

Create a new field with the field calculator

The map unit is in degrees

/bingHam/vector/utah-faults.shp

This new field contains the length of the faults in kilometers

Page 11: QGIS Training
Page 12: QGIS Training

It is recommended to define

BBOX

Y minLat. min

X minLon. min

X maxLon. max

Y maxLat. max

bingHam/vector/bbox-bingham50km

Page 13: QGIS Training

EPSG:4267

Page 14: QGIS Training

EPSG:4267 EPSG:3857 EPSG:4326

raster.tiff vector.shp dem.tiff

Datasource projections

Project projection (EPSG:4267)

Page 15: QGIS Training

EPSG:4267 EPSG:3857 EPSG:4326

raster.tiff vector.shp dem.tiff

Datasource projections

Project projection (EPSG:4267)

EPSG:4267 EPSG:4267 EPSG:4267

raster.tiff vector.shp dem.tiff

Page 16: QGIS Training

Enable on the fly CRS transformation

Try several Projected Coordinate Systems

Page 17: QGIS Training
Page 18: QGIS Training
Page 19: QGIS Training

/bingHam/quarantine

/bingHam/vector /bingHam/raster /bingHam/tables

Sanitize

Transform

Page 20: QGIS Training

1) Clip this vector layer to your project extent

Right click → Save As

Vector → Geoprocessing Tools → Clip

/bingHam/quarantine/soilConservationZone4326.shp

/bingHam/vector/soilConservationZone.shp

2) Reproject it to your project CRS

Page 21: QGIS Training
Page 22: QGIS Training

1) Add vector and raster layers

2) Open attributes table and play with symbology

3) Add new attributes to an existing vector layer

4) Play with projections

5) Clip and reproject

What we've done

Page 23: QGIS Training
Page 24: QGIS Training

View → Decorations → Scale bar

Page 25: QGIS Training

Clip this raster layer to your project extent

Raster → Extraction → Clipper

/bingHam/raster/srtm.tif

/bingHam/raster/srtm_bbox50km.tif

Page 26: QGIS Training

/bingHam/raster/srtm_bbox50km.tif

Raster → Extraction → Contour

Raster → Analysis → DEM

/raster/relief.tif /raster/hillshade.tif /vector/contours.shp

Page 27: QGIS Training

For faster rendering, build pyramids on raster file

Properties → Pyramids

Page 28: QGIS Training
Page 29: QGIS Training

/bingHam/quarantine

/bingHam/vector /bingHam/raster /bingHam/tables

Sanitize

Transform

Compose a map

Page 30: QGIS Training

CTRL+Por Project → New Print Composer

Layout → Add mapLayout → Add scalebar

...