Professional Documents
Culture Documents
HOW-TO QGIS For Students 2020
HOW-TO QGIS For Students 2020
HOW-TO QGIS For Students 2020
restart QGIS.
Note, if you don’t have access to internet only a short list of pre-installed (but not always
activated) appears: tick the box for activation.
If the Processing tab is not in the main menu, check for main menu > plugins > install and
Manage extension > processing
In case of problem running SAGA tools, you may try to uncheck “Use SAGA 2.0.8 syntax”
To add a new feature: right click on the layer and choose toggle Editing
Tools of the edit toolbar are now active.
If you do not see the edit toolbar : main menu > view > toolbars > check Digitizing.
Select the appropriate tools and create object by clicking on the map. Right click to stop and
store the object: a new window appears asking you to fill the attributes.
When you have finished digitizing: click on the “save” icon of the digitizing toolbars.
How to know the pixel size and units of my Raster?
Select your raster layer, right-click > properties > Metadata > properties > Pixel size
Why I can’t see my data in the map view anymore? I lost them!
There are several possible reasons for that:
- The layer of these data is masked by another layer: in the layer panel unselect the
layers on top of the desired layer.
- Data are outside the map view frame: in the layer panel select the layer
- Transparency of the layer is set to 100%
- Map view Coordinate Reference system (CRS) is not compatible your data CRS.
If these actions can’t solve the problem: open a new blank project, open only this layer, it
may help to understand the problem.
How to know the Coordinate reference system of the map (QGIS canevas)
Click on the icon “CRS Status” located at the bottom right of the QGIS windows.
Then by moving the dot inside the circle you can interactively see
the effect of a change of illumination angle (if not check that live update at the bottom
is checked)
One should expect to fix this problem by changing the z-elevation factor. However, I did not
get good results with that (you will may be luckier than me…)
An alternative is to change the DEM’s CRS into a projected coordinate system with
coordinate in meter like UTM. (Cf. How to change the projection of a Raster?)
To export the result as text that can be imported in Excel : click on “Table” tab and “copy to
clipboard”.
If you want to keep the profile location and to be able to modify it:
- first create a new vector layer of line type (cf. How to create and edit a new
shapefile?). Then Layer > Toogle > Editing and you can use the digitizing tools to
trace your polyline.
- select the DEM layer and Plugins > Profil Tools > Terrain Profile: choose the option
«selected polyline» instead of « temporary polyline »
- Select the vector layer and then with the mouse cursor select the polyline
Note that if you change the active tools, it is sometimes not possible to recover the profile
tools. In this case, do again Plugins > Profil Tools > Terrain Profile
Par exemple, si votre fichier .qgs est situé dans le répertoire C:/temp/ et que le projet fait
appel à un fichier toto.shp situé dans le répertoire C:/temp/vecteur/ son chemin relatif
est ./vecteur/toto.shp
Le point '.' signifie le répertoire où se situe votre fichier .qgs
Deux points '..' signifie qu'il faut remonter d'un repertoire dans l'arborescence. Exemple : si
votre fichier .qgs est situé dans le répertoire C:/temp/rep1/rep2/rep3/ et si le chemin indique
dans la 3eme colonne est ../../vecteur/tata.shp, cela veut dire que le projet fait appel à un
fichier situé dans le répertoire C:/temp/rep1/vecteur/ (../.. signifie remonter de deux
repertoires dans l'arborescence)
Pour résoudre votre problème : regardez sur votre ordinateur où sont situé les fichiers qu'il
cherche à ouvrir sans succès. En cliquant sur la case de la 3eme colonne, vous pouvez lui dire
où il se situe.
Note that In version 2.0 there is a bug if you need to have an output format different of
geotiff.
Edit the gdal_warp command line
By defaut -of Gtiff = output format Gtiff can be modified
More generally the reprojection windows of QGIS offer only a few options of the gdalwarp
function. You can edit the command line to satisfy your needs
Look also at gdalwarp help.
You can also use Profile tools for doing value profile across several Rasters (see How to do a
topographic profile across my DEM?)
Ouput layer: click on “current layer extent” the result will have the same extent and
resolution than the currently selected layer in the Raster bands list. Do it systematically
because the extent and resolution are not automatically updated which can lead to error in the
output file.
It is recommended to use Rasters having the same coordinate reference system (see How to
change the projection of a Raster?)
(Raster1 = val1) * val2 + (Raster1 > val1) * Raster1 + (Raster1 < val1) *
Raster1
Replace Val1 by Val2
Another example:
(Raster1 < 100) * -9999 + (Raster1 >= 100) * Raster1
Replace all pixel of Raster1 smaller than 100 by -9999
Note this fonctionnality is a call to the gdal_merge function that contain more options than the
one offered in the QGIS dialog box (see http://www.gdal.org/gdal_merge.html for details).
However, you can always edit the command line to add other options: Clic on the pen icon, on
the bottom right.
If the image overlap or have different resolution some rules applied by default, that can lead
to unexpected result: see http://www.gdal.org/gdal_merge.html for details.
1 - Vector->Research Tool->Polygon from layer extent (use the raster layer that define the
area you want to crop)
2 - Raster > extraction > clipper > in clipping mode select mask layer and use the previously
created shapefile.
How to georeference a raster knowing one of its corner coordinates and its
projection?
A way to do it is to create a “world file”.
Here is an exemple of a world file, which is a simple text file:
10.0000000000
0.0000000000
0.0000000000
-10.0000000000
313230.5315482824
4924747.8622969911
That gives the following information:
Note that the coordinate reference system is not specified in the file. You will have to specify
it when opening the raster in QGIS.
Note that you can use the current QGIS map to specify the selection of your point, for
that once you have selected a point on the raster to be georeferenced click on “From map
Canvas”
How to create a gridded DEM from a list of point XYZ?
First you need to convert the point list into a shapefile: You need a text file with delimiter
separating the X, Y and Z coordinates:
Main menu > layer > add delimited text layer:
- Select appropriate delimiter (check in the preview box if the text file is correctly read)
- Specify the X (East-West), Y (North-South) column
- OK
Then specify the Coordinate reference system.
At that stage the points are displayed in QGIS in a temporary layer. If there are a large
number of points, you may uncheck the render tick box located at the bottom right of the
QGIS window, to avoid them to be displayed.
For the next step it is better if the map windows have the same CRS than the data you want to
grid.
Note that for Lidar data it exist some plugins like LAStool that are far more efficient to
generate grid. However the plugin is not supported for all Operating System.
You can also use plugin Raster interpolation, which interpolate the pixel value depending of
the points position within the pixel.
Items Panels > Items properties > Main properties box: write the text in HTML format, and
check the option “render as HTML”.
Test: f<SUB>(x)</SUB>=x<SUP>2</SUP>
Test: f(x)=x2
1. Cliquez sur la liste Police, puis sur la police que vous souhaitez parcourir.
2. Activez la case à cocher Affichage avancé.
3. Cliquez sur la liste Jeu de caractères, puis sur Unicode.
4. Cliquez sur la liste Grouper par, puis sur Tous.
5. Dans la zone Page Unicode, tapez les quatre caractères composant la valeur Unicode
du caractère que vous recherchez.
https://en.wikipedia.org/wiki/Unicode_subscripts_and_superscripts
exemples :
Remarque: Avec cette méthode, en plus des indices et exposant, on peut aussi utiliser des
lettre grecques, etc...