<?xml version='1.0' encoding='UTF-8'?><?xml-stylesheet href="http://www.blogger.com/styles/atom.css" type="text/css"?><feed xmlns='http://www.w3.org/2005/Atom' xmlns:openSearch='http://a9.com/-/spec/opensearchrss/1.0/' xmlns:georss='http://www.georss.org/georss' xmlns:gd='http://schemas.google.com/g/2005' xmlns:thr='http://purl.org/syndication/thread/1.0'><id>tag:blogger.com,1999:blog-2412281780517590446</id><updated>2011-07-31T03:51:23.405-07:00</updated><title type='text'>SIG libre</title><subtitle type='html'></subtitle><link rel='http://schemas.google.com/g/2005#feed' type='application/atom+xml' href='http://geomatiquelibre.blogspot.com/feeds/posts/default'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/2412281780517590446/posts/default?max-results=100'/><link rel='alternate' type='text/html' href='http://geomatiquelibre.blogspot.com/'/><link rel='hub' href='http://pubsubhubbub.appspot.com/'/><author><name>Géomatique libre</name><uri>http://www.blogger.com/profile/08337555020513574796</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='http://img2.blogblog.com/img/b16-rounded.gif'/></author><generator version='7.00' uri='http://www.blogger.com'>Blogger</generator><openSearch:totalResults>1</openSearch:totalResults><openSearch:startIndex>1</openSearch:startIndex><openSearch:itemsPerPage>100</openSearch:itemsPerPage><entry><id>tag:blogger.com,1999:blog-2412281780517590446.post-4030842191995166832</id><published>2010-06-25T15:44:00.000-07:00</published><updated>2010-07-13T07:13:02.192-07:00</updated><title type='text'>La géomatique libre: GRASS et QGIS</title><content type='html'>&lt;div style="text-align: justify;"&gt;J'ai créé ce blog pour alimenter la discussion sur l'utilisation des logiciels de géomatique gratuits. Il y a une nuance entre logiciel libre et logiciel gratuit, mais je n'en tiendrai pas compte. On entendra libre tout logiciel gratuit. Je suis technicien en géomatique et je pratique depuis quelques années déjà. J'opère les logiciels les plus connus comme &lt;a href="http://www.esri.com/software/arcgis/index.html"&gt;ArcGIS&lt;/a&gt; et &lt;a href="http://www.pbinsight.com/products/location-intelligence/applications/mapping-analytical/mapinfo-professional/"&gt;Mapinfo&lt;/a&gt;, mais ce sont des logiciels commerciaux qui, bien que présentant les meilleures caractéristiques sur le plan de la convivialité et de l'édition cartographique, ne sont pas à la portée de toutes les bourses.&lt;br /&gt;&lt;br /&gt;Pour pallier à cette situation, il existe des logiciels gratuits qui se développent à bonne vitesse et qui donnent des perspectives d'utilisation intéressantes. Ils fonctionnent suivant le cas dans un environnement informatique universel Java (&lt;a href="http://www.gvsig.org/web/home/portal-gvsig-fr/view?set_language=fr"&gt;GvSIG&lt;/a&gt;, &lt;a href="http://www.openjump.org/"&gt;OpenJump&lt;/a&gt; ou &lt;a href="http://jgrass.wiki.software.bz.it/jgrass/JGrass_Wiki"&gt;JGRASS&lt;/a&gt;), Linux (&lt;a href="http://grass.itc.it/"&gt;GRASS&lt;/a&gt;, &lt;a href="http://www.qgis.org/"&gt;QGIS&lt;/a&gt;, &lt;a href="http://udig.refractions.net/"&gt;UDig&lt;/a&gt;) ou Windows (&lt;a href="http://www.saga-gis.org/en/index.html"&gt;Saga&lt;/a&gt; ou &lt;a href="http://www.mapwindow.org/"&gt;Mapwindows&lt;/a&gt; - GRASS et QGIS ont également des versions adaptées). Il en existe d'autres, mais ceux-ci sont ceux que j'ai déjà essayés.&lt;br /&gt;&lt;br /&gt;Je débute avec QGIS/GRASS car je crois qu'ils représentent la meilleure alternative aux logiciels commerciaux. J'ai déjà présenté un exemple de leur utilisation sur Linux à l'aide d'un site Web que j'avais réalisé il y a quelques années, mais le serveur sur lequel je l'ai inscrit a fermé ses portes. Alors je remets l'information à jour sur ce blog, croyant qu'elle pourra servir à plusieurs géomaticiens. Je ne suis pas un expert de GRASS, mais j'apprends à l'utiliser et  constate son potentiel élevé avec un rapport qualité/prix sans pareil. Il contient aussi un module &lt;span style="font-weight: bold;"&gt;NVIZ &lt;/span&gt;de simulation 3D du relief, ce qui m'attire particulièrement.&lt;br /&gt;&lt;br /&gt;&lt;span style="font-weight: bold;"&gt;GRASS&lt;/span&gt;&lt;span style="font-weight: bold;"&gt;/QGIS&lt;/span&gt;&lt;br /&gt;&lt;br /&gt;Le logiciel GRASS (Geographic Resources Analysis Support System) s'est développé parallèllement à ArcInfo avec qui il se compare souvent. Certains le comparent aussi à ArcGIS (lire cet &lt;a href="http://covenant-tech.com/thesis.pdf"&gt;article&lt;/a&gt;). C'est un logiciel puissant sur le plan de l'analyse et de la gestion des données raster, mais peu performant pour l'édition cartographique. C'est notamment pourquoi le visualisateur de données numériques QGIS a fait l'objet de développements importants ces dernières années pour intégrer les principales fonctionnalités de GRASS, offrant en outre plus de possibilités pour la production et l'édition de cartes.&lt;br /&gt;&lt;br /&gt;GRASS est disponible sur Windows, Linux et Osx-MAC (que je n'ai jamais utilisé). Je préfère personnellement Linux à Windows car le logiciel &lt;span style="font-weight: normal;"&gt;a été conçu dans un environnement Unix qui est toujours considéré en priorité pour le développement du logiciel.&lt;/span&gt;&lt;br /&gt;&lt;br /&gt;Les lignes suivantes présentent les différentes étapes permettant de produire une carte de base du Québec avec GRASS/QGIS sur Linux, ce qui est à mon avis une bonne façon d'introduire l'utilisation de ces deux logiciels, de même que le système d'opération Linux. Il existe plusieurs façons d'installer Linux, notamment: &lt;span style="font-weight: bold;"&gt;1-&lt;/span&gt; partitionner et formater son disque dur, puis installer la &lt;a href="http://www.distrowatch.com/"&gt;distribution de son choix&lt;/a&gt;, &lt;span style="font-weight: bold;"&gt;2-&lt;/span&gt; installer une distribution dans un disque virtuel comme &lt;a href="http://www.virtualbox.org/"&gt;Virtualbox&lt;/a&gt;, &lt;span style="font-weight: bold;"&gt;3-&lt;/span&gt; &lt;a href="http://www.pendrivelinux.com/"&gt;installer une distribution sur une clé USB&lt;/a&gt; en mode "frugal" ou &lt;span style="font-weight: bold;"&gt;4-&lt;/span&gt; installer une distribution clé en main à partir d'un fichier exécutable Windows.&lt;br /&gt;&lt;br /&gt;C'est cette dernière méthode que je vais utiliser car elle est a mon avis très facile à réaliser pour un débutant qui veux s'initier à Linux. Un désavantage que j'y trouve est que la distro va utiliser une partie de la mémoire RAM du PC pour fonctionner. Dans mon cas, je réserve pour Linux 256 Mo RAM et il m'en reste autant pour faire fonctionner Windows.&lt;br /&gt;&lt;br /&gt;J'aimerais mentionner qu'il existe plusieurs distributions Linux spécialisées en SIG qu'il est possible de tester en mode "Live" sur CD ou DVD sans installation . Vous trouverez plusieurs de ces distributions sur le site de &lt;a href="http://grass.itc.it/download/cdrom.php"&gt;GRASS&lt;/a&gt;.&lt;br /&gt;&lt;br /&gt;&lt;span style="font-weight: bold;"&gt;A) INSTALLATION DE LINUX (Ubuntu)&lt;/span&gt;&lt;br /&gt;&lt;br /&gt;Il existe plusieurs applications fonctionnelles permettant d'installer Linux à partir d'un fichier exécutable Windows. Mentionnons &lt;a href="http://www.topologilinux.com/"&gt;Topologilinux&lt;/a&gt; basée sur la distribution Slackware, &lt;a href="http://sourceforge.net/projects/portableubuntu/files/portableubuntu/UNO/"&gt;Portable Ubuntu&lt;/a&gt; et &lt;a href="http://www.andlinux.org/"&gt;andLinux&lt;/a&gt; basées sur Ubuntu et &lt;a href="http://wubi-installer.org/"&gt;Wubi&lt;/a&gt; basée également sur Ubuntu. Dans ce dernier cas, il est nécessaire de redémarrer l'ordinateur pour avoir accès à la distribution, contrairement aux autres qui permettent le démarrage de Linux à l'intérieur même de Windows. J'ai essayé &lt;span style="font-weight: bold;"&gt;Portable Ubuntu&lt;/span&gt; qui est facile à installer même sur une clé USB, mais pour une raison que j'ignore, certaines opérations de GRASS ne fonctionnaient pas. J'ai donc opté pour &lt;span style="font-weight: bold;"&gt;andLinux&lt;/span&gt; qui ne m'a pas déçu à l'exception du clavier et de la langue que je n'ai toujours pas réussi à modifier. Pour les fins de mon exemple cartographique, cela n'a toutefois pas d'incidence majeure. Vous pourrez, comme moi, entreprendre éventuellement des recherches à cet effet notamment sur les forums de discussion.&lt;br /&gt;&lt;br /&gt;&lt;span style="font-weight: bold;"&gt;andLinux &lt;/span&gt;est offerte en deux options, celle qui utilise &lt;span style="font-weight: bold;"&gt;KDE&lt;/span&gt; comme gestionnaire de bureau et l'autre qui utilise &lt;span style="font-weight: bold;"&gt;XFCE&lt;/span&gt; qui est plus léger. Pour mon PIII, ce dernier convient bien. Je ne couvrirai pas l'installation de &lt;span style="font-weight: bold;"&gt;andLinux &lt;/span&gt;sur l'ordinateur, référez-vous aux supports du site. Je mentionnerai seulement que j'ai choisi l'option "&lt;span style="font-style: italic;"&gt;démarrer en ligne de commande + panneau XFCE&lt;/span&gt;". J'ai aussi choisi 256 Mo RAM pour son fonctionnement, la plupart des autres options étant laissées comme proposées par défaut.&lt;br /&gt;&lt;br /&gt;Une fois l'installation terminée, vous aurez une distribution &lt;span style="font-weight: bold;"&gt;Ubuntu "Jaunty" &lt;/span&gt;avec l'environnement de bureau accessible dans une barre d'outils dans le haut de l'écran. Vous pouvez relocaliser cette barre d'outils en cliquant dessus avec le bouton droit de la souris et en choisissant l'option &lt;span style="font-weight: bold;"&gt;Customize panel&lt;/span&gt;.&lt;br /&gt;&lt;br /&gt;&lt;span style="text-decoration: underline;"&gt;&lt;a href="http://fr.tinypic.com/?ref=9t27w2" target="_blank"&gt;&lt;img src="http://i28.tinypic.com/9t27w2.jpg" alt="Image and video hosting by TinyPic" border="0" /&gt;&lt;/a&gt;&lt;/span&gt;&lt;br /&gt;&lt;br /&gt;&lt;a href="http://www.blogger.com/www.ubuntu-fr.org/"&gt;Ubuntu&lt;/a&gt; est dérivée de &lt;a href="http://www.debian.org/"&gt;Debian&lt;/a&gt;. Elle est très répandue, sa communauté d'utilisateurs étant une des plus importantes chez Linux. Ce que j'apprécie beaucoup d'Ubuntu, c'est la facilité avec laquelle il est possible de gérer l'installation des applications. Nous le verrons lors de l'installation de GRASS/QGIS.&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;span style="font-weight: bold;"&gt;B) MISE À JOUR DE LINUX&lt;br /&gt;&lt;br /&gt;&lt;/span&gt;Lorsque je débute une session Linux, je mets toujours à jour les logiciels installés pour bénéficier des plus récentes modifications. Pour ce faire, il est possible de procéder par lignes de commande dans un Terminal, mais nous allons utiliser le logiciel &lt;span style="font-weight: bold;"&gt;Synaptic &lt;/span&gt;qui est plus convivial.&lt;br /&gt;&lt;br /&gt;Dans la barre d'outils de Linux, cliquez sur le deuxième icone à partir de la droite et inscrivez le mot de passe (qui vous est demandé en ligne de commande) que vous avez choisi lors de l'installation. Suivra l'ouverture de &lt;span style="font-weight: bold;"&gt;Synaptic&lt;/span&gt;.&lt;br /&gt;&lt;span style="text-decoration: underline;"&gt;&lt;br /&gt;&lt;a href="http://fr.tinypic.com/?ref=2hzv4j" target="_blank"&gt;&lt;img src="http://i27.tinypic.com/2hzv4j.jpg" alt="Image and video hosting by TinyPic" border="0" /&gt;&lt;/a&gt;&lt;br /&gt;&lt;/span&gt;&lt;br /&gt;La mise à jour des logiciels (paquets) se fait en cliquant successivement sur &lt;span style="font-weight: bold;"&gt;Reload&lt;/span&gt;, &lt;span style="font-weight: bold;"&gt;Mark All Upgrades&lt;/span&gt;, puis &lt;span style="font-weight: bold;"&gt;Apply&lt;/span&gt;. La mise à jour peut prendre plusieurs minutes, mais vous aurez les plus récentes versions des logiciels de la distribution "Jaunty" d'Ubuntu. Toutefois, les logiciels GRASS et QGIS ne figurent pas sur les dépôts de logiciels disponibles par défaut, alors il faudra les ajouter. Pour Ubuntu "Jaunty", les dépôts à utiliser sont les suivants:&lt;br /&gt;&lt;pre id="sources-list-entries" class="wrap"&gt;deb &lt;a href="http://ppa.launchpad.net/ubuntugis/ubuntugis-unstable/ubuntu"&gt;http://ppa.launchpad.net/ubuntugis/ubuntugis-unstable/ubuntu&lt;/a&gt; &lt;span id="series-deb"&gt;jaunty&lt;/span&gt; main&lt;br /&gt;deb-src &lt;a href="http://ppa.launchpad.net/ubuntugis/ubuntugis-unstable/ubuntu"&gt;http://ppa.launchpad.net/ubuntugis/ubuntugis-unstable/ubuntu&lt;/a&gt; &lt;span id="series-deb-src"&gt;jaunty&lt;/span&gt; main &lt;/pre&gt;Pour les ajouter, allez dans Synaptic et choisir les options &lt;span style="font-weight: bold;"&gt;Settings&lt;/span&gt;, &lt;span style="font-weight: bold;"&gt;Repositories&lt;/span&gt;, puis cliquez sur le bouton &lt;span style="font-weight: bold;"&gt;New&lt;/span&gt;&lt;span style="font-weight: bold;"&gt;&lt;/span&gt;. Inscrivez l'information de la même façon que dans les deux images ci-dessous (cliquez &lt;span style="font-weight: bold;"&gt;OK &lt;/span&gt;lorsque terminé):&lt;br /&gt;&lt;br /&gt;&lt;a href="http://fr.tinypic.com/?ref=jagrno" target="_blank"&gt;&lt;img src="http://i29.tinypic.com/jagrno.jpg" alt="Image and video hosting by TinyPic" border="0" /&gt;&lt;/a&gt;&lt;br /&gt;&lt;a href="http://fr.tinypic.com/?ref=315fhnk" target="_blank"&gt;&lt;img src="http://i25.tinypic.com/315fhnk.jpg" alt="Image and video hosting by TinyPic" border="0" /&gt;&lt;/a&gt;&lt;br /&gt;&lt;br /&gt;Lorsque terminé, cliquez sur le bouton &lt;span style="font-weight: bold;"&gt;Reload &lt;/span&gt;de Synaptic. Vous devriez obtenir le message d'erreur suivant:&lt;br /&gt;&lt;br /&gt;&lt;a href="http://fr.tinypic.com/?ref=fw2lom" target="_blank"&gt;&lt;img src="http://i31.tinypic.com/fw2lom.jpg" alt="Image and video hosting by TinyPic" border="0" /&gt;&lt;/a&gt;&lt;br /&gt;&lt;br /&gt;Pas de panique! Selon &lt;a href="http://doc.ubuntu-fr.org/tutoriel/comment_modifier_sources_maj"&gt;Ubuntu&lt;/a&gt;,  &lt;span style="font-style: italic;"&gt;certai&lt;/span&gt;&lt;span style="font-style: italic;" class="search_hit"&gt;n&lt;/span&gt;&lt;span style="font-style: italic;"&gt;es  sources de mise à jour utilise&lt;/span&gt;&lt;span style="font-style: italic;" class="search_hit"&gt;n&lt;/span&gt;&lt;span style="font-style: italic;"&gt;t u&lt;/span&gt;&lt;span style="font-style: italic;" class="search_hit"&gt;n&lt;/span&gt;&lt;span style="font-style: italic;"&gt; système  de &lt;/span&gt;&lt;span style="font-style: italic;" class="search_hit"&gt;clé&lt;/span&gt;&lt;span style="font-style: italic;"&gt;s  qui permet de vérifier l'authe&lt;/span&gt;&lt;span style="font-style: italic;" class="search_hit"&gt;n&lt;/span&gt;&lt;span style="font-style: italic;"&gt;ticité et  l'i&lt;/span&gt;&lt;span style="font-style: italic;" class="search_hit"&gt;n&lt;/span&gt;&lt;span style="font-style: italic;"&gt;tégrité  des paquets proposés&lt;/span&gt;. Lorsqu'un tel message apparaît, il faut ajouter la clé  d'authentification absente. Pour cela, fermer Synaptic et ouvrir un terminal (premier icone à gauche de la barre d'outil).&lt;br /&gt;&lt;br /&gt;Copier la ligne suivante, la coller dans le terminal et tapez &lt;span style="font-weight: bold;"&gt;Enter&lt;/span&gt;:&lt;br /&gt;&lt;br /&gt;&lt;span style="font-weight: bold;"&gt;sudo apt-key adv --keyserver keyserver.ubuntu.com --recv-keys 314DF160&lt;/span&gt;&lt;br /&gt;&lt;code style="font-weight: bold;"&gt;&lt;/code&gt;&lt;br /&gt;Vous aurez à entrer votre mot de passe. Le chiffre à la fin de la ligne est la clé d'authentification. Vérifiez bien les caractères dans le message d'erreur, ils diffèrent suivant la distribution de Linux. Seuls les huit derniers caractères de la clé sont nécessaires. Ensuite, fermez le terminal et ouvrez à nouveau Synaptic. Cliquez sur le bouton &lt;span style="font-weight: bold;"&gt;Reload. &lt;/span&gt;Tout devrait se dérouler normalement et les logiciels GRASS et QGIS sont désormais disponibles pour installation.&lt;br /&gt;&lt;br /&gt;Tout ceci peut sembler compliqué pour un débutant sur Linux, mais ce ne sont que des opérations de routine pour les distributions dérivées d'Ubuntu ou de Debian. Mentionnons que les distributions dérivées de &lt;a href="http://www.redhat.com/"&gt;Red Hat&lt;/a&gt; (ou &lt;a href="http://fedoraproject.org/fr/"&gt;Fedora&lt;/a&gt;) et de &lt;a href="http://www2.mandriva.com/fr/"&gt;Mandriv&lt;/a&gt;a (autrefois Mandrake) utilisent également le logiciel de gestion de paquets &lt;span style="font-weight: bold;"&gt;Synaptic&lt;/span&gt;. &lt;a href="http://fr.opensuse.org/Bienvenue_sur_openSUSE.org"&gt;Opensuse&lt;/a&gt; utilise un système similaire avec &lt;span style="font-weight: bold;"&gt;Yum&lt;/span&gt;. Linux est un monde passionnant à découvrir et je ne peux qu'encourager son utilisation.&lt;br /&gt;&lt;br /&gt;&lt;span style="font-weight: bold;"&gt;C) INSTALLATION DE GRASS ET DE QGIS&lt;/span&gt;&lt;br /&gt;&lt;br /&gt;Dans Synaptic cochez la case vide vis-à-vis les logiciels (paquets) que vous allez installer, soit:&lt;br /&gt;&lt;br /&gt;&lt;span style="font-weight: bold;"&gt;qgis-plugin-grass&lt;/span&gt;&lt;span style="font-weight: bold;"&gt;&lt;br /&gt;grass-doc&lt;/span&gt;&lt;span style="font-weight: bold;"&gt;&lt;br /&gt;avce00&lt;/span&gt;&lt;span style="font-weight: bold;"&gt;&lt;br /&gt;e00compr&lt;/span&gt;&lt;span style="font-weight: bold;"&gt;&lt;br /&gt;python-gdal&lt;br /&gt;gdal-bin&lt;br /&gt;libgdal1-1.6.0-grass&lt;br /&gt;emelfm2&lt;br /&gt;&lt;br /&gt;&lt;/span&gt;Vous pouvez utiliser la fonction &lt;span style="font-weight: bold;"&gt;Search &lt;/span&gt;de Synaptic pour chacun des logiciels concernés. &lt;span style="font-weight: bold;"&gt;emelfm2 &lt;/span&gt;est un gestionnaire de répertoires et de fichiers, comme &lt;span style="font-weight: bold;"&gt;Thunar &lt;/span&gt;qui est installé par défaut. Contrairement à ce dernier, &lt;span style="font-weight: bold;"&gt;emelfm2 &lt;/span&gt;permet de décompresser les fichiers &lt;span style="font-weight: bold;"&gt;zip &lt;/span&gt;avec le menu contextuel. Une fois les logiciels cochés, assurez-vous de cliquer sur &lt;span style="font-weight: bold;"&gt;Mark for Installation&lt;/span&gt;, ce qui aura pour effet de surligner les logiciels (paquets) en vert. Cliquez par la suite sur &lt;span style="font-weight: bold;"&gt;Apply &lt;/span&gt;pour l'installation qui devrait prendre quelques minures.&lt;br /&gt;&lt;br /&gt;&lt;a href="http://fr.tinypic.com/?ref=2l5o9g" target="_blank"&gt;&lt;img src="http://i28.tinypic.com/2l5o9g.jpg" alt="Image and video hosting by TinyPic" border="0" /&gt;&lt;/a&gt;&lt;br /&gt;&lt;br /&gt;Voilà, vous êtes maintenant prêts à opérer &lt;span style="font-weight: bold;"&gt;GRASS &lt;/span&gt;et &lt;span style="font-weight: bold;"&gt;QGIS &lt;/span&gt;sur Linux!&lt;br /&gt;&lt;br /&gt;&lt;span style="font-weight: bold;"&gt;D) STRUCTURATION DES RÉPERTOIRES&lt;/span&gt;&lt;br /&gt;&lt;br /&gt;L'architecture de la base de données de Grass est expliquée &lt;a href="http://www.gdf-hannover.de/lit_html/grass60_v1.2_fr/node10.html#SECTION00073100000000000000"&gt;ici&lt;/a&gt;. Pour les besoins de notre projet, nous utiliserons un répertoire principal &lt;span style="font-weight: bold;"&gt;grassdata&lt;/span&gt; pour être compatible avec les jeux de données &lt;a href="http://grass.itc.it/download/data6.php"&gt;démos&lt;/a&gt; de GRASS, et les sous-répertoires &lt;span style="font-weight: bold;"&gt;donnees&lt;/span&gt; et &lt;span style="font-weight: bold;"&gt;projections&lt;/span&gt;. Dans le sous-répertoire &lt;span style="font-weight: bold;"&gt;donnees&lt;/span&gt;, nous allons inclure d'autres sous-répertoires suivant la nature des données utilisées, comme par exemple &lt;span style="font-weight: bold;"&gt;hydro&lt;/span&gt;, &lt;span style="font-weight: bold;"&gt;topo, routes &lt;/span&gt;et &lt;span style="font-weight: bold;"&gt;limites&lt;/span&gt;.&lt;br /&gt;&lt;br /&gt;Pour créer les répertoires, ouvrez un terminal et tapez&lt;span style="font-weight: bold;"&gt; &lt;/span&gt;&lt;span style="font-weight: bold;"&gt;sudo thunar&lt;/span&gt;. Vous aurez à inscrire votre mot de passe. Pour créer un répertoire, il faut être en mode administrateur, d'où la commande &lt;span style="font-weight: bold;"&gt;sudo&lt;/span&gt;. Allez dans votre répertoire &lt;span style="font-weight: bold;"&gt;Home&lt;/span&gt;, cliquez sur le bouton droit de la souris et choisissez &lt;span style="font-weight: bold;"&gt;Create folder &lt;/span&gt;et donnez lui le nom de &lt;span style="font-weight: bold;"&gt;grassdata&lt;/span&gt;.&lt;br /&gt;&lt;br /&gt;&lt;a href="http://fr.tinypic.com/?ref=2pypdsn" target="_blank"&gt;&lt;img src="http://i30.tinypic.com/2pypdsn.jpg" alt="Image and video hosting by TinyPic" border="0" /&gt;&lt;/a&gt;&lt;br /&gt;&lt;br /&gt;Une fois que le répertoire &lt;span style="font-weight: bold;"&gt;grassdata &lt;/span&gt;est créé, créez des sous-répertoires de la même façon, pour obtenir ce qui suit:&lt;br /&gt;&lt;br /&gt;&lt;span style="font-weight: bold;"&gt;/home/grassdata/donnees/hydro&lt;/span&gt;&lt;br /&gt;&lt;span style="font-weight: bold;"&gt;/home/grassdata/donnees/topo&lt;/span&gt;&lt;br /&gt;&lt;span style="font-weight: bold;"&gt;/home/grassdata/donnees/routes&lt;/span&gt;&lt;br /&gt;&lt;span style="font-weight: bold;"&gt;/home/grassdata/donnees/limites&lt;/span&gt;&lt;br /&gt;&lt;span style="font-weight: bold;"&gt;/home/grassdata/projections&lt;/span&gt;&lt;br /&gt;&lt;br /&gt;Le sous-répertoire &lt;span style="font-weight: bold;"&gt;donnees &lt;/span&gt;permettra de stocker les données source (données de base) du projet, alors que le sous-répertoire &lt;span style="font-weight: bold;"&gt;projections &lt;/span&gt;permettra de créer les différents projets dans GRASS basés notamment sur les critères de projection et de localisation. À noter qu'il est préférable d'éviter des noms avec accents pour les répertoires et les fichiers.&lt;br /&gt;&lt;br /&gt;&lt;span style="font-weight: bold;"&gt;E) DONNÉES DE BASE&lt;/span&gt;&lt;br /&gt;&lt;br /&gt;Voici les liens permettant de télécharger les données de base que nous utiliserons pour la cartographie du Québec:&lt;br /&gt;&lt;br /&gt;&lt;a href="ftp://ftp.mrnf.gouv.qc.ca/Public/Dgig/Produits/bdga1m/vectoriel/regio_s_1001.zip"&gt;Contours du Québec&lt;/a&gt;&lt;br /&gt;&lt;a href="ftp://ftp.mrn.gouv.qc.ca/Public/Dgig/Produits/bdga5m/vectoriel/hydro_s.zip"&gt;Hydrologie&lt;/a&gt;&lt;a href="ftp://ftp.mrn.gouv.qc.ca/Public/Dgig/Produits/bdga5m/vectoriel/hydro_s.zip"&gt; de surface&lt;/a&gt;&lt;br /&gt;&lt;a href="ftp://ftp.mrn.gouv.qc.ca/Public/Dgig/Produits/bdga5m/vectoriel/hydro_l.zip"&gt;Hydrologie linéaire&lt;/a&gt;&lt;br /&gt;&lt;a href="ftp://ftp.mrn.gouv.qc.ca/Public/Dgig/Produits/bdga1m/vectoriel/route_l.zip"&gt;Routes&lt;/a&gt;&lt;br /&gt;&lt;a href="http://ftp2.cits.nrcan.gc.ca/pub/canada3D/can3d30.zip"&gt;Topographie&lt;/a&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;Mentionnons que les données ci-dessus sont fournies dans une &lt;span style="font-weight: bold;"&gt;projection  géographique&lt;/span&gt; (&lt;span&gt;latitude/longitude&lt;/span&gt;)  utilisant le datum &lt;span style="font-weight: bold;"&gt;NAD83&lt;/span&gt;. Ces  informations seront utilisées lors de la création du projet dans  GRASS/QGIS.&lt;br /&gt;&lt;br /&gt;Lorsque vous cliquerez sur les liens, sauvegardez les fichiers &lt;span style="font-weight: bold;"&gt;zip &lt;/span&gt;dans les sous-répertoires appropriés. &lt;archives. vous="" n=""&gt;&lt;avez qu=""&gt;Il est possible d'ajouter d'autres données disponibles sur le site du &lt;a href="http://www.mrnfp.gouv.qc.ca/territoire/portrait/portrait-donnees-mille.jsp"&gt;gouvernement du Québec&lt;/a&gt;, le site &lt;a href="http://geogratis.cgdi.gc.ca/geogratis/fr/index.html"&gt;Geogratis&lt;/a&gt; ou le site &lt;a href="http://www.geocomm.com/"&gt;Geocomm&lt;/a&gt;, mais dans le cadre de notre démo, cela suffira. Pour décompresser les fichiers, ouvrez un terminal, tapez &lt;span style="font-weight: bold;"&gt;emelfm2 &lt;/span&gt;et rendez-vous dans le sous-répertoire désiré. Cliquez sur un fichier zippé avec le bouton droit de la souris et sélectionnez &lt;span style="font-weight: bold;"&gt;unzip&lt;/span&gt;.&lt;br /&gt;&lt;br /&gt;&lt;a href="http://fr.tinypic.com/?ref=sqnqjp" target="_blank"&gt;&lt;img src="http://i27.tinypic.com/sqnqjp.jpg" alt="Image and video hosting by TinyPic" border="0" /&gt;&lt;/a&gt;&lt;br /&gt;&lt;a href="http://fr.tinypic.com/?ref=20g1cll" target="_blank"&gt;&lt;img src="http://i27.tinypic.com/20g1cll.jpg" alt="Image and video hosting by TinyPic" border="0" /&gt;&lt;/a&gt;&lt;br /&gt;&lt;br /&gt;Les fichiers résultants sont des fichiers Arcinfo au format &lt;span style="font-weight: bold;"&gt;e00&lt;/span&gt;, sauf le fichier d'élévation dont le format est &lt;span style="font-weight: bold;"&gt;ASCII GRID&lt;/span&gt;. Les informations concernant ce dernier sont disponible &lt;a href="http://ftp2.cits.nrcan.gc.ca/pub/canada3D/doc/norme_canada3d_fr.pdf"&gt;ici&lt;/a&gt;.&lt;br /&gt;&lt;br /&gt;&lt;span style="font-weight: bold;"&gt;F) CRÉATION DU PROJET QUEBEC DANS GRASS/QGIS&lt;/span&gt;&lt;br /&gt;&lt;br /&gt;La création du projet peut s'effectuer dans l'un ou l'autre des logiciels. Dans notre exemple, nous utiliserons QGIS qui rend l'opération très conviviale.&lt;br /&gt;&lt;br /&gt;Ouvrez un terminal, tapez&lt;span style="font-weight: bold;"&gt; QGIS&lt;/span&gt;&lt;span style="font-weight: bold;"&gt; &lt;/span&gt;puis &lt;span style="font-weight: bold;"&gt;Enter&lt;/span&gt;.&lt;br /&gt;&lt;br /&gt;&lt;a href="http://fr.tinypic.com/?ref=2uhr0ax" target="_blank"&gt;&lt;img src="http://i30.tinypic.com/2uhr0ax.jpg" alt="Image and video hosting by TinyPic" border="0" /&gt;&lt;/a&gt;&lt;br /&gt;&lt;br /&gt;&lt;a href="http://fr.tinypic.com/?ref=2ezs8sy" target="_blank"&gt;&lt;img src="http://i28.tinypic.com/2ezs8sy.jpg" alt="Image and video hosting by TinyPic" border="0" /&gt;&lt;/a&gt;&lt;br /&gt;&lt;br /&gt;À l'ouverture de QGIS, vous avez d'abord un visualisateur qui peut charger des données numériques sous plusieurs formats différents et confectionner des cartes thématiques. La version 1.4.0 de QGIS sous Ubuntu &lt;span style="font-weight: bold;"&gt;Jaunty &lt;/span&gt;est en outre pourvue de la suite &lt;span style="font-weight: bold;"&gt;fTools &lt;/span&gt;qui permet un ensemble d'opérations d'édition sur les vecteurs, à la manière d'ArcToolBox chez ArcGIS et élevant ainsi QGIS au rang de logiciel géomatique complet.&lt;br /&gt;&lt;br /&gt;Je sais que l'ajout de &lt;span style="font-weight: bold;"&gt;fTools &lt;/span&gt;est relativement récent et je ne serais pas surpris si les versions QGIS des distributions antérieures d'Ubuntu comme &lt;span style="font-weight: bold;"&gt;Hardy &lt;/span&gt;n'ont pas cette suite d'outils. Dans un tel cas, l'édition des fichiers n'est possible qu'en les convertissant au format de GRASS pour avoir accès aux outils d'édition GRASS. Afin de rendre notre exemple applicable à toutes les versions du logiciel, nous utiliserons donc les outils d'édition GRASS. Pour les charger, allez dans &lt;span style="font-weight: bold;"&gt;Plugins&lt;/span&gt;, &lt;span style="font-weight: bold;"&gt;Manage plugins&lt;/span&gt; et cochez la case de GRASS.&lt;br /&gt;&lt;br /&gt;&lt;a href="http://fr.tinypic.com/?ref=14wzgvs" target="_blank"&gt;&lt;img src="http://i32.tinypic.com/14wzgvs.jpg" alt="Image and video hosting by TinyPic" border="0" /&gt;&lt;/a&gt;&lt;br /&gt;&lt;br /&gt;Vous aurez alors un logiciel géomatique complet et performant, même sans les outils fTools.&lt;br /&gt;&lt;br /&gt;&lt;a href="http://fr.tinypic.com/?ref=2m308j7" target="_blank"&gt;&lt;img src="http://i28.tinypic.com/2m308j7.jpg" alt="Image and video hosting by TinyPic" border="0" /&gt;&lt;/a&gt;&lt;br /&gt;&lt;br /&gt;&lt;/avez&gt;&lt;/archives.&gt;&lt;archives. vous="" n=""&gt;&lt;avez qu=""&gt;La conversion (importation) des fichiers au format GRASS a l'avantage de corriger les erreurs topologiques et permet de s'assurer que les fichiers soient dans la bonne projection et ce, pour toutes les versions de GRASS/QGIS. Pour la conversion des fichiers, nous utiliserons encore QGIS.&lt;br /&gt;&lt;br /&gt;Avant l'importation, il faut créer un projet défini par la projection et les limites du territoire. Si vous avez des données de base avec une projection différente, il faudra créer un second projet défini par cette projection pour importer les données, quitte à les convertir en projection différente par la suite.&lt;br /&gt;&lt;br /&gt;Allez dans QGIS et sélectionnez les menus &lt;span style="font-weight: bold;"&gt;Plugins&lt;/span&gt;, &lt;span style="font-weight: bold;"&gt;GRASS &lt;/span&gt;puis &lt;span style="font-weight: bold;"&gt;New Mapset&lt;/span&gt;.&lt;br /&gt;&lt;br /&gt;&lt;a href="http://fr.tinypic.com/?ref=311te2q" target="_blank"&gt;&lt;img src="http://i30.tinypic.com/311te2q.jpg" alt="Image and video hosting by TinyPic" border="0" /&gt;&lt;/a&gt;&lt;br /&gt;&lt;br /&gt;Sélectionnez votre répertoire &lt;span style="font-weight: bold;"&gt;/home/grassdata/projections&lt;/span&gt;, puis cliquez &lt;span style="font-weight: bold;"&gt;Next&lt;/span&gt;.&lt;br /&gt;&lt;br /&gt;&lt;a href="http://fr.tinypic.com/?ref=261n6hl" target="_blank"&gt;&lt;img src="http://i29.tinypic.com/261n6hl.jpg" alt="Image and video hosting by TinyPic" border="0" /&gt;&lt;/a&gt;&lt;br /&gt;&lt;br /&gt;Dans la fenêtre suivante, inscrivez le nom de la nouvelle "&lt;span style="font-weight: bold;"&gt;location&lt;/span&gt;". Dans mon cas, j'ai inscrit &lt;span style="font-weight: bold;"&gt;latlonNAD83 &lt;/span&gt;pour définir la projection géographique. Cliquez &lt;span style="font-weight: bold;"&gt;Next&lt;/span&gt;.&lt;br /&gt;&lt;br /&gt;&lt;a href="http://fr.tinypic.com/?ref=eb7sw4" target="_blank"&gt;&lt;img src="http://i28.tinypic.com/eb7sw4.jpg" alt="Image and video hosting by TinyPic" border="0" /&gt;&lt;/a&gt;&lt;br /&gt;&lt;br /&gt;La fenêtre suivante vous donne le choix des projections. Vous pouvez les choisir avec le menu déroulant ou avec les codes &lt;a href="http://www.epsg.org/"&gt;EPSG&lt;/a&gt;, ce que nous ferons.&lt;br /&gt;&lt;br /&gt;&lt;a href="http://fr.tinypic.com/?ref=28rfo1l" target="_blank"&gt;&lt;img src="http://i32.tinypic.com/28rfo1l.jpg" alt="Image and video hosting by TinyPic" border="0" /&gt;&lt;/a&gt;&lt;br /&gt;&lt;br /&gt;&lt;/avez&gt;&lt;/archives.&gt;Le code EPSG pour la projection géographique avec le datum NAD83 est le &lt;span style="font-weight: bold;"&gt;4269&lt;/span&gt;. Inscrivez ce nombre dans la case et cliquez &lt;span style="font-weight: bold;"&gt;Find&lt;/span&gt;. La projection devrait apparaître dans le menu déroulant. Cliquez &lt;span style="font-weight: bold;"&gt;Next&lt;/span&gt;.&lt;br /&gt;&lt;br /&gt;&lt;a href="http://fr.tinypic.com/?ref=10mjtd5" target="_blank"&gt;&lt;img src="http://i27.tinypic.com/10mjtd5.jpg" alt="Image and video hosting by TinyPic" border="0" /&gt;&lt;/a&gt;&lt;br /&gt;&lt;br /&gt;Dans la fenêtre suivante, Sélectionnez &lt;span style="font-weight: bold;"&gt;Canada &lt;/span&gt;et cliquez sur &lt;span style="font-weight: bold;"&gt;Set&lt;/span&gt;. La projection se délimitera automatiquement sur la carte. Cliquez sur &lt;span style="font-weight: bold;"&gt;Next&lt;/span&gt;.&lt;br /&gt;&lt;br /&gt;&lt;a href="http://fr.tinypic.com/?ref=4g2nsy" target="_blank"&gt;&lt;img src="http://i28.tinypic.com/4g2nsy.jpg" alt="Image and video hosting by TinyPic" border="0" /&gt;&lt;/a&gt;&lt;br /&gt;&lt;br /&gt;Maintenant, inscrire &lt;span style="font-weight: bold;"&gt;quebec &lt;/span&gt;dans la case &lt;span style="font-weight: bold;"&gt;New mapset&lt;/span&gt;, ce qui deviendra l'espace de travail. Cliquez &lt;span style="font-weight: bold;"&gt;Next &lt;/span&gt;et &lt;span style="font-weight: bold;"&gt;Finish &lt;/span&gt;à la fenêtre suivante.&lt;br /&gt;&lt;br /&gt;&lt;a href="http://fr.tinypic.com/?ref=2hdp4ax" target="_blank"&gt;&lt;img src="http://i27.tinypic.com/2hdp4ax.jpg" alt="Image and video hosting by TinyPic" border="0" /&gt;&lt;/a&gt;&lt;br /&gt;&lt;br /&gt;Votre projet est défini et vous pouvez ainsi convertir les fichiers de base en format  GRASS.&lt;br /&gt;&lt;br /&gt;&lt;a href="http://fr.tinypic.com/?ref=vxf7m9" target="_blank"&gt;&lt;img src="http://i27.tinypic.com/vxf7m9.jpg" alt="Image and video hosting by TinyPic" border="0" /&gt;&lt;/a&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;span style="font-weight: bold;"&gt;G) CONVERSION DES DONNÉES AU FORMAT GRASS&lt;/span&gt;&lt;br /&gt;&lt;br /&gt;Allez dans les menus &lt;span style="font-weight: bold;"&gt;Plugins&lt;/span&gt;, &lt;span style="font-weight: bold;"&gt;GRASS &lt;/span&gt;et &lt;span style="font-weight: bold;"&gt;Open GRASS tools&lt;/span&gt;.&lt;br /&gt;&lt;br /&gt;&lt;a href="http://fr.tinypic.com/?ref=vglphy" target="_blank"&gt;&lt;img src="http://i27.tinypic.com/vglphy.jpg" alt="Image and video hosting by TinyPic" border="0" /&gt;&lt;/a&gt;&lt;br /&gt;&lt;br /&gt;Dans la fenêtre suivante, soit la boîte d'outils de GRASS, allez dans &lt;span style="font-weight: bold;"&gt;File&lt;/span&gt;, &lt;span style="font-weight: bold;"&gt;Import&lt;/span&gt;, &lt;span style="font-weight: bold;"&gt;Import vector&lt;/span&gt;, puis choisissez la fonction &lt;span style="font-weight: bold;"&gt;v.in.e00&lt;/span&gt; qui convertira les fichiers d'origine au format e00 en fichier de format GRASS.&lt;br /&gt;&lt;br /&gt;&lt;a href="http://fr.tinypic.com/?ref=10rmpgg" target="_blank"&gt;&lt;img src="http://i26.tinypic.com/10rmpgg.jpg" alt="Image and video hosting by TinyPic" border="0" /&gt;&lt;/a&gt;&lt;br /&gt;&lt;br /&gt;Dans la fenêtre de sélection des fichiers, vous devez spécifier l'&lt;span style="font-weight: bold;"&gt;emplacement&lt;/span&gt;, la &lt;span style="font-weight: bold;"&gt;nature &lt;/span&gt;&lt;span&gt;(type)&lt;/span&gt;&lt;span style="font-weight: bold;"&gt; &lt;/span&gt;du fichier et le &lt;span style="font-weight: bold;"&gt;nom de sortie &lt;/span&gt;du fichier résultant. Cliquez ensuite sur &lt;span style="font-weight: bold;"&gt;Run &lt;/span&gt;et attendez patiemment que l'importation soit réussie!&lt;br /&gt;&lt;br /&gt;&lt;a href="http://fr.tinypic.com/?ref=2mwghsz" target="_blank"&gt;&lt;img src="http://i28.tinypic.com/2mwghsz.jpg" alt="Image and video hosting by TinyPic" border="0" /&gt;&lt;/a&gt;&lt;br /&gt;&lt;a href="http://fr.tinypic.com/?ref=j0bps3" target="_blank"&gt;&lt;img src="http://i31.tinypic.com/j0bps3.jpg" alt="Image and video hosting by TinyPic" border="0" /&gt;&lt;/a&gt;&lt;br /&gt;&lt;a href="http://fr.tinypic.com/?ref=10xxd6p" target="_blank"&gt;&lt;img src="http://i28.tinypic.com/10xxd6p.jpg" alt="Image and video hosting by TinyPic" border="0" /&gt;&lt;/a&gt;&lt;br /&gt;&lt;a href="http://fr.tinypic.com/?ref=el1z5y" target="_blank"&gt;&lt;img src="http://i31.tinypic.com/el1z5y.jpg" alt="Image and video hosting by TinyPic" border="0" /&gt;&lt;/a&gt;&lt;br /&gt;&lt;br /&gt;Maintenant pour vérifier la nouvelle couche GRASS, allez dans le menu &lt;span style="font-weight: bold;"&gt;Plugins&lt;/span&gt;, &lt;span style="font-weight: bold;"&gt;GRASS&lt;/span&gt;, puis &lt;span style="font-weight: bold;"&gt;Add GRASS vector layer &lt;/span&gt;et choisissez dans la fenêtre le fichier correspondant.&lt;br /&gt;&lt;br /&gt;&lt;a href="http://fr.tinypic.com/?ref=208wniv" target="_blank"&gt;&lt;img src="http://i26.tinypic.com/208wniv.jpg" alt="Image and video hosting by TinyPic" border="0" /&gt;&lt;/a&gt;&lt;br /&gt;&lt;br /&gt;&lt;a href="http://fr.tinypic.com/?ref=23wnqjq" target="_blank"&gt;&lt;img src="http://i29.tinypic.com/23wnqjq.jpg" alt="Image and video hosting by TinyPic" border="0" /&gt;&lt;/a&gt;&lt;br /&gt;&lt;br /&gt;Importer les autres couches de base dans le format de GRASS en n'oubliant pas de préciser la nature des données (lignes, points ou surfaces). Pour ce qui est du modèle numérique de terrain (MNT) pour l'élévation, procéder comme suit:&lt;br /&gt;&lt;br /&gt;Allez dans le menu &lt;span style="font-weight: bold;"&gt;Plugins&lt;/span&gt;, &lt;span style="font-weight: bold;"&gt;GRASS&lt;/span&gt;, et &lt;span style="font-weight: bold;"&gt;Open GRASS tools&lt;/span&gt;. Sélectionnez la fonction &lt;span style="font-weight: bold;"&gt;r.in.gdal&lt;/span&gt; qui se trouve dans &lt;span style="font-weight: bold;"&gt;File&lt;/span&gt;, &lt;span style="font-weight: bold;"&gt;Import&lt;/span&gt;, &lt;span style="font-weight: bold;"&gt;Import raster&lt;/span&gt;.&lt;br /&gt;&lt;br /&gt;&lt;a href="http://fr.tinypic.com/?ref=2qajs7n" target="_blank"&gt;&lt;img src="http://i25.tinypic.com/2qajs7n.jpg" alt="Image and video hosting by TinyPic" border="0" /&gt;&lt;/a&gt;&lt;br /&gt;&lt;br /&gt;Comme pour les fichiers vecteur, sélectionner le fichier d'origine, donner un nom pour le fichier de sortie et cliquez &lt;span style="font-weight: bold;"&gt;Run&lt;/span&gt;.&lt;br /&gt;&lt;br /&gt;&lt;a href="http://fr.tinypic.com/?ref=978uhu" target="_blank"&gt;&lt;img src="http://i30.tinypic.com/978uhu.jpg" alt="Image and video hosting by TinyPic" border="0" /&gt;&lt;/a&gt;&lt;br /&gt;&lt;a href="http://fr.tinypic.com/?ref=2co3rx4" target="_blank"&gt;&lt;img src="http://i30.tinypic.com/2co3rx4.jpg" alt="Image and video hosting by TinyPic" border="0" /&gt;&lt;/a&gt;&lt;br /&gt;&lt;a href="http://fr.tinypic.com/?ref=5ur4ol" target="_blank"&gt;&lt;img src="http://i28.tinypic.com/5ur4ol.jpg" alt="Image and video hosting by TinyPic" border="0" /&gt;&lt;/a&gt;&lt;br /&gt;&lt;br /&gt;Le nom des fichiers de sortie que j'ai utilisé sont les suivants:&lt;br /&gt;&lt;br /&gt;Contours du Québec: &lt;span style="font-weight: bold;"&gt;contour&lt;/span&gt;&lt;br /&gt;Hydrologie de surface: &lt;span style="font-weight: bold;"&gt;lacs&lt;/span&gt;&lt;br /&gt;Hydrologie linéaire: &lt;span style="font-weight: bold;"&gt;rivieres&lt;/span&gt;&lt;br /&gt;Routes: &lt;span style="font-weight: bold;"&gt;routes&lt;/span&gt;&lt;br /&gt;Topographie: &lt;span style="font-weight: bold;"&gt;topo30&lt;br /&gt;&lt;br /&gt;&lt;/span&gt;&lt;span style="font-style: italic;"&gt;Veuillez noter que le nom des fichers n'est donné qu'à titre indicatif sur les images car j'ai peut-être changé quelques noms au cours de la préparation de ce blog. Tenez compte surtout des noms de fichier dans le texte plutôt que celui dans les images, ces dernières ne servant que de guides.&lt;/span&gt;&lt;span style="font-weight: bold;"&gt;&lt;br /&gt;&lt;/span&gt;&lt;br /&gt;Importer l'ensemble des fichiers GRASS dans une vue de QGIS (menu &lt;span style="font-weight: bold;"&gt;Plugins&lt;/span&gt;, &lt;span style="font-weight: bold;"&gt;GRASS&lt;/span&gt;, &lt;span style="font-weight: bold;"&gt;Add GRASS vector layer &lt;/span&gt;et &lt;span style="font-weight: bold;"&gt;Add GRASS raster layer&lt;/span&gt;). Voilà, nous avons tout ce qu'il faut pour produire une carte de base du Québec.&lt;br /&gt;&lt;br /&gt;&lt;a href="http://fr.tinypic.com/?ref=2m4p2jb" target="_blank"&gt;&lt;img src="http://i25.tinypic.com/2m4p2jb.jpg" alt="Image and video hosting by TinyPic" border="0" /&gt;&lt;/a&gt;&lt;br /&gt;&lt;span style="font-weight: bold;"&gt;&lt;br /&gt;H) ÉDITION DE LA CARTE FINALE&lt;/span&gt;&lt;br /&gt;&lt;br /&gt;L'édition de la carte finale comprend plusieurs étapes. Brièvement, nous allons dissoudre les limites administratives internes du fichier &lt;span style="font-weight: bold;"&gt;contour &lt;/span&gt;pour créer un fichier &lt;span style="font-weight: bold;"&gt;limites &lt;/span&gt;ne contenant que les limites externe du Québec. Ce fichier servira à extraire l'information des autres fichiers qui se trouve à l'intérieur de ces limites. Finalement, nous éditerons l'apparence des fichiers vecteur/raster.&lt;br /&gt;&lt;br /&gt;Nous allons procéder à l'édition des fichiers avec &lt;span style="font-weight: bold;"&gt;GRASS&lt;/span&gt;, ce qui nous permettra de donner une bonne idée de son fonctionnement. &lt;span style="font-weight: bold;"&gt;Fermez QGIS, ouvrez un terminal, tapez GRASS&lt;/span&gt; puis &lt;span style="font-weight: bold;"&gt;Enter&lt;/span&gt;.&lt;br /&gt;&lt;br /&gt;&lt;a href="http://fr.tinypic.com/?ref=30kpw02" target="_blank"&gt;&lt;img src="http://i29.tinypic.com/30kpw02.jpg" alt="Image and video hosting by TinyPic" border="0" /&gt;&lt;/a&gt;&lt;br /&gt;&lt;br /&gt;Tapez sur &lt;span style="font-weight: bold;"&gt;Enter &lt;/span&gt;à nouveau. Dans la fenêtre suivante, sélectionner le répertoire &lt;span style="font-weight: bold;"&gt;projections&lt;/span&gt;, cliquez sur &lt;span style="font-weight: bold;"&gt;latlonNad83&lt;/span&gt;, puis sur &lt;span style="font-weight: bold;"&gt;quebec&lt;/span&gt;. Si vous ne cliquez pas sur latlonNad83, vous ne verrez pas quebec. Cliquez ensuite sur &lt;span style="font-weight: bold;"&gt;Enter GRASS&lt;/span&gt; (si vous ne cliquez pas sur quebec, vous ne pourrez pas entrer dans GRASS).&lt;br /&gt;&lt;br /&gt;&lt;a href="http://fr.tinypic.com/?ref=2w3q2ir" target="_blank"&gt;&lt;img src="http://i27.tinypic.com/2w3q2ir.jpg" alt="Image and video hosting by TinyPic" border="0" /&gt;&lt;/a&gt;&lt;br /&gt;&lt;br /&gt;Vous devriez avoir quatre fenêtres que j'ai disposées comme dans l'image ci-dessous. En haut à droite se trouve la fenêtre principale de GRASS avec ses menus, la fenêtre en bas à droite le terminal GRASS où l'on peut entrer les mêmes fonctions que dans les menus mais en ligne de commande, en haut à gauche se situe le module cartographique de GRASS et en bas à gauche le module de suivi des opérations:&lt;br /&gt;&lt;br /&gt;&lt;a href="http://fr.tinypic.com/?ref=33bjx2e" target="_blank"&gt;&lt;img src="http://i28.tinypic.com/33bjx2e.jpg" alt="Image and video hosting by TinyPic" border="0" /&gt;&lt;/a&gt;&lt;br /&gt;&lt;br /&gt;Avant de procéder à des opérations d'édition, délimitez le territoire de votre "mapset" &lt;span style="font-weight: bold;"&gt;quebec &lt;/span&gt;avec les menus suivants: &lt;span style="font-weight: bold;"&gt;Config&lt;/span&gt;, &lt;span style="font-weight: bold;"&gt;Region&lt;/span&gt;, &lt;span style="font-weight: bold;"&gt;Change region settings&lt;/span&gt; (vous pourriez alternativement taper&lt;span style="font-weight: bold;"&gt; g.region &lt;/span&gt;dans le terminal de GRASS). Utiliser le fichier du contour du Québec à cette fin (sélectionnez-le en cliquant sur l'icone).&lt;br /&gt;&lt;br /&gt;&lt;a href="http://fr.tinypic.com/?ref=f486p" target="_blank"&gt;&lt;img src="http://i26.tinypic.com/f486p.jpg" alt="Image and video hosting by TinyPic" border="0" /&gt;&lt;/a&gt;&lt;br /&gt;&lt;br /&gt;1° &lt;span style="font-weight: bold; text-decoration: underline;"&gt;dissolution du fichier contour&lt;/span&gt;: dans le terminal de GRASS, taper: &lt;span style="font-weight: bold;"&gt;v.extract -d in=contour out=limites list=1-21 new=1 &lt;/span&gt;sur une même ligne. Cette commande créera un fichier vecteur nommé &lt;span style="font-weight: bold;"&gt;limites &lt;/span&gt;correspondant au contour uniquement de la province. La commande a comme effet de dissoudre (comparable à une fonction "Dissolve") les limites des régions administratives du fichier &lt;span style="font-weight: bold;"&gt;contour&lt;/span&gt;.  À noter que le fichier &lt;span style="font-weight: bold;"&gt;contour &lt;/span&gt;contient 21 enregistrements (régions administratives) et que l'option &lt;span style="font-weight: bold;"&gt;new=1&lt;/span&gt; est importante pour le découpage. Elle attribue au seul enregistrement résultant la valeur de 1.&lt;br /&gt;&lt;br /&gt;C'est la façon la moins conviviale d'opérer GRASS. Vous pouvez aussi utiliser les menus &lt;span style="font-weight: bold;"&gt;Vector &lt;/span&gt;et &lt;span style="font-weight: bold;"&gt;Query with attributes&lt;/span&gt; qui font apparaître la fenêtre de l'opération &lt;span style="font-weight: bold;"&gt;v.extract&lt;/span&gt;. Vous auriez pu aussi taper v.extract&lt;span style="font-weight: bold;"&gt; &lt;/span&gt;dans le terminal GRASS pour faire apparaître la fenêtre. La fonction v.extract est également disponible dans QGIS.&lt;br /&gt;&lt;br /&gt;2° &lt;span style="font-weight: bold; text-decoration: underline;"&gt;découpage du fichier topographique&lt;/span&gt;: pour découper le fichier topographique avec le contour, il faut d'abord convertir ce dernier en raster. Dans le terminal de GRASS, tapez: &lt;span style="font-weight: bold;"&gt;v.to.rast &lt;/span&gt;(vous pouvez aussi utiliser l'interface graphique de GRASS en sélectionnant le menu: &lt;span style="font-weight: bold;"&gt;File &lt;/span&gt;- &lt;span style="font-weight: bold;"&gt;Map type conversions&lt;/span&gt; - &lt;span style="font-weight: bold;"&gt;Vector to raster&lt;/span&gt;).&lt;br /&gt;&lt;br /&gt;À la première ligne, entrer le nom du fichier vecteur à convertir en raster (e.g. &lt;span style="font-weight: bold;"&gt;limites&lt;/span&gt;). À la seconde ligne, entrer le nom du fichier raster en sortie (e.g. &lt;span style="font-weight: bold;"&gt;clip&lt;/span&gt;). Au menu déroulant, sélectionner &lt;span style="font-weight: bold;"&gt;cat&lt;/span&gt; qui correspond à la colonne dans la table d'attributs qui a reçu la valeur de 1 lors de l'option &lt;span style="font-weight: bold;"&gt;new=1&lt;/span&gt; à l'étape précédente. Cliquer sur &lt;span style="font-weight: bold;"&gt;Run&lt;/span&gt;.&lt;br /&gt;&lt;br /&gt;&lt;a href="http://fr.tinypic.com/?ref=30m8iv6" target="_blank"&gt;&lt;img src="http://i27.tinypic.com/30m8iv6.jpg" alt="Image and video hosting by TinyPic" border="0" /&gt;&lt;/a&gt;&lt;br /&gt;&lt;br /&gt;La fonction de découpage du fichier topographique raster du Canada utilisée est &lt;span style="font-weight: bold;"&gt;Mapcalc&lt;/span&gt;. Dans le terminal de GRASS, taper: &lt;span style="font-weight: bold;"&gt;r.mapcalc&lt;/span&gt;&lt;span style="font-weight: bold;"&gt;.&lt;/span&gt; Après r.mapcalc, taper: &lt;span style="font-weight: bold;"&gt;topo30_qc=clip*topo30&lt;/span&gt; (&lt;span style="font-weight: bold;"&gt;entrée&lt;/span&gt;), puis &lt;span style="font-weight: bold;"&gt;end&lt;/span&gt; (&lt;span style="font-weight: bold;"&gt;entrée&lt;/span&gt;), ce qui aura pour effet de créer un fichier raster du nom de Topo_qc qui aura comme valeur celles de Topo30 à l'intérieur du Québec car le fichier &lt;span style="font-weight: bold;"&gt;clip &lt;/span&gt;a une valeur de 1. Tout ce qui est à l'extérieur du Québec ne sera pas retenu (valeur de 0 dans clip).&lt;br /&gt;&lt;br /&gt;&lt;span style="text-decoration: underline;"&gt;&lt;a href="http://fr.tinypic.com/?ref=2wej8s8" target="_blank"&gt;&lt;img src="http://i27.tinypic.com/2wej8s8.jpg" alt="Image and video hosting by TinyPic" border="0" /&gt;&lt;/a&gt;&lt;/span&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;3°&lt;span style="font-weight: bold; text-decoration: underline;"&gt;Découpage des fichiers vectoriels:&lt;/span&gt; dans GRASS, sélectionnez le menu &lt;span style="font-weight: bold;"&gt;Vector&lt;/span&gt;, &lt;span style="font-weight: bold;"&gt;Query with another map&lt;/span&gt;. Remplisser les champs comme suit:&lt;br /&gt;&lt;br /&gt;&lt;span style="text-decoration: underline;"&gt;&lt;a href="http://fr.tinypic.com/?ref=20zqyk9" target="_blank"&gt;&lt;img src="http://i29.tinypic.com/20zqyk9.jpg" alt="Image and video hosting by TinyPic" border="0" /&gt;&lt;/a&gt;&lt;/span&gt;&lt;br /&gt;&lt;br /&gt;À noter que le choix des fichiers se fait en cliquant sur les icones colorés. Il est aussi important d'indiquer &lt;span style="font-weight: bold;"&gt;overlap &lt;/span&gt;dans le menu déroulant. Procéder de la même façon pour l'ensemble des fichiers vectoriels GRASS. À noter que l'opération sur le fichier des lacs peut prendre du temps suivant la puissance de votre PC.&lt;br /&gt;&lt;br /&gt;4° &lt;span style="font-weight: bold; text-decoration: underline;"&gt;C&lt;/span&gt;&lt;span style="font-weight: bold; text-decoration: underline;"&gt;artographie finale avec QGIS&lt;/span&gt;: fermez GRASS et ouvrez QGIS. Chargez tous les fichiers que vous avez préparés:&lt;br /&gt;&lt;br /&gt;e.g.&lt;br /&gt;&lt;br /&gt;limites&lt;br /&gt;routes_final&lt;br /&gt;lacs_final&lt;br /&gt;riv_final&lt;br /&gt;topo300_qc&lt;br /&gt;&lt;br /&gt;Pour les éditer, double cliquez sur chacun dans la table des matières et sélectionnez les choix de couleur et autres paramètres pour l'habillage.&lt;br /&gt;&lt;br /&gt;&lt;a href="http://fr.tinypic.com/?ref=sc4yvs" target="_blank"&gt;&lt;img src="http://i27.tinypic.com/sc4yvs.jpg" alt="Image and video hosting by TinyPic" border="0" /&gt;&lt;/a&gt;&lt;br /&gt;&lt;br /&gt;Voilà, je m'arrête ici. L'habillage cartographique avec les logiciels libres fera l'objet d'un autre billet. Il est possible de produire des cartes décentes et complètes avec QGIS, mais je vais poursuivre mes recherches pour tenter de trouver une alternative plus intéressante.&lt;br /&gt;&lt;br /&gt;Vous pouvez refaire tout le processus décrit avec un autre territoire, autres projections, autres paramètres, etc. C'est un excellent exercice pour apprendre à utiliser GRASS et QGIS sur Linux.&lt;br /&gt;&lt;br /&gt;&lt;span style="font-weight: bold;"&gt;Pour sortir de andLinux&lt;/span&gt;, ouvrez un terminal et tapez &lt;span style="font-weight: bold;"&gt;sudo halt&lt;/span&gt;. Entrez votre mot de passe et andLinux fermera.&lt;br /&gt;&lt;/div&gt;&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/2412281780517590446-4030842191995166832?l=geomatiquelibre.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://geomatiquelibre.blogspot.com/feeds/4030842191995166832/comments/default' title='Publier les commentaires'/><link rel='replies' type='text/html' href='http://geomatiquelibre.blogspot.com/2010/06/la-geomatique-libre-grass-et-qgis.html#comment-form' title='1 commentaires'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/2412281780517590446/posts/default/4030842191995166832'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/2412281780517590446/posts/default/4030842191995166832'/><link rel='alternate' type='text/html' href='http://geomatiquelibre.blogspot.com/2010/06/la-geomatique-libre-grass-et-qgis.html' title='La géomatique libre: GRASS et QGIS'/><author><name>Géomatique libre</name><uri>http://www.blogger.com/profile/08337555020513574796</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='http://img2.blogblog.com/img/b16-rounded.gif'/></author><media:thumbnail xmlns:media='http://search.yahoo.com/mrss/' url='http://i28.tinypic.com/9t27w2_th.jpg' height='72' width='72'/><thr:total>1</thr:total></entry></feed>
