<?xml version="1.0" encoding="utf-8"?>
<!-- generator="FeedCreator 1.7.2-ppt DokuWiki" -->
<?xml-stylesheet href="http://sig.cenlr.org/lib/exe/css.php?s=feed" type="text/css"?>
<rss version="2.0">
    <channel>
        <title>Présentation du&lt;br/&gt;&lt;br/&gt;Système d'Information outils:gdal</title>
        <description></description>
        <link>http://sig.cenlr.org/</link>
        <lastBuildDate>Sat, 02 May 2026 22:20:04 +0200</lastBuildDate>
        <generator>FeedCreator 1.7.2-ppt DokuWiki</generator>
        <image>
            <url>http://sig.cenlr.org/lib/images/favicon.ico</url>
            <title>Présentation du&lt;br/&gt;&lt;br/&gt;Système d'Information</title>
            <link>http://sig.cenlr.org/</link>
        </image>
        <item>
            <title>outils:gdal:cas_d_utilisation</title>
            <link>http://sig.cenlr.org/outils/gdal/cas_d_utilisation</link>
            <description>
&lt;h1 class=&quot;sectionedit1&quot;&gt;&lt;a name=&quot;compression_des_tif_de_la_bd_parcellaire_noir_et_blanc&quot; id=&quot;compression_des_tif_de_la_bd_parcellaire_noir_et_blanc&quot;&gt;Compression des tif de la BD Parcellaire (noir et blanc)&lt;/a&gt;&lt;/h1&gt;
&lt;div class=&quot;level1&quot;&gt;

&lt;p&gt;
&lt;em&gt;D&amp;#039;après &lt;a href=&quot;http://georezo.net/forum/viewtopic.php?id=70210&quot; class=&quot;urlextern&quot; target=&quot;_blank&quot; title=&quot;http://georezo.net/forum/viewtopic.php?id=70210&quot;  rel=&quot;nofollow&quot;&gt;cette discussion&lt;/a&gt; exhumée par David Michallet du &lt;a href=&quot;http://avenir.38.free.fr/&quot; class=&quot;urlextern&quot; target=&quot;_blank&quot; title=&quot;http://avenir.38.free.fr/&quot;  rel=&quot;nofollow&quot;&gt;Conservatoire des espaces naturels de l&amp;#039;Isère&lt;/a&gt;&lt;/em&gt;

&lt;/p&gt;

&lt;/div&gt;
&lt;!-- EDIT1 SECTION &quot;Compression des tif de la BD Parcellaire (noir et blanc)&quot; [1-262] --&gt;
&lt;h2 class=&quot;sectionedit2&quot;&gt;&lt;a name=&quot;en_dos_windows&quot; id=&quot;en_dos_windows&quot;&gt;En DOS (windows)&lt;/a&gt;&lt;/h2&gt;
&lt;div class=&quot;level2&quot;&gt;
&lt;pre class=&quot;code dos&quot;&gt;&lt;a target=&quot;_blank&quot; href=&quot;http://www.ss64.com/nt/for.html&quot;&gt;&lt;span class=&quot;kw1&quot;&gt;FOR&lt;/span&gt;&lt;/a&gt; &lt;span class=&quot;sy0&quot;&gt;%&lt;/span&gt;&lt;span class=&quot;re2&quot;&gt;Q&lt;/span&gt; &lt;a target=&quot;_blank&quot; href=&quot;http://www.ss64.com/nt/in.html&quot;&gt;&lt;span class=&quot;kw1&quot;&gt;IN&lt;/span&gt;&lt;/a&gt; &lt;span class=&quot;br0&quot;&gt;&amp;#40;&lt;/span&gt;*.tif&lt;span class=&quot;br0&quot;&gt;&amp;#41;&lt;/span&gt; &lt;a target=&quot;_blank&quot; href=&quot;http://www.ss64.com/nt/do.html&quot;&gt;&lt;span class=&quot;kw1&quot;&gt;DO&lt;/span&gt;&lt;/a&gt; gdal_translate -co TFW=YES -co COMPRESS=CCITTFAX4 -co TILED=YES -co NBITS=&lt;span class=&quot;nu0&quot;&gt;1&lt;/span&gt; -a_nodata &lt;span class=&quot;nu0&quot;&gt;0&lt;/span&gt; &amp;quot;&lt;span class=&quot;sy0&quot;&gt;%&lt;/span&gt;&lt;span class=&quot;re2&quot;&gt;Q&lt;/span&gt;&amp;quot; &amp;quot;&lt;span class=&quot;sy0&quot;&gt;%&lt;/span&gt;~dpnQ_NEW.tif&amp;quot;&lt;/pre&gt;

&lt;/div&gt;
&lt;!-- EDIT2 SECTION &quot;En DOS (windows)&quot; [263-441] --&gt;
&lt;h2 class=&quot;sectionedit3&quot;&gt;&lt;a name=&quot;script_bash_linux&quot; id=&quot;script_bash_linux&quot;&gt;Script Bash (Linux)&lt;/a&gt;&lt;/h2&gt;
&lt;div class=&quot;level2&quot;&gt;
&lt;pre class=&quot;code bash&quot;&gt;&lt;span class=&quot;co0&quot;&gt;#!/bin/bash&lt;/span&gt;
&lt;span class=&quot;kw1&quot;&gt;for&lt;/span&gt; tif &lt;span class=&quot;kw1&quot;&gt;in&lt;/span&gt; &lt;span class=&quot;sy0&quot;&gt;`&lt;/span&gt;&lt;span class=&quot;kw2&quot;&gt;ls&lt;/span&gt; &lt;span class=&quot;re5&quot;&gt;-R&lt;/span&gt; &lt;span class=&quot;sy0&quot;&gt;*&lt;/span&gt;.tif&lt;span class=&quot;sy0&quot;&gt;`&lt;/span&gt;; &lt;span class=&quot;kw1&quot;&gt;do&lt;/span&gt;
	&lt;span class=&quot;kw3&quot;&gt;eval&lt;/span&gt; gdal_translate &lt;span class=&quot;re5&quot;&gt;-co&lt;/span&gt; &lt;span class=&quot;re2&quot;&gt;TFW&lt;/span&gt;=YES &lt;span class=&quot;re5&quot;&gt;-co&lt;/span&gt; &lt;span class=&quot;re2&quot;&gt;COMPRESS&lt;/span&gt;=CCITTFAX4 &lt;span class=&quot;re5&quot;&gt;-co&lt;/span&gt; &lt;span class=&quot;re2&quot;&gt;TILED&lt;/span&gt;=YES &lt;span class=&quot;re5&quot;&gt;-co&lt;/span&gt; &lt;span class=&quot;re2&quot;&gt;NBITS&lt;/span&gt;=&lt;span class=&quot;nu0&quot;&gt;1&lt;/span&gt; -a_nodata &lt;span class=&quot;nu0&quot;&gt;0&lt;/span&gt; &lt;span class=&quot;re1&quot;&gt;$tif&lt;/span&gt; $&lt;span class=&quot;br0&quot;&gt;&amp;#40;&lt;/span&gt;&lt;span class=&quot;kw3&quot;&gt;echo&lt;/span&gt; $&lt;span class=&quot;br0&quot;&gt;&amp;#40;&lt;/span&gt;&lt;span class=&quot;kw2&quot;&gt;basename&lt;/span&gt; &lt;span class=&quot;re1&quot;&gt;$tif&lt;/span&gt;&lt;span class=&quot;br0&quot;&gt;&amp;#41;&lt;/span&gt; &lt;span class=&quot;sy0&quot;&gt;|&lt;/span&gt; &lt;span class=&quot;kw2&quot;&gt;cut&lt;/span&gt; &lt;span class=&quot;re5&quot;&gt;-d&lt;/span&gt;&lt;span class=&quot;st0&quot;&gt;&amp;quot;.&amp;quot;&lt;/span&gt; &lt;span class=&quot;re5&quot;&gt;-f1&lt;/span&gt; &lt;span class=&quot;sy0&quot;&gt;|&lt;/span&gt; &lt;span class=&quot;kw2&quot;&gt;tr&lt;/span&gt; &lt;span class=&quot;st_h&quot;&gt;'[A-Z]'&lt;/span&gt; &lt;span class=&quot;st_h&quot;&gt;'[a-z]'&lt;/span&gt;&lt;span class=&quot;br0&quot;&gt;&amp;#41;&lt;/span&gt;_compresse.tif
&lt;span class=&quot;kw1&quot;&gt;done&lt;/span&gt;&lt;/pre&gt;

&lt;/div&gt;
&lt;!-- EDIT3 SECTION &quot;Script Bash (Linux)&quot; [442-714] --&gt;
&lt;h1 class=&quot;sectionedit4&quot;&gt;&lt;a name=&quot;creation_d_un_fond_en_relief_pour_la_region_languedoc-roussillon&quot; id=&quot;creation_d_un_fond_en_relief_pour_la_region_languedoc-roussillon&quot;&gt;Création d&amp;#039;un fond en relief pour la région Languedoc-Roussillon&lt;/a&gt;&lt;/h1&gt;
&lt;div class=&quot;level1&quot;&gt;

&lt;p&gt;
&lt;em&gt;inspiré de &lt;a href=&quot;http://linfiniti.com/2010/12/a-workflow-for-creating-beautiful-relief-shaded-dems-using-gdal/&quot; class=&quot;urlextern&quot; target=&quot;_blank&quot; title=&quot;http://linfiniti.com/2010/12/a-workflow-for-creating-beautiful-relief-shaded-dems-using-gdal/&quot;  rel=&quot;nofollow&quot;&gt;l&amp;#039;article de Tim Sutton&lt;/a&gt;&lt;/em&gt;
&lt;/p&gt;

&lt;p&gt;
&lt;a href=&quot;http://sig.cenlr.org/_detail/outils/gdal/mnt_lr_final.png?id=outils%3Agdal%3Acas_d_utilisation&quot; class=&quot;media&quot; title=&quot;outils:gdal:mnt_lr_final.png&quot;&gt;&lt;img src=&quot;http://sig.cenlr.org/_media/outils/gdal/mnt_lr_final.png?w=300&quot; class=&quot;media&quot; title=&quot;Le résultat obtenu&quot; alt=&quot;Le résultat obtenu&quot; width=&quot;300&quot; /&gt;&lt;/a&gt;

&lt;/p&gt;

&lt;/div&gt;
&lt;!-- EDIT4 SECTION &quot;Création d'un fond en relief pour la région Languedoc-Roussillon&quot; [715-992] --&gt;
&lt;h2 class=&quot;sectionedit5&quot;&gt;&lt;a name=&quot;donnees_disponibles&quot; id=&quot;donnees_disponibles&quot;&gt;données disponibles&lt;/a&gt;&lt;/h2&gt;
&lt;div class=&quot;level2&quot;&gt;

&lt;p&gt;
les MNT de la BD TOPO en Lambert 93

&lt;/p&gt;

&lt;/div&gt;
&lt;!-- EDIT5 SECTION &quot;données disponibles&quot; [993-1061] --&gt;
&lt;h3 class=&quot;sectionedit6&quot;&gt;&lt;a name=&quot;fusionner_les_5_departements&quot; id=&quot;fusionner_les_5_departements&quot;&gt;1 - Fusionner les 5 départements&lt;/a&gt;&lt;/h3&gt;
&lt;div class=&quot;level3&quot;&gt;
&lt;pre class=&quot;code bash&quot;&gt;gdal_merge.py &lt;span class=&quot;re5&quot;&gt;-o&lt;/span&gt; mnt_lr.tif &lt;span class=&quot;re5&quot;&gt;-of&lt;/span&gt; GTiff DEPT48.asc DEPT30.asc DEPT34.asc DEPT11.asc DEPT66.asc &lt;/pre&gt;

&lt;/div&gt;
&lt;!-- EDIT6 SECTION &quot;1 - Fusionner les 5 départements&quot; [1062-1219] --&gt;
&lt;h3 class=&quot;sectionedit7&quot;&gt;&lt;a name=&quot;creation_d_une_image_en_couleur_du_mnt&quot; id=&quot;creation_d_une_image_en_couleur_du_mnt&quot;&gt;2 - Création d&amp;#039;une image en couleur du MNT&lt;/a&gt;&lt;/h3&gt;
&lt;div class=&quot;level3&quot;&gt;

&lt;p&gt;
On utilisera ici le fichier de couleur “srtm” de grass dont voici le contenu :

&lt;/p&gt;
&lt;pre class=&quot;code&quot;&gt;-500 0 0 10
-300 0 0 20
-200 0 0 70
-100 0 0 130
-50 0 0 205
0 aqua
0.1   57 151 105
100  117 194 93
200  230 230 128
500  202 158 75
1000 214 187 98
2000 185 154 100
3000 220 220 220
5000 250 250 250
8850 255 255 255
nv white&lt;/pre&gt;
&lt;pre class=&quot;code bash&quot;&gt;gdaldem color-relief &lt;span class=&quot;re5&quot;&gt;-of&lt;/span&gt; GTiff mnt_lr.tif &lt;span class=&quot;sy0&quot;&gt;/&lt;/span&gt;usr&lt;span class=&quot;sy0&quot;&gt;/&lt;/span&gt;lib&lt;span class=&quot;sy0&quot;&gt;/&lt;/span&gt;grass-6.3.0&lt;span class=&quot;sy0&quot;&gt;/&lt;/span&gt;etc&lt;span class=&quot;sy0&quot;&gt;/&lt;/span&gt;colors&lt;span class=&quot;sy0&quot;&gt;/&lt;/span&gt;srtm mnt_lr_couleur.tif&lt;/pre&gt;

&lt;/div&gt;
&lt;!-- EDIT7 SECTION &quot;2 - Création d'une image en couleur du MNT&quot; [1220-1710] --&gt;
&lt;h3 class=&quot;sectionedit8&quot;&gt;&lt;a name=&quot;creation_d_un_relief_ombre&quot; id=&quot;creation_d_un_relief_ombre&quot;&gt;3 - Création d&amp;#039;un relief ombré&lt;/a&gt;&lt;/h3&gt;
&lt;div class=&quot;level3&quot;&gt;
&lt;pre class=&quot;code bash&quot;&gt;gdaldem hillshade &lt;span class=&quot;re5&quot;&gt;-z&lt;/span&gt; &lt;span class=&quot;nu0&quot;&gt;5&lt;/span&gt; &lt;span class=&quot;re5&quot;&gt;-of&lt;/span&gt; GTiff mnt_lr.tif mnt_lr_ombre.tif&lt;/pre&gt;

&lt;/div&gt;
&lt;!-- EDIT8 SECTION &quot;3 - Création d'un relief ombré&quot; [1711-1831] --&gt;
&lt;h3 class=&quot;sectionedit9&quot;&gt;&lt;a name=&quot;recuperation_du_script_hsv_mergepy&quot; id=&quot;recuperation_du_script_hsv_mergepy&quot;&gt;4 - Récupération du script hsv_merge.py&lt;/a&gt;&lt;/h3&gt;
&lt;div class=&quot;level3&quot;&gt;
&lt;pre class=&quot;code bash&quot;&gt;&lt;span class=&quot;kw2&quot;&gt;wget&lt;/span&gt; http:&lt;span class=&quot;sy0&quot;&gt;//&lt;/span&gt;svn.osgeo.org&lt;span class=&quot;sy0&quot;&gt;/&lt;/span&gt;gdal&lt;span class=&quot;sy0&quot;&gt;/&lt;/span&gt;trunk&lt;span class=&quot;sy0&quot;&gt;/&lt;/span&gt;gdal&lt;span class=&quot;sy0&quot;&gt;/&lt;/span&gt;swig&lt;span class=&quot;sy0&quot;&gt;/&lt;/span&gt;python&lt;span class=&quot;sy0&quot;&gt;/&lt;/span&gt;samples&lt;span class=&quot;sy0&quot;&gt;/&lt;/span&gt;hsv_merge.py&lt;/pre&gt;

&lt;/div&gt;
&lt;!-- EDIT9 SECTION &quot;4 - Récupération du script hsv_merge.py&quot; [1832-1977] --&gt;
&lt;h3 class=&quot;sectionedit10&quot;&gt;&lt;a name=&quot;permettre_l_execution_du_script&quot; id=&quot;permettre_l_execution_du_script&quot;&gt;5 - Permettre l’exécution du script&lt;/a&gt;&lt;/h3&gt;
&lt;div class=&quot;level3&quot;&gt;
&lt;pre class=&quot;code bash&quot;&gt;&lt;span class=&quot;kw2&quot;&gt;chmod&lt;/span&gt; &lt;span class=&quot;nu0&quot;&gt;775&lt;/span&gt; hsv_merge.py&lt;/pre&gt;

&lt;/div&gt;
&lt;!-- EDIT10 SECTION &quot;5 - Permettre l’exécution du script&quot; [1978-2067] --&gt;
&lt;h3 class=&quot;sectionedit11&quot;&gt;&lt;a name=&quot;fusion_des_deux_images_ombre_et_couleur&quot; id=&quot;fusion_des_deux_images_ombre_et_couleur&quot;&gt;6 - Fusion des deux images (ombre et couleur)&lt;/a&gt;&lt;/h3&gt;
&lt;div class=&quot;level3&quot;&gt;
&lt;pre class=&quot;code bash&quot;&gt;.&lt;span class=&quot;sy0&quot;&gt;/&lt;/span&gt;hsv_merge.py mnt_lr_couleur.tif mnt_lr_ombre.tif mntlr_couleur_ombre.tif&lt;/pre&gt;

&lt;/div&gt;
&lt;!-- EDIT11 SECTION &quot;6 - Fusion des deux images (ombre et couleur)&quot; [2068-2216] --&gt;
&lt;h3 class=&quot;sectionedit12&quot;&gt;&lt;a name=&quot;decoupage_selon_limites_regionales&quot; id=&quot;decoupage_selon_limites_regionales&quot;&gt;7 - découpage selon limites régionales&lt;/a&gt;&lt;/h3&gt;
&lt;div class=&quot;level3&quot;&gt;

&lt;/div&gt;

&lt;h4&gt;&lt;a name=&quot;creation_si_necessaire_du_contour_regional&quot; id=&quot;creation_si_necessaire_du_contour_regional&quot;&gt;création si nécessaire du contour régional&lt;/a&gt;&lt;/h4&gt;
&lt;div class=&quot;level4&quot;&gt;
&lt;pre class=&quot;code bash&quot;&gt;pgsql2shp &lt;span class=&quot;re5&quot;&gt;-f&lt;/span&gt; region_lr.shp &lt;span class=&quot;re5&quot;&gt;-h&lt;/span&gt; 192.168.1.230 &lt;span class=&quot;re5&quot;&gt;-u&lt;/span&gt; mathieu sicen &lt;span class=&quot;st0&quot;&gt;&amp;quot;SELECT 'lr' as nom, st_union(buffer(geometrie,1000)) from commune&amp;quot;&lt;/span&gt;&lt;/pre&gt;

&lt;/div&gt;

&lt;h4&gt;&lt;a name=&quot;decoupage_a_proprement_parler&quot; id=&quot;decoupage_a_proprement_parler&quot;&gt;découpage à proprement parler&lt;/a&gt;&lt;/h4&gt;
&lt;div class=&quot;level4&quot;&gt;
&lt;pre class=&quot;code bash&quot;&gt;gdalwarp -s_srs EPSG:&lt;span class=&quot;nu0&quot;&gt;2154&lt;/span&gt; &lt;span class=&quot;re5&quot;&gt;-co&lt;/span&gt; &lt;span class=&quot;re2&quot;&gt;compress&lt;/span&gt;=deflate &lt;span class=&quot;re5&quot;&gt;-dstnodata&lt;/span&gt; &lt;span class=&quot;nu0&quot;&gt;255&lt;/span&gt; &lt;span class=&quot;re5&quot;&gt;-cutline&lt;/span&gt; .&lt;span class=&quot;sy0&quot;&gt;/&lt;/span&gt;region_lr.shp mntlr_couleur_ombre.tif mnt_lr_final.tif&lt;/pre&gt;

&lt;/div&gt;
&lt;!-- EDIT12 SECTION &quot;7 - découpage selon limites régionales&quot; [2217-2654] --&gt;
&lt;h3 class=&quot;sectionedit13&quot;&gt;&lt;a name=&quot;transformation_en_jpeg&quot; id=&quot;transformation_en_jpeg&quot;&gt;8 - Transformation en jpeg&lt;/a&gt;&lt;/h3&gt;
&lt;div class=&quot;level3&quot;&gt;
&lt;pre class=&quot;code bash&quot;&gt;gdal_translate &lt;span class=&quot;re5&quot;&gt;-of&lt;/span&gt; jpeg mnt_lr_final.tif mnt_lr_final.jpeg&lt;/pre&gt;

&lt;/div&gt;
&lt;!-- EDIT13 SECTION &quot;8 - Transformation en jpeg&quot; [2655-2768] --&gt;
&lt;h2 class=&quot;sectionedit14&quot;&gt;&lt;a name=&quot;le_script_complet&quot; id=&quot;le_script_complet&quot;&gt;Le script complet&lt;/a&gt;&lt;/h2&gt;
&lt;div class=&quot;level2&quot;&gt;
&lt;dl class=&quot;file&quot;&gt;
&lt;dt&gt;&lt;a href=&quot;http://sig.cenlr.org/_export/code/outils/gdal/cas_d_utilisation?codeblock=12&quot; title=&quot;Télécharger un extrait&quot; class=&quot;mediafile mf_sh&quot;&gt;creation_mnt_couleur_ombre.sh&lt;/a&gt;&lt;/dt&gt;
&lt;dd&gt;&lt;pre class=&quot;code file sh&quot;&gt;gdal_merge.py -o mnt_lr.tif -of GTiff DEPT48.asc DEPT30.asc DEPT34.asc DEPT11.asc DEPT66.asc 
gdaldem color-relief -of GTiff mnt_lr.tif ./srtm mnt_lr_couleur.tif
gdaldem hillshade -z 5 -of GTiff mnt_lr.tif mnt_lr_ombre.tif
./hsv_merge.py mnt_lr_couleur.tif mnt_lr_ombre.tif mntlr_couleur_ombre.tif
gdalwarp -s_srs EPSG:2154 -co compress=deflate -dstnodata 255 -cutline ./region_lr.shp mntlr_couleur_ombre.tif mnt_lr_final.tif
gdal_translate -of jpeg mnt_lr_final.tif mnt_lr_final.jpeg
rm -f mnt_lr_couleur.tif
rm -f mnt_lr_ombre.tif
rm -f mntlr_couleur_ombre.tif
rm -f mnt_lr_final.tif&lt;/pre&gt;
&lt;/dd&gt;&lt;/dl&gt;

&lt;/div&gt;
&lt;!-- EDIT14 SECTION &quot;Le script complet&quot; [2769-] --&gt;</description>
        <category>outils:gdal</category>
            <pubDate>Tue, 19 Jul 2011 13:39:02 +0200</pubDate>
        </item>
        <item>
            <title>outils:gdal:ressources</title>
            <link>http://sig.cenlr.org/outils/gdal/ressources</link>
            <description>
&lt;h1 class=&quot;sectionedit15&quot;&gt;&lt;a name=&quot;ressources&quot; id=&quot;ressources&quot;&gt;Ressources&lt;/a&gt;&lt;/h1&gt;
&lt;div class=&quot;level1&quot;&gt;

&lt;p&gt;
&lt;a href=&quot;http://linfiniti.com/2010/12/a-workflow-for-creating-beautiful-relief-shaded-dems-using-gdal/&quot; class=&quot;urlextern&quot; target=&quot;_blank&quot; title=&quot;http://linfiniti.com/2010/12/a-workflow-for-creating-beautiful-relief-shaded-dems-using-gdal/&quot;  rel=&quot;nofollow&quot;&gt;http://linfiniti.com/2010/12/a-workflow-for-creating-beautiful-relief-shaded-dems-using-gdal/&lt;/a&gt;

&lt;/p&gt;

&lt;/div&gt;
</description>
        <category>outils:gdal</category>
            <pubDate>Tue, 22 Feb 2011 14:34:40 +0200</pubDate>
        </item>
    </channel>
</rss>
