Differences
This shows you the differences between two versions of the page.
Both sides previous revision Previous revision Next revision | Previous revision | ||
siglibres [2013/10/04 10:55] glaroc [Exercice 1 - Numérisation et affichage] |
siglibres [2014/01/27 17:06] (current) glaroc [Introduction aux systèmes d'information géographique libres : QGIS and GRASS] |
||
---|---|---|---|
Line 1: | Line 1: | ||
====== Introduction aux systèmes d'information géographique libres : QGIS and GRASS ====== | ====== Introduction aux systèmes d'information géographique libres : QGIS and GRASS ====== | ||
+ | |||
+ | |||
+ | |||
+ | **CETTE PAGE EST POUR UN ATELIER QUI N'EST PLUS OFFERT. [[introsig|ACCÉDEZ À LA VERSION COURANTE DE L'ATELIER ICI]].** | ||
Line 11: | Line 15: | ||
[[http://prezi.com/u9j9jyhcnkre/?utm_campaign=share&utm_medium=copy|Lien vers la présentation Prezi]] | [[http://prezi.com/u9j9jyhcnkre/?utm_campaign=share&utm_medium=copy|Lien vers la présentation Prezi]] | ||
- | [[http://prezi.com/u9j9jyhcnkre/present/?auth_key=tay6ch1&follow=ktr6emnemif_&kw=present-u9j9jyhcnkre&rc=ref-19631691|Lien vers la présentation Prezi simultanée]] | + | [[http://prezi.com/u9j9jyhcnkre/present/?auth_key=41v2yjc&follow=GuillaumeLarocque&kw=present-u9j9jyhcnkre&rc=ref-19631691|Lien vers la présentation Prezi simultanée]] |
===== 1 - Installation de QGIS et GRASS ===== | ===== 1 - Installation de QGIS et GRASS ===== | ||
Line 310: | Line 314: | ||
</file> | </file> | ||
+ | Exemple de code dans R | ||
+ | |||
+ | <code> | ||
+ | library(spgrass6) | ||
+ | library(rgdal) | ||
+ | initGRASS(gisBase='/usr/lib/grass64',gisDbase='/home/glaroc/OSGIS/Day 2/',location='31h05',mapset='landsat',override=TRUE) | ||
+ | #Sous Windows, le chemin est du genre C:/GRASS/ | ||
+ | |||
+ | gmeta6() | ||
+ | elevp=readVECT6('Elevation_points') | ||
+ | RegHyd=readVECT6('Region_hydrique') | ||
+ | #Routes=readVECT6('Routes') | ||
+ | execGRASS("g.list",type="vect") | ||
+ | plot(RegHyd,lwd=2,col='blue') | ||
+ | plot(elevp,pch=19,lwd=0.5,col='brown',cex=0.5,add=TRUE) | ||
+ | </code> | ||
====== Utiliser PostGIS avec QGIS ====== | ====== Utiliser PostGIS avec QGIS ====== |