<?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 creation_bdd</title>
        <description></description>
        <link>http://sig.cenlr.org/</link>
        <lastBuildDate>Thu, 30 Apr 2026 18:56:16 +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>creation_bdd:creation_base</title>
            <link>http://sig.cenlr.org/creation_bdd/creation_base</link>
            <description>
&lt;h2 class=&quot;sectionedit1&quot;&gt;&lt;a name=&quot;mise_en_œuvre_de_la_base_de_donnees&quot; id=&quot;mise_en_œuvre_de_la_base_de_donnees&quot;&gt;Mise en œuvre de la base de données&lt;/a&gt;&lt;/h2&gt;
&lt;div class=&quot;level2&quot;&gt;

&lt;p&gt;
les mots en italiques sont à adapter selon vos choix.
&lt;/p&gt;

&lt;p&gt;
La configuration utilisée pour ce tutoriel est la suivante : 
hôte : localhost, utilisateur : dba, base modèle : template1, base de données à créer : sicen, encodage : UTF8, projection : lambert II étendu (code EPSG 27572) 
&lt;/p&gt;

&lt;/div&gt;
&lt;!-- EDIT1 SECTION &quot;Mise en œuvre de la base de données&quot; [1-338] --&gt;
&lt;h3 class=&quot;sectionedit2&quot;&gt;&lt;a name=&quot;creer_une_base_de_donnees_spatiales_vide&quot; id=&quot;creer_une_base_de_donnees_spatiales_vide&quot;&gt;Créer une base de données spatiales &amp;quot;vide&amp;quot;&lt;/a&gt;&lt;/h3&gt;
&lt;div class=&quot;level3&quot;&gt;

&lt;/div&gt;

&lt;h4&gt;&lt;a name=&quot;solution_1_vous_n_avez_pas_de_modele_de_base_de_donnees_spatiale&quot; id=&quot;solution_1_vous_n_avez_pas_de_modele_de_base_de_donnees_spatiale&quot;&gt;Solution 1 : vous n&amp;#039;avez pas de modèle de base de données spatiale&lt;/a&gt;&lt;/h4&gt;
&lt;div class=&quot;level4&quot;&gt;
&lt;ul&gt;
&lt;li class=&quot;level1&quot;&gt;&lt;div class=&quot;li&quot;&gt; Se connecter à la base de maintenance avec psql &lt;/div&gt;
&lt;/li&gt;
&lt;/ul&gt;

&lt;p&gt;
(toutes les étapes mentionnées ci-dessous peuvent être réalisées “graphiquement” avec pgadmin)

&lt;/p&gt;
&lt;pre class=&quot;code&quot;&gt;psql -h //localhost// -U //dba// template1&lt;/pre&gt;
&lt;ul&gt;
&lt;li class=&quot;level1&quot;&gt;&lt;div class=&quot;li&quot;&gt; dans psql taper :&lt;/div&gt;
&lt;/li&gt;
&lt;/ul&gt;
&lt;pre class=&quot;code&quot;&gt;template1=# CREATE DATABASE //sicen// TEMPLATE=template1;&lt;/pre&gt;
&lt;ul&gt;
&lt;li class=&quot;level1&quot;&gt;&lt;div class=&quot;li&quot;&gt; Connexion à la base de données nouvellement créée&lt;/div&gt;
&lt;/li&gt;
&lt;/ul&gt;
&lt;pre class=&quot;code&quot;&gt;template1=# \c sicen;&lt;/pre&gt;

&lt;p&gt;
L&amp;#039;invite de commande devient : sicen=#

&lt;/p&gt;
&lt;ul&gt;
&lt;li class=&quot;level1&quot;&gt;&lt;div class=&quot;li&quot;&gt; le script de création de la base est encodé en LATIN1, il faut le préciser (&lt;a href=&quot;http://www.bortzmeyer.org/postgresql-unicode.html&quot; class=&quot;urlextern&quot; target=&quot;_blank&quot; title=&quot;http://www.bortzmeyer.org/postgresql-unicode.html&quot;  rel=&quot;nofollow&quot;&gt;voir&lt;/a&gt;)==&lt;/div&gt;
&lt;/li&gt;
&lt;/ul&gt;
&lt;pre class=&quot;code&quot;&gt;template1=# set client_encoding=latin1;&lt;/pre&gt;

&lt;p&gt;

Remarque : les noms des objets de la bdd ne possèdent pas de caractère accentués, ce sont les commentaires qui posent un problème d&amp;#039;encodage. &lt;em&gt;&lt;strong&gt;Une version UTF8 du script est disponible &lt;a href=&quot;http://sig.cenlr.org/documents/scripts/sicen_v2008_10_28_UTF8.sql&quot; class=&quot;urlextern&quot; target=&quot;_blank&quot; title=&quot;http://sig.cenlr.org/documents/scripts/sicen_v2008_10_28_UTF8.sql&quot;  rel=&quot;nofollow&quot;&gt;ici&lt;/a&gt;&lt;/strong&gt;&lt;/em&gt;.

&lt;/p&gt;
&lt;ul&gt;
&lt;li class=&quot;level1&quot;&gt;&lt;div class=&quot;li&quot;&gt; Ajouter le language plpgsql à la base de données :&lt;/div&gt;
&lt;/li&gt;
&lt;/ul&gt;
&lt;pre class=&quot;code&quot;&gt;sicen=# create language plpgsql;&lt;/pre&gt;
&lt;ul&gt;
&lt;li class=&quot;level1&quot;&gt;&lt;div class=&quot;li&quot;&gt; Charger les fonctionnalités de ”“PostGis”” Dans la base de données :&lt;/div&gt;
&lt;/li&gt;
&lt;/ul&gt;
&lt;pre class=&quot;code&quot;&gt;sicen=# \i ///usr/share/postgresql-8.3-postgis///lwpostgis.sql;
sicen=# \i ///usr/share/postgresql-8.3-postgis///spatial_ref_sys.sql;&lt;/pre&gt;

&lt;/div&gt;

&lt;h4&gt;&lt;a name=&quot;solution_2_vous_avez_modele_de_base_de_donnees_spatiale_ex_template_postgis&quot; id=&quot;solution_2_vous_avez_modele_de_base_de_donnees_spatiale_ex_template_postgis&quot;&gt;Solution 2 : vous avez modèle de base de données spatiale (ex. template_postgis)&lt;/a&gt;&lt;/h4&gt;
&lt;div class=&quot;level4&quot;&gt;
&lt;ul&gt;
&lt;li class=&quot;level1&quot;&gt;&lt;div class=&quot;li&quot;&gt; Se connecter à la base de maintenance avec psql&lt;/div&gt;
&lt;/li&gt;
&lt;/ul&gt;

&lt;p&gt;
(toutes les étapes mentionnées ci-dessous peuvent être réalisées “graphiquement” avec pgadmin)

&lt;/p&gt;
&lt;pre class=&quot;code&quot;&gt;psql -h localhost -U dba template1&lt;/pre&gt;
&lt;ul&gt;
&lt;li class=&quot;level1&quot;&gt;&lt;div class=&quot;li&quot;&gt; dans psql taper :&lt;/div&gt;
&lt;/li&gt;
&lt;/ul&gt;
&lt;pre class=&quot;code&quot;&gt;template1=# CREATE DATABASE //sicen// TEMPLATE=template_postgis;&lt;/pre&gt;

&lt;/div&gt;
&lt;!-- EDIT2 SECTION &quot;Créer une base de données spatiales vide&quot; [339-2102] --&gt;
&lt;h3 class=&quot;sectionedit3&quot;&gt;&lt;a name=&quot;creer_les_tables_et_les_fonctions_de_la_base_de_donnees&quot; id=&quot;creer_les_tables_et_les_fonctions_de_la_base_de_donnees&quot;&gt;Créer les tables et les fonctions de la base de données&lt;/a&gt;&lt;/h3&gt;
&lt;div class=&quot;level3&quot;&gt;

&lt;p&gt;
si vous souhaitez changer de projection, remplacer dans le fichier toutes les occurrences de “27572” par le code EPSG de votre choix
&lt;/p&gt;
&lt;pre class=&quot;code&quot;&gt;sicen=# \i  /home/mathieu/Desktop/sicen_xxx.sql]];&lt;/pre&gt;

&lt;p&gt;
Le &lt;strong&gt;dictionnaire de données&lt;/strong&gt; correspondant est disponible &lt;a href=&quot;http://sig.cenlr.org/documents/scripts/sicen_v2008_10_28.pdf&quot; class=&quot;urlextern&quot; target=&quot;_blank&quot; title=&quot;http://sig.cenlr.org/documents/scripts/sicen_v2008_10_28.pdf&quot;  rel=&quot;nofollow&quot;&gt;ici&lt;/a&gt;
&lt;/p&gt;

&lt;/div&gt;
&lt;!-- EDIT3 SECTION &quot;Créer les tables et les fonctions de la base de données&quot; [2103-2500] --&gt;
&lt;h3 class=&quot;sectionedit4&quot;&gt;&lt;a name=&quot;notes_de_version&quot; id=&quot;notes_de_version&quot;&gt;Notes de version&lt;/a&gt;&lt;/h3&gt;
&lt;div class=&quot;level3&quot;&gt;

&lt;p&gt;
Tous les scripts, depuis la version 0 sont disponibles &lt;a href=&quot;http://sig.cenlr.org/documents/scripts/&quot; class=&quot;urlextern&quot; target=&quot;_blank&quot; title=&quot;http://sig.cenlr.org/documents/scripts/&quot;  rel=&quot;nofollow&quot;&gt;ici&lt;/a&gt;

&lt;/p&gt;

&lt;/div&gt;

&lt;h4&gt;&lt;a name=&quot;section28102008&quot; id=&quot;section28102008&quot;&gt;28/10/2008&lt;/a&gt;&lt;/h4&gt;
&lt;div class=&quot;level4&quot;&gt;
&lt;ul&gt;
&lt;li class=&quot;level1&quot;&gt;&lt;div class=&quot;li&quot;&gt; correction de l&amp;#039;absence des tables &lt;strong&gt;taxon_animal_est_protege&lt;/strong&gt; et &lt;strong&gt;taxon_vegetal_est_protege&lt;/strong&gt; &lt;/div&gt;
&lt;/li&gt;
&lt;li class=&quot;level1&quot;&gt;&lt;div class=&quot;li&quot;&gt; suppression de la vue &lt;strong&gt;cen_export_ligne_flore_selon_format&lt;/strong&gt; (les vues seront proposées sur le site, comme les fonctions plpgsql&lt;/div&gt;
&lt;/li&gt;
&lt;li class=&quot;level1&quot;&gt;&lt;div class=&quot;li&quot;&gt; suppression des commandes d&amp;#039;attribution de propriétaire&lt;/div&gt;
&lt;/li&gt;
&lt;li class=&quot;level1&quot;&gt;&lt;div class=&quot;li&quot;&gt; le script correspondant est disponible &lt;a href=&quot;http://sig.cenlr.org/documents/scripts/sicen_v2008_10_28.pdf&quot; class=&quot;urlextern&quot; target=&quot;_blank&quot; title=&quot;http://sig.cenlr.org/documents/scripts/sicen_v2008_10_28.pdf&quot;  rel=&quot;nofollow&quot;&gt;ici&lt;/a&gt;&lt;/div&gt;
&lt;/li&gt;
&lt;/ul&gt;

&lt;/div&gt;

&lt;h4&gt;&lt;a name=&quot;section20092009&quot; id=&quot;section20092009&quot;&gt;20/09/2009&lt;/a&gt;&lt;/h4&gt;
&lt;div class=&quot;level4&quot;&gt;
&lt;ul&gt;
&lt;li class=&quot;level1&quot;&gt;&lt;div class=&quot;li&quot;&gt; suppression des attributs “envahissantes” dans les tables “referentiel_taxon_animal” et “referentiel_taxon_vegetal”&lt;/div&gt;
&lt;/li&gt;
&lt;li class=&quot;level1&quot;&gt;&lt;div class=&quot;li&quot;&gt; création deux deux table “taxon_animal_est_envahissant” et “taxon_vegetal_est_envahissant”&lt;/div&gt;
&lt;/li&gt;
&lt;li class=&quot;level1&quot;&gt;&lt;div class=&quot;li&quot;&gt; le script correspondant est disponible &lt;a href=&quot;http://sig.cenlr.org/documents/scripts/sicen_v2009_09_20_UTF8.sql&quot; class=&quot;urlextern&quot; target=&quot;_blank&quot; title=&quot;http://sig.cenlr.org/documents/scripts/sicen_v2009_09_20_UTF8.sql&quot;  rel=&quot;nofollow&quot;&gt;ici&lt;/a&gt;&lt;/div&gt;
&lt;/li&gt;
&lt;/ul&gt;

&lt;/div&gt;
&lt;!-- EDIT4 SECTION &quot;Notes de version&quot; [2501-] --&gt;</description>
        <category>creation_bdd</category>
            <pubDate>Sun, 10 Oct 2010 14:53:37 +0200</pubDate>
        </item>
        <item>
            <title>creation_bdd:dump_restore</title>
            <link>http://sig.cenlr.org/creation_bdd/dump_restore</link>
            <description>
&lt;h1 class=&quot;sectionedit5&quot;&gt;&lt;a name=&quot;sauvegarde_des_donnees_de_la_base_postgis&quot; id=&quot;sauvegarde_des_donnees_de_la_base_postgis&quot;&gt;Sauvegarde des données de la base postgis&lt;/a&gt;&lt;/h1&gt;
&lt;div class=&quot;level1&quot;&gt;

&lt;/div&gt;
&lt;!-- EDIT5 SECTION &quot;Sauvegarde des données de la base postgis&quot; [1-57] --&gt;
&lt;h3 class=&quot;sectionedit6&quot;&gt;&lt;a name=&quot;sauvegarde_avec_pg_dump&quot; id=&quot;sauvegarde_avec_pg_dump&quot;&gt;Sauvegarde avec pg_dump&lt;/a&gt;&lt;/h3&gt;
&lt;div class=&quot;level3&quot;&gt;

&lt;p&gt;
&lt;a href=&quot;http://www.postgresql.org/docs/current/static/app-pgdump.html&quot; class=&quot;urlextern&quot; target=&quot;_blank&quot; title=&quot;http://www.postgresql.org/docs/current/static/app-pgdump.html&quot;  rel=&quot;nofollow&quot;&gt;pg_dump&lt;/a&gt;
&lt;/p&gt;
&lt;ul&gt;
&lt;li class=&quot;level1&quot;&gt;&lt;div class=&quot;li&quot;&gt; pg_dump -Fc nom_base -h localhost -U nom_utilisateur -f nom_fichier.backup&lt;/div&gt;
&lt;/li&gt;
&lt;/ul&gt;

&lt;/div&gt;
&lt;!-- EDIT6 SECTION &quot;Sauvegarde avec pg_dump&quot; [58-244] --&gt;
&lt;h3 class=&quot;sectionedit7&quot;&gt;&lt;a name=&quot;restauration_avec_pg_restore&quot; id=&quot;restauration_avec_pg_restore&quot;&gt;Restauration avec pg_restore&lt;/a&gt;&lt;/h3&gt;
&lt;div class=&quot;level3&quot;&gt;

&lt;p&gt;
&lt;a href=&quot;http://www.postgresql.org/docs/current/static/app-pgrestore.html&quot; class=&quot;urlextern&quot; target=&quot;_blank&quot; title=&quot;http://www.postgresql.org/docs/current/static/app-pgrestore.html&quot;  rel=&quot;nofollow&quot;&gt;pg_restore&lt;/a&gt;
&lt;/p&gt;
&lt;ul&gt;
&lt;li class=&quot;level1&quot;&gt;&lt;div class=&quot;li&quot;&gt; l&amp;#039;option -Fc (format custom) nous est utile afin de lister et trier si nécessaire les objets à restaurer. On peut ainsi ne pas souhaiter restaurer les objets de postgis, pour installer la bdd sur une version récente&lt;/div&gt;
&lt;/li&gt;
&lt;li class=&quot;level1&quot;&gt;&lt;div class=&quot;li&quot;&gt; l&amp;#039;option -l permet de créer la liste des objets à restaure (regiriger la sortie ver le fichier de son choix : &amp;gt; ma_liste.txt) et n&amp;#039;effectue pas de restauration&lt;/div&gt;
&lt;/li&gt;
&lt;li class=&quot;level1&quot;&gt;&lt;div class=&quot;li&quot;&gt; l&amp;#039;option -L ma_liste.txt effectue la restauration des objets correspondants aux lignes non commentées&lt;/div&gt;
&lt;/li&gt;
&lt;li class=&quot;level1&quot;&gt;&lt;div class=&quot;li&quot;&gt; l&amp;#039;option -1 permet d&amp;#039;effectuer la restauration au sein d&amp;#039;une transaction&lt;/div&gt;
&lt;/li&gt;
&lt;li class=&quot;level1&quot;&gt;&lt;div class=&quot;li&quot;&gt; l&amp;#039;option -s ne restaure que le schéma&lt;/div&gt;
&lt;/li&gt;
&lt;li class=&quot;level1&quot;&gt;&lt;div class=&quot;li&quot;&gt; l&amp;#039;option -d ne restaure que les données&lt;/div&gt;
&lt;/li&gt;
&lt;li class=&quot;level1&quot;&gt;&lt;div class=&quot;li&quot;&gt; l&amp;#039;option –disable-triggers permet de désactiver les contraintes avant insertion et de les remettre en œuvre après&lt;/div&gt;
&lt;/li&gt;
&lt;/ul&gt;

&lt;/div&gt;
&lt;!-- EDIT7 SECTION &quot;Restauration avec pg_restore&quot; [245-1148] --&gt;
&lt;h3 class=&quot;sectionedit8&quot;&gt;&lt;a name=&quot;creation_de_la_liste_des_objets_composant_le_dump&quot; id=&quot;creation_de_la_liste_des_objets_composant_le_dump&quot;&gt;Création de la liste des objets composant le dump&lt;/a&gt;&lt;/h3&gt;
&lt;div class=&quot;level3&quot;&gt;

&lt;p&gt;
Pour créer cette liste : utiliser la commande suivante :
&lt;/p&gt;
&lt;ul&gt;
&lt;li class=&quot;level1&quot;&gt;&lt;div class=&quot;li&quot;&gt; pg_restore -l ~/nom_fichier.backup&amp;gt;~/liste_objets.txt&lt;/div&gt;
&lt;/li&gt;
&lt;/ul&gt;

&lt;p&gt;

L&amp;#039;édition de cette liste donne ceci (une sélection des lignes à été faite pour montrer les différents types d&amp;#039;objet listés): 

&lt;/p&gt;
&lt;pre class=&quot;code sql&quot;&gt;&lt;span class=&quot;br0&quot;&gt;&amp;#91;&lt;/span&gt;&lt;span class=&quot;sy0&quot;&gt;...&lt;/span&gt;&lt;span class=&quot;br0&quot;&gt;&amp;#93;&lt;/span&gt;
&lt;span class=&quot;nu0&quot;&gt;6&lt;/span&gt;; &lt;span class=&quot;nu0&quot;&gt;2615&lt;/span&gt; &lt;span class=&quot;nu0&quot;&gt;2200&lt;/span&gt; SCHEMA &lt;span class=&quot;sy0&quot;&gt;-&lt;/span&gt; public dba
&lt;span class=&quot;nu0&quot;&gt;4255&lt;/span&gt;; &lt;span class=&quot;nu0&quot;&gt;0&lt;/span&gt; &lt;span class=&quot;nu0&quot;&gt;0&lt;/span&gt; COMMENT &lt;span class=&quot;sy0&quot;&gt;-&lt;/span&gt; SCHEMA public dba
&lt;span class=&quot;nu0&quot;&gt;4256&lt;/span&gt;; &lt;span class=&quot;nu0&quot;&gt;0&lt;/span&gt; &lt;span class=&quot;nu0&quot;&gt;0&lt;/span&gt; ACL &lt;span class=&quot;sy0&quot;&gt;-&lt;/span&gt; public dba
&lt;span class=&quot;nu0&quot;&gt;1636&lt;/span&gt;; &lt;span class=&quot;nu0&quot;&gt;2612&lt;/span&gt; &lt;span class=&quot;nu0&quot;&gt;138574&lt;/span&gt; &lt;span class=&quot;kw1&quot;&gt;PROCEDURAL&lt;/span&gt; &lt;span class=&quot;kw1&quot;&gt;LANGUAGE&lt;/span&gt; &lt;span class=&quot;sy0&quot;&gt;-&lt;/span&gt; plpgsql dba
&lt;span class=&quot;nu0&quot;&gt;976&lt;/span&gt;; &lt;span class=&quot;nu0&quot;&gt;0&lt;/span&gt; &lt;span class=&quot;nu0&quot;&gt;0&lt;/span&gt; SHELL TYPE public geometry dba
&lt;span class=&quot;nu0&quot;&gt;2848&lt;/span&gt;; &lt;span class=&quot;nu0&quot;&gt;1259&lt;/span&gt; &lt;span class=&quot;nu0&quot;&gt;139344&lt;/span&gt; &lt;span class=&quot;kw1&quot;&gt;TABLE&lt;/span&gt; public point_flore dba
&lt;span class=&quot;nu0&quot;&gt;2849&lt;/span&gt;; &lt;span class=&quot;nu0&quot;&gt;1259&lt;/span&gt; &lt;span class=&quot;nu0&quot;&gt;139353&lt;/span&gt; &lt;span class=&quot;kw1&quot;&gt;VIEW&lt;/span&gt; public affiche_point_flore dba
&lt;span class=&quot;nu0&quot;&gt;4260&lt;/span&gt;; &lt;span class=&quot;nu0&quot;&gt;0&lt;/span&gt; &lt;span class=&quot;nu0&quot;&gt;0&lt;/span&gt; COMMENT public &lt;span class=&quot;kw1&quot;&gt;TABLE&lt;/span&gt; amenagements dba
&lt;span class=&quot;nu0&quot;&gt;3149&lt;/span&gt;; &lt;span class=&quot;nu0&quot;&gt;1259&lt;/span&gt; &lt;span class=&quot;nu0&quot;&gt;207233&lt;/span&gt; SEQUENCE public bati_isole_2006_gid_seq dba
&lt;span class=&quot;nu0&quot;&gt;4261&lt;/span&gt;; &lt;span class=&quot;nu0&quot;&gt;0&lt;/span&gt; &lt;span class=&quot;nu0&quot;&gt;0&lt;/span&gt; SEQUENCE &lt;span class=&quot;kw1&quot;&gt;SET&lt;/span&gt; public bati_isole_2006_gid_seq dba
&lt;span class=&quot;nu0&quot;&gt;4267&lt;/span&gt;; &lt;span class=&quot;nu0&quot;&gt;0&lt;/span&gt; &lt;span class=&quot;nu0&quot;&gt;0&lt;/span&gt; ACL public biblio_concerne_site dba
&lt;span class=&quot;nu0&quot;&gt;682&lt;/span&gt;; &lt;span class=&quot;nu0&quot;&gt;1255&lt;/span&gt; &lt;span class=&quot;nu0&quot;&gt;140572&lt;/span&gt; &lt;span class=&quot;kw1&quot;&gt;FUNCTION&lt;/span&gt; public cen_nomme_auteur_ese&lt;span class=&quot;br0&quot;&gt;&amp;#40;&lt;/span&gt;integer&lt;span class=&quot;br0&quot;&gt;&amp;#41;&lt;/span&gt; dba
&lt;span class=&quot;nu0&quot;&gt;1639&lt;/span&gt;; &lt;span class=&quot;nu0&quot;&gt;1255&lt;/span&gt; &lt;span class=&quot;nu0&quot;&gt;138849&lt;/span&gt; AGGREGATE public accum&lt;span class=&quot;br0&quot;&gt;&amp;#40;&lt;/span&gt;geometry&lt;span class=&quot;br0&quot;&gt;&amp;#41;&lt;/span&gt; dba
&lt;span class=&quot;nu0&quot;&gt;2363&lt;/span&gt;; &lt;span class=&quot;nu0&quot;&gt;2617&lt;/span&gt; &lt;span class=&quot;nu0&quot;&gt;138727&lt;/span&gt; OPERATOR public &amp;amp;&lt;span class=&quot;sy0&quot;&gt;&amp;lt;&lt;/span&gt; dba
&lt;span class=&quot;nu0&quot;&gt;3619&lt;/span&gt;; &lt;span class=&quot;nu0&quot;&gt;2605&lt;/span&gt; &lt;span class=&quot;nu0&quot;&gt;139045&lt;/span&gt; CAST pg_catalog CAST &lt;span class=&quot;br0&quot;&gt;&amp;#40;&lt;/span&gt;public&lt;span class=&quot;sy0&quot;&gt;.&lt;/span&gt;box2d &lt;span class=&quot;kw1&quot;&gt;AS&lt;/span&gt; public&lt;span class=&quot;sy0&quot;&gt;.&lt;/span&gt;box3d&lt;span class=&quot;br0&quot;&gt;&amp;#41;&lt;/span&gt;
&lt;span class=&quot;nu0&quot;&gt;4175&lt;/span&gt;; &lt;span class=&quot;nu0&quot;&gt;0&lt;/span&gt; &lt;span class=&quot;nu0&quot;&gt;139563&lt;/span&gt; &lt;span class=&quot;kw1&quot;&gt;TABLE&lt;/span&gt; &lt;span class=&quot;kw1&quot;&gt;DATA&lt;/span&gt; public taxon_vegetal_indique_habitat dba
&lt;span class=&quot;nu0&quot;&gt;3752&lt;/span&gt;; &lt;span class=&quot;nu0&quot;&gt;2606&lt;/span&gt; &lt;span class=&quot;nu0&quot;&gt;205914&lt;/span&gt; CONSTRAINT public amenagements_pkey dba
&lt;span class=&quot;nu0&quot;&gt;3926&lt;/span&gt;; &lt;span class=&quot;nu0&quot;&gt;2606&lt;/span&gt; &lt;span class=&quot;nu0&quot;&gt;205976&lt;/span&gt; CONSTRAINT public pk_commune dba
&lt;span class=&quot;nu0&quot;&gt;3750&lt;/span&gt;; &lt;span class=&quot;nu0&quot;&gt;1259&lt;/span&gt; &lt;span class=&quot;nu0&quot;&gt;206173&lt;/span&gt; &lt;span class=&quot;kw1&quot;&gt;INDEX&lt;/span&gt; public amenagements_geometrie_gist dba
&lt;span class=&quot;nu0&quot;&gt;3922&lt;/span&gt;; &lt;span class=&quot;nu0&quot;&gt;1259&lt;/span&gt; &lt;span class=&quot;nu0&quot;&gt;206178&lt;/span&gt; &lt;span class=&quot;kw1&quot;&gt;INDEX&lt;/span&gt; public commune_geometrie_gist dba
&lt;span class=&quot;nu0&quot;&gt;3929&lt;/span&gt;; &lt;span class=&quot;nu0&quot;&gt;1259&lt;/span&gt; &lt;span class=&quot;nu0&quot;&gt;206190&lt;/span&gt; &lt;span class=&quot;kw1&quot;&gt;INDEX&lt;/span&gt; public in_id_structure dba
&lt;span class=&quot;nu0&quot;&gt;4111&lt;/span&gt;; &lt;span class=&quot;nu0&quot;&gt;2606&lt;/span&gt; &lt;span class=&quot;nu0&quot;&gt;206272&lt;/span&gt; FK CONSTRAINT public code_habitat_ref_habitat dba
&lt;span class=&quot;br0&quot;&gt;&amp;#91;&lt;/span&gt;&lt;span class=&quot;sy0&quot;&gt;...&lt;/span&gt;&lt;span class=&quot;br0&quot;&gt;&amp;#93;&lt;/span&gt;&lt;/pre&gt;

&lt;p&gt;
Dans un éditeur de texte, on va pouvoir commenter les lignes correspondant aux objets que l&amp;#039;on ne veut pas restaurer.
On va aussi pouvoir ordonner ces lignes.
Par exemple, je souhaite restaurer sur une nouvelle version de postgis.
&lt;/p&gt;

&lt;p&gt;
Je vais commenter tout ce que postgis va créer dans la base :
&lt;/p&gt;
&lt;ul&gt;
&lt;li class=&quot;level1&quot;&gt;&lt;div class=&quot;li&quot;&gt; le language pl/pgsql nécessaire à l&amp;#039;installation de postgis&lt;/div&gt;
&lt;/li&gt;
&lt;li class=&quot;level1&quot;&gt;&lt;div class=&quot;li&quot;&gt; les types de données&lt;/div&gt;
&lt;/li&gt;
&lt;li class=&quot;level1&quot;&gt;&lt;div class=&quot;li&quot;&gt; les aggregats&lt;/div&gt;
&lt;/li&gt;
&lt;li class=&quot;level1&quot;&gt;&lt;div class=&quot;li&quot;&gt; les opérateurs&lt;/div&gt;
&lt;/li&gt;
&lt;li class=&quot;level1&quot;&gt;&lt;div class=&quot;li&quot;&gt; les fonctions&lt;/div&gt;
&lt;/li&gt;
&lt;li class=&quot;level1&quot;&gt;&lt;div class=&quot;li&quot;&gt; les cast&lt;/div&gt;
&lt;/li&gt;
&lt;li class=&quot;level1&quot;&gt;&lt;div class=&quot;li&quot;&gt; …&lt;/div&gt;
&lt;/li&gt;
&lt;/ul&gt;

&lt;p&gt;
sans pour autant commenter certains les objets que j&amp;#039;aurai moi-même créé et préfixé (cas des fonctions par exemple).

&lt;/p&gt;

&lt;/div&gt;
&lt;!-- EDIT8 SECTION &quot;Création de la liste des objets composant le dump&quot; [1149-3233] --&gt;
&lt;h3 class=&quot;sectionedit9&quot;&gt;&lt;a name=&quot;restauration_de_la_base_en_tenant_compte_de_cette_liste_d_objets_a_restaurer&quot; id=&quot;restauration_de_la_base_en_tenant_compte_de_cette_liste_d_objets_a_restaurer&quot;&gt;Restauration de la base en tenant compte de cette liste d&amp;#039;objets à restaurer&lt;/a&gt;&lt;/h3&gt;
&lt;div class=&quot;level3&quot;&gt;
&lt;ul&gt;
&lt;li class=&quot;level1&quot;&gt;&lt;div class=&quot;li&quot;&gt; pg_restore -d -s -h localhost -U dba -d sicen -L liste_objets.txt -1 nom_fichier.backup&lt;/div&gt;
&lt;/li&gt;
&lt;/ul&gt;

&lt;/div&gt;
&lt;!-- EDIT9 SECTION &quot;Restauration de la base en tenant compte de cette liste d'objets à restaurer&quot; [3234-] --&gt;</description>
        <category>creation_bdd</category>
            <pubDate>Tue, 25 May 2010 15:39:58 +0200</pubDate>
        </item>
        <item>
            <title>creation_bdd:evolution</title>
            <link>http://sig.cenlr.org/creation_bdd/evolution</link>
            <description>
&lt;h1 class=&quot;sectionedit10&quot;&gt;&lt;a name=&quot;migration_de_la_bdd_sicen_vers_le_nouveau_serveur_et_postgis_15&quot; id=&quot;migration_de_la_bdd_sicen_vers_le_nouveau_serveur_et_postgis_15&quot;&gt;Migration de la bdd SICEN vers le nouveau serveur et postgis 1.5&lt;/a&gt;&lt;/h1&gt;
&lt;div class=&quot;level1&quot;&gt;

&lt;p&gt;

Cette migration est l&amp;#039;occasion de mener une réflexion sur la structuration et les évolutions à apporter à la structure de la base et d&amp;#039;opérer un nettoyage de printemps (tables temporaires et vues “de travail”)…
Le travail mené sur &lt;a href=&quot;http://sig.cenlr.org/stages/2010/sicen&quot; class=&quot;wikilink1&quot; title=&quot;stages:2010:sicen&quot;&gt;la gestion de métadonnées et sur le parcours des données&lt;/a&gt; sera l&amp;#039;occasion d&amp;#039;y réfléchir vraiment.
&lt;/p&gt;
&lt;ul&gt;
&lt;li class=&quot;level1&quot;&gt;&lt;div class=&quot;li&quot;&gt; Contexte ancien serveur&lt;/div&gt;
&lt;ul&gt;
&lt;li class=&quot;level2&quot;&gt;&lt;div class=&quot;li&quot;&gt; logiciel : windows XP pro ancien serveur PostgreSQL 8.3 / PostGIS 1.4 (données en lambert 2 étendu)&lt;/div&gt;
&lt;/li&gt;
&lt;li class=&quot;level2&quot;&gt;&lt;div class=&quot;li&quot;&gt; matériel : &lt;/div&gt;
&lt;/li&gt;
&lt;/ul&gt;
&lt;/li&gt;
&lt;li class=&quot;level1&quot;&gt;&lt;div class=&quot;li&quot;&gt; Contexte nouveau serveur&lt;/div&gt;
&lt;ul&gt;
&lt;li class=&quot;level2&quot;&gt;&lt;div class=&quot;li&quot;&gt; logiciel : &lt;a href=&quot;http://www.fr.redhat.com/&quot; class=&quot;urlextern&quot; target=&quot;_blank&quot; title=&quot;http://www.fr.redhat.com/&quot;  rel=&quot;nofollow&quot;&gt;RHEL 5.4&lt;/a&gt; virtualisé + PostgreSQL 8.4 / PostGIS 1.5 (données en lambert 93)&lt;/div&gt;
&lt;/li&gt;
&lt;li class=&quot;level2&quot;&gt;&lt;div class=&quot;li&quot;&gt; matériel : IBM…&lt;/div&gt;
&lt;/li&gt;
&lt;/ul&gt;
&lt;/li&gt;
&lt;/ul&gt;

&lt;/div&gt;
&lt;!-- EDIT10 SECTION &quot;Migration de la bdd SICEN vers le nouveau serveur et postgis 1.5&quot; [1-777] --&gt;
&lt;h2 class=&quot;sectionedit11&quot;&gt;&lt;a name=&quot;etapes&quot; id=&quot;etapes&quot;&gt;Étapes&lt;/a&gt;&lt;/h2&gt;
&lt;div class=&quot;level2&quot;&gt;
&lt;ul&gt;
&lt;li class=&quot;level1&quot;&gt;&lt;div class=&quot;li&quot;&gt; &lt;a href=&quot;http://docs.postgresql.fr/8.4/app-pgdump.html&quot; class=&quot;urlextern&quot; target=&quot;_blank&quot; title=&quot;http://docs.postgresql.fr/8.4/app-pgdump.html&quot;  rel=&quot;nofollow&quot;&gt;dump&lt;/a&gt; &amp;amp; &lt;a href=&quot;http://docs.postgresql.fr/8.4/app-pgrestore.html&quot; class=&quot;urlextern&quot; target=&quot;_blank&quot; title=&quot;http://docs.postgresql.fr/8.4/app-pgrestore.html&quot;  rel=&quot;nofollow&quot;&gt;restore&lt;/a&gt; de la bdd selon la méthode présentée &lt;a href=&quot;http://sig.cenlr.org/creation_bdd/dump_restore&quot; class=&quot;wikilink1&quot; title=&quot;creation_bdd:dump_restore&quot;&gt;ici&lt;/a&gt;&lt;/div&gt;
&lt;/li&gt;
&lt;li class=&quot;level1&quot;&gt;&lt;div class=&quot;li&quot;&gt; pour toutes les tables contenant une géométrie&lt;sup&gt;&lt;a href=&quot;#fn__1&quot; name=&quot;fnt__1&quot; id=&quot;fnt__1&quot; class=&quot;fn_top&quot;&gt;1)&lt;/a&gt;&lt;/sup&gt;&lt;/div&gt;
&lt;ul&gt;
&lt;li class=&quot;level2&quot;&gt;&lt;div class=&quot;li&quot;&gt; créer une colonne geom_l2c&lt;/div&gt;
&lt;/li&gt;
&lt;li class=&quot;level2&quot;&gt;&lt;div class=&quot;li&quot;&gt; mettre à jour cette colonne avec la valeur de la colonne géométrie&lt;/div&gt;
&lt;/li&gt;
&lt;li class=&quot;level2&quot;&gt;&lt;div class=&quot;li&quot;&gt; changer le SRID de la colonne géométrie en Lambert 93 (code EPSG/IGNF&lt;sup&gt;&lt;a href=&quot;#fn__2&quot; name=&quot;fnt__2&quot; id=&quot;fnt__2&quot; class=&quot;fn_top&quot;&gt;2)&lt;/a&gt;&lt;/sup&gt; : 310024140)&lt;/div&gt;
&lt;/li&gt;
&lt;li class=&quot;level2&quot;&gt;&lt;div class=&quot;li&quot;&gt; mettre la à jour la colonne “geometrie” avec la reprojection de la valeur de geom_l2c (st_transform(geom_l2c,310024140)&lt;/div&gt;
&lt;/li&gt;
&lt;/ul&gt;
&lt;/li&gt;
&lt;/ul&gt;

&lt;/div&gt;
&lt;!-- EDIT11 SECTION &quot;Étapes&quot; [778-1571] --&gt;
&lt;h1 class=&quot;sectionedit12&quot;&gt;&lt;a name=&quot;premiere_realisation_avec_ce_serveur&quot; id=&quot;premiere_realisation_avec_ce_serveur&quot;&gt;Première réalisation avec ce serveur&lt;/a&gt;&lt;/h1&gt;
&lt;div class=&quot;level1&quot;&gt;
&lt;ul&gt;
&lt;li class=&quot;level1&quot;&gt;&lt;div class=&quot;li&quot;&gt; &lt;a href=&quot;http://sig.cenlr.org/integration_donnees/externes/ign#integration_de_la_bdtop&quot; class=&quot;urlextern&quot; target=&quot;_blank&quot; title=&quot;http://sig.cenlr.org/integration_donnees/externes/ign#integration_de_la_bdtop&quot;  rel=&quot;nofollow&quot;&gt;intégration de la BDTOPO&lt;/a&gt;&lt;/div&gt;
&lt;/li&gt;
&lt;/ul&gt;

&lt;/div&gt;
&lt;!-- EDIT12 SECTION &quot;Première réalisation avec ce serveur&quot; [1572-1736] --&gt;
&lt;h1 class=&quot;sectionedit13&quot;&gt;&lt;a name=&quot;creation_de_tables_de_consultation_des_donnees_en_remplacement_des_vues&quot; id=&quot;creation_de_tables_de_consultation_des_donnees_en_remplacement_des_vues&quot;&gt;Création de tables de consultation des données en remplacement des vues&lt;/a&gt;&lt;/h1&gt;
&lt;div class=&quot;level1&quot;&gt;

&lt;p&gt;
Les vues “export_tous_*_*_selon_format_esri” sont gourmandes et ne sont pas compatible avec une visualisation en direct depuis GVSIG ou QGIS. Nous allons donc procéder à la création de tables destinées à recueillir le résultat de ces vues dés lors que de nouvelles données seront ventilées dans la base de données.
Nous prendrons l&amp;#039;exemple de la table contenant l&amp;#039;ensemble des observations ponctuelles de flore.
&lt;/p&gt;
&lt;ol&gt;
&lt;li class=&quot;level1&quot;&gt;&lt;div class=&quot;li&quot;&gt; Création des vues de mise en forme des données&lt;pre class=&quot;code sql&quot;&gt;&lt;span class=&quot;kw1&quot;&gt;CREATE&lt;/span&gt; &lt;span class=&quot;kw1&quot;&gt;OR&lt;/span&gt; &lt;span class=&quot;kw1&quot;&gt;REPLACE&lt;/span&gt; &lt;span class=&quot;kw1&quot;&gt;VIEW&lt;/span&gt; visu_tous_point_flore_format_esri &lt;span class=&quot;kw1&quot;&gt;AS&lt;/span&gt; 
 &lt;span class=&quot;kw1&quot;&gt;SELECT&lt;/span&gt; entite_spatiale_ecologique&lt;span class=&quot;sy0&quot;&gt;.&lt;/span&gt;id_entite&lt;span class=&quot;sy0&quot;&gt;,&lt;/span&gt; &lt;span class=&quot;kw1&quot;&gt;NULL&lt;/span&gt;::text &lt;span class=&quot;kw1&quot;&gt;AS&lt;/span&gt; nom_vernac&lt;span class=&quot;sy0&quot;&gt;,&lt;/span&gt; referentiel_taxon_vegetal&lt;span class=&quot;sy0&quot;&gt;.&lt;/span&gt;nom_scientifique &lt;span class=&quot;kw1&quot;&gt;AS&lt;/span&gt; nom_latin&lt;span class=&quot;sy0&quot;&gt;,&lt;/span&gt; &lt;span class=&quot;st0&quot;&gt;'INPN'&lt;/span&gt;::text &lt;span class=&quot;kw1&quot;&gt;AS&lt;/span&gt; ref_tax&lt;span class=&quot;sy0&quot;&gt;,&lt;/span&gt; point_flore&lt;span class=&quot;sy0&quot;&gt;.&lt;/span&gt;date_obs&lt;span class=&quot;sy0&quot;&gt;,&lt;/span&gt; point_flore&lt;span class=&quot;sy0&quot;&gt;.&lt;/span&gt;date_debut_obs &lt;span class=&quot;kw1&quot;&gt;AS&lt;/span&gt; date_debut&lt;span class=&quot;sy0&quot;&gt;,&lt;/span&gt; point_flore&lt;span class=&quot;sy0&quot;&gt;.&lt;/span&gt;date_fin_obs &lt;span class=&quot;kw1&quot;&gt;AS&lt;/span&gt; date_fin&lt;span class=&quot;sy0&quot;&gt;,&lt;/span&gt; point_flore&lt;span class=&quot;sy0&quot;&gt;.&lt;/span&gt;date_textuelle &lt;span class=&quot;kw1&quot;&gt;AS&lt;/span&gt; date_text&lt;span class=&quot;sy0&quot;&gt;,&lt;/span&gt; point_flore&lt;span class=&quot;sy0&quot;&gt;.&lt;/span&gt;effectif&lt;span class=&quot;sy0&quot;&gt;,&lt;/span&gt; point_flore&lt;span class=&quot;sy0&quot;&gt;.&lt;/span&gt;effectif_min &lt;span class=&quot;kw1&quot;&gt;AS&lt;/span&gt; eff_min&lt;span class=&quot;sy0&quot;&gt;,&lt;/span&gt; point_flore&lt;span class=&quot;sy0&quot;&gt;.&lt;/span&gt;effectif_max &lt;span class=&quot;kw1&quot;&gt;AS&lt;/span&gt; eff_max&lt;span class=&quot;sy0&quot;&gt;,&lt;/span&gt; point_flore&lt;span class=&quot;sy0&quot;&gt;.&lt;/span&gt;type_effectif &lt;span class=&quot;kw1&quot;&gt;AS&lt;/span&gt; type_eff&lt;span class=&quot;sy0&quot;&gt;,&lt;/span&gt; point_flore&lt;span class=&quot;sy0&quot;&gt;.&lt;/span&gt;phenologie &lt;span class=&quot;kw1&quot;&gt;AS&lt;/span&gt; pheno&lt;span class=&quot;sy0&quot;&gt;,&lt;/span&gt; commune&lt;span class=&quot;sy0&quot;&gt;.&lt;/span&gt;toponyme &lt;span class=&quot;kw1&quot;&gt;AS&lt;/span&gt; commune&lt;span class=&quot;sy0&quot;&gt;,&lt;/span&gt; point_flore&lt;span class=&quot;sy0&quot;&gt;.&lt;/span&gt;coord_x&lt;span class=&quot;sy0&quot;&gt;,&lt;/span&gt; point_flore&lt;span class=&quot;sy0&quot;&gt;.&lt;/span&gt;coord_y&lt;span class=&quot;sy0&quot;&gt;,&lt;/span&gt; point_flore&lt;span class=&quot;sy0&quot;&gt;.&lt;/span&gt;coord_z&lt;span class=&quot;sy0&quot;&gt;,&lt;/span&gt; point_flore&lt;span class=&quot;sy0&quot;&gt;.&lt;/span&gt;systeme_coordonnees &lt;span class=&quot;kw1&quot;&gt;AS&lt;/span&gt; syst_coord&lt;span class=&quot;sy0&quot;&gt;,&lt;/span&gt; point_flore&lt;span class=&quot;sy0&quot;&gt;.&lt;/span&gt;unite&lt;span class=&quot;sy0&quot;&gt;,&lt;/span&gt; point_flore&lt;span class=&quot;sy0&quot;&gt;.&lt;/span&gt;&lt;span class=&quot;st0&quot;&gt;&amp;quot;precision&amp;quot;&lt;/span&gt;&lt;span class=&quot;sy0&quot;&gt;,&lt;/span&gt; cen_liste_personne_auteur_ese&lt;span class=&quot;br0&quot;&gt;&amp;#40;&lt;/span&gt;entite_spatiale_ecologique&lt;span class=&quot;sy0&quot;&gt;.&lt;/span&gt;id_entite&lt;span class=&quot;br0&quot;&gt;&amp;#41;&lt;/span&gt; &lt;span class=&quot;kw1&quot;&gt;AS&lt;/span&gt; personnes&lt;span class=&quot;sy0&quot;&gt;,&lt;/span&gt; protocole&lt;span class=&quot;sy0&quot;&gt;.&lt;/span&gt;libelle &lt;span class=&quot;kw1&quot;&gt;AS&lt;/span&gt; protocole&lt;span class=&quot;sy0&quot;&gt;,&lt;/span&gt; structure&lt;span class=&quot;sy0&quot;&gt;.&lt;/span&gt;nom_structure &lt;span class=&quot;kw1&quot;&gt;AS&lt;/span&gt; structure&lt;span class=&quot;sy0&quot;&gt;,&lt;/span&gt; lot_donnee&lt;span class=&quot;sy0&quot;&gt;.&lt;/span&gt;libelle &lt;span class=&quot;kw1&quot;&gt;AS&lt;/span&gt; lot&lt;span class=&quot;sy0&quot;&gt;,&lt;/span&gt; point_flore&lt;span class=&quot;sy0&quot;&gt;.&lt;/span&gt;id_taxon &lt;span class=&quot;kw1&quot;&gt;AS&lt;/span&gt; cd_tax_ref&lt;span class=&quot;sy0&quot;&gt;,&lt;/span&gt; point_flore&lt;span class=&quot;sy0&quot;&gt;.&lt;/span&gt;remarque&lt;span class=&quot;sy0&quot;&gt;,&lt;/span&gt; point_flore&lt;span class=&quot;sy0&quot;&gt;.&lt;/span&gt;transmis_cbnmp &lt;span class=&quot;kw1&quot;&gt;AS&lt;/span&gt; trans_cbnmp&lt;span class=&quot;sy0&quot;&gt;,&lt;/span&gt; point_flore&lt;span class=&quot;sy0&quot;&gt;.&lt;/span&gt;taxon_mentionne &lt;span class=&quot;kw1&quot;&gt;AS&lt;/span&gt; mention&lt;span class=&quot;sy0&quot;&gt;,&lt;/span&gt; point_flore&lt;span class=&quot;sy0&quot;&gt;.&lt;/span&gt;date_ventilation &lt;span class=&quot;kw1&quot;&gt;AS&lt;/span&gt; ventil&lt;span class=&quot;sy0&quot;&gt;,&lt;/span&gt; referentiel_taxon_vegetal&lt;span class=&quot;sy0&quot;&gt;.&lt;/span&gt;id_taxon_ref&lt;span class=&quot;sy0&quot;&gt;,&lt;/span&gt; cen_liste_protection_taxon_vegetal&lt;span class=&quot;br0&quot;&gt;&amp;#40;&lt;/span&gt;id_taxon_ref&lt;span class=&quot;br0&quot;&gt;&amp;#41;&lt;/span&gt; &lt;span class=&quot;kw1&quot;&gt;AS&lt;/span&gt; statut&lt;span class=&quot;sy0&quot;&gt;,&lt;/span&gt; point_flore&lt;span class=&quot;sy0&quot;&gt;.&lt;/span&gt;geometrie
   &lt;span class=&quot;kw1&quot;&gt;FROM&lt;/span&gt; entite_spatiale_ecologique
   &lt;span class=&quot;kw1&quot;&gt;JOIN&lt;/span&gt; protocole &lt;span class=&quot;kw1&quot;&gt;ON&lt;/span&gt; entite_spatiale_ecologique&lt;span class=&quot;sy0&quot;&gt;.&lt;/span&gt;id_protocole &lt;span class=&quot;sy0&quot;&gt;=&lt;/span&gt; protocole&lt;span class=&quot;sy0&quot;&gt;.&lt;/span&gt;id_protocole
   &lt;span class=&quot;kw1&quot;&gt;JOIN&lt;/span&gt; lot_donnee &lt;span class=&quot;kw1&quot;&gt;ON&lt;/span&gt; entite_spatiale_ecologique&lt;span class=&quot;sy0&quot;&gt;.&lt;/span&gt;id_lot &lt;span class=&quot;sy0&quot;&gt;=&lt;/span&gt; lot_donnee&lt;span class=&quot;sy0&quot;&gt;.&lt;/span&gt;id_lot
   &lt;span class=&quot;kw1&quot;&gt;JOIN&lt;/span&gt; structure_est_auteur_donnee &lt;span class=&quot;kw1&quot;&gt;ON&lt;/span&gt; entite_spatiale_ecologique&lt;span class=&quot;sy0&quot;&gt;.&lt;/span&gt;id_entite &lt;span class=&quot;sy0&quot;&gt;=&lt;/span&gt; structure_est_auteur_donnee&lt;span class=&quot;sy0&quot;&gt;.&lt;/span&gt;id_entite
   &lt;span class=&quot;kw1&quot;&gt;JOIN&lt;/span&gt; structure &lt;span class=&quot;kw1&quot;&gt;ON&lt;/span&gt; structure_est_auteur_donnee&lt;span class=&quot;sy0&quot;&gt;.&lt;/span&gt;id_structure &lt;span class=&quot;sy0&quot;&gt;=&lt;/span&gt; structure&lt;span class=&quot;sy0&quot;&gt;.&lt;/span&gt;id_structure
   &lt;span class=&quot;kw1&quot;&gt;JOIN&lt;/span&gt; point_flore &lt;span class=&quot;kw1&quot;&gt;ON&lt;/span&gt; entite_spatiale_ecologique&lt;span class=&quot;sy0&quot;&gt;.&lt;/span&gt;id_entite &lt;span class=&quot;sy0&quot;&gt;=&lt;/span&gt; point_flore&lt;span class=&quot;sy0&quot;&gt;.&lt;/span&gt;id_entite
   &lt;span class=&quot;kw1&quot;&gt;JOIN&lt;/span&gt; referentiel_taxon_vegetal &lt;span class=&quot;kw1&quot;&gt;ON&lt;/span&gt; point_flore&lt;span class=&quot;sy0&quot;&gt;.&lt;/span&gt;id_taxon::text &lt;span class=&quot;sy0&quot;&gt;=&lt;/span&gt; referentiel_taxon_vegetal&lt;span class=&quot;sy0&quot;&gt;.&lt;/span&gt;id_taxon::text&lt;span class=&quot;sy0&quot;&gt;,&lt;/span&gt; commune
  &lt;span class=&quot;kw1&quot;&gt;WHERE&lt;/span&gt; st_intersects&lt;span class=&quot;br0&quot;&gt;&amp;#40;&lt;/span&gt;point_flore&lt;span class=&quot;sy0&quot;&gt;.&lt;/span&gt;geometrie&lt;span class=&quot;sy0&quot;&gt;,&lt;/span&gt; commune&lt;span class=&quot;sy0&quot;&gt;.&lt;/span&gt;geometrie&lt;span class=&quot;br0&quot;&gt;&amp;#41;&lt;/span&gt;;
&amp;nbsp;&lt;/pre&gt;
&lt;/div&gt;
&lt;/li&gt;
&lt;li class=&quot;level1&quot;&gt;&lt;div class=&quot;li&quot;&gt; Création de la table&lt;pre class=&quot;code sql&quot;&gt;&lt;span class=&quot;kw1&quot;&gt;CREATE&lt;/span&gt; &lt;span class=&quot;kw1&quot;&gt;TABLE&lt;/span&gt; tous_point_flore_selon_format_esri &lt;span class=&quot;kw1&quot;&gt;AS&lt;/span&gt; &lt;span class=&quot;kw1&quot;&gt;SELECT&lt;/span&gt; &lt;span class=&quot;sy0&quot;&gt;*&lt;/span&gt; &lt;span class=&quot;kw1&quot;&gt;FROM&lt;/span&gt; visu_tous_point_flore_format_esri;&lt;/pre&gt;
&lt;/div&gt;
&lt;/li&gt;
&lt;li class=&quot;level1&quot;&gt;&lt;div class=&quot;li&quot;&gt; Création des contraintes&lt;pre class=&quot;code sql&quot;&gt;&lt;span class=&quot;kw1&quot;&gt;ALTER&lt;/span&gt; &lt;span class=&quot;kw1&quot;&gt;TABLE&lt;/span&gt; tous_point_flore_selon_format_esri &lt;span class=&quot;kw1&quot;&gt;ADD&lt;/span&gt; &lt;span class=&quot;kw1&quot;&gt;PRIMARY&lt;/span&gt; &lt;span class=&quot;kw1&quot;&gt;KEY&lt;/span&gt; &lt;span class=&quot;br0&quot;&gt;&amp;#40;&lt;/span&gt;id_entite&lt;span class=&quot;br0&quot;&gt;&amp;#41;&lt;/span&gt;;&lt;/pre&gt;
&lt;/div&gt;
&lt;/li&gt;
&lt;li class=&quot;level1&quot;&gt;&lt;div class=&quot;li&quot;&gt; Création des index&lt;pre class=&quot;code sql&quot;&gt;&lt;span class=&quot;kw1&quot;&gt;CREATE&lt;/span&gt; &lt;span class=&quot;kw1&quot;&gt;INDEX&lt;/span&gt; ind_pt_flore_nom_scientifique
   &lt;span class=&quot;kw1&quot;&gt;ON&lt;/span&gt; tous_point_flore_selon_format_esri &lt;span class=&quot;kw1&quot;&gt;USING&lt;/span&gt; btree &lt;span class=&quot;br0&quot;&gt;&amp;#40;&lt;/span&gt;nom_latin &lt;span class=&quot;kw1&quot;&gt;ASC&lt;/span&gt; NULLS FIRST&lt;span class=&quot;br0&quot;&gt;&amp;#41;&lt;/span&gt;;
&lt;span class=&quot;kw1&quot;&gt;CREATE&lt;/span&gt; &lt;span class=&quot;kw1&quot;&gt;INDEX&lt;/span&gt; ind_pt_flore_commune &lt;span class=&quot;kw1&quot;&gt;ON&lt;/span&gt; tous_point_flore_selon_format_esri &lt;span class=&quot;kw1&quot;&gt;USING&lt;/span&gt; btree &lt;span class=&quot;br0&quot;&gt;&amp;#40;&lt;/span&gt;commune &lt;span class=&quot;kw1&quot;&gt;ASC&lt;/span&gt; NULLS FIRST&lt;span class=&quot;br0&quot;&gt;&amp;#41;&lt;/span&gt;;&lt;/pre&gt;
&lt;/div&gt;
&lt;/li&gt;
&lt;li class=&quot;level1&quot;&gt;&lt;div class=&quot;li&quot;&gt; Ajout des contraintes de géométrie&lt;pre class=&quot;code sql&quot;&gt;&lt;span class=&quot;kw1&quot;&gt;ALTER&lt;/span&gt; &lt;span class=&quot;kw1&quot;&gt;TABLE&lt;/span&gt; tous_point_flore_selon_format_esri &lt;span class=&quot;kw1&quot;&gt;ADD&lt;/span&gt; CONSTRAINT enforce_dims_geometrie &lt;span class=&quot;kw1&quot;&gt;CHECK&lt;/span&gt; &lt;span class=&quot;br0&quot;&gt;&amp;#40;&lt;/span&gt;ndims&lt;span class=&quot;br0&quot;&gt;&amp;#40;&lt;/span&gt;geometrie&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;nu0&quot;&gt;2&lt;/span&gt;&lt;span class=&quot;br0&quot;&gt;&amp;#41;&lt;/span&gt;;
&lt;span class=&quot;kw1&quot;&gt;ALTER&lt;/span&gt; &lt;span class=&quot;kw1&quot;&gt;TABLE&lt;/span&gt; tous_point_flore_selon_format_esri &lt;span class=&quot;kw1&quot;&gt;ADD&lt;/span&gt; CONSTRAINT enforce_geotype_geometrie &lt;span class=&quot;kw1&quot;&gt;CHECK&lt;/span&gt; &lt;span class=&quot;br0&quot;&gt;&amp;#40;&lt;/span&gt;geometrytype&lt;span class=&quot;br0&quot;&gt;&amp;#40;&lt;/span&gt;geometrie&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;st0&quot;&gt;'MULTIPOINT'&lt;/span&gt;::text &lt;span class=&quot;kw1&quot;&gt;OR&lt;/span&gt; geometrie &lt;span class=&quot;kw1&quot;&gt;IS&lt;/span&gt; &lt;span class=&quot;kw1&quot;&gt;NULL&lt;/span&gt;&lt;span class=&quot;br0&quot;&gt;&amp;#41;&lt;/span&gt;;
&lt;span class=&quot;kw1&quot;&gt;ALTER&lt;/span&gt; &lt;span class=&quot;kw1&quot;&gt;TABLE&lt;/span&gt; tous_point_flore_selon_format_esri &lt;span class=&quot;kw1&quot;&gt;ADD&lt;/span&gt; CONSTRAINT enforce_srid_geometrie &lt;span class=&quot;kw1&quot;&gt;CHECK&lt;/span&gt; &lt;span class=&quot;br0&quot;&gt;&amp;#40;&lt;/span&gt;srid&lt;span class=&quot;br0&quot;&gt;&amp;#40;&lt;/span&gt;geometrie&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;nu0&quot;&gt;27582&lt;/span&gt;&lt;span class=&quot;br0&quot;&gt;&amp;#41;&lt;/span&gt;;&lt;/pre&gt;
&lt;/div&gt;
&lt;/li&gt;
&lt;li class=&quot;level1&quot;&gt;&lt;div class=&quot;li&quot;&gt; Référencement de la table dans la table geomtry_columns&lt;/div&gt;
&lt;/li&gt;
&lt;/ol&gt;
&lt;ul&gt;
&lt;li class=&quot;level1&quot;&gt;&lt;div class=&quot;li&quot;&gt; A la main avant PostGIS 1.4.&lt;/div&gt;
&lt;/li&gt;
&lt;li class=&quot;level1&quot;&gt;&lt;div class=&quot;li&quot;&gt; A partir de PostGIS 1.4, la fonction &lt;a href=&quot;http://postgis.refractions.net/documentation/manual-1.4/Populate_Geometry_Columns.html&quot; class=&quot;urlextern&quot; target=&quot;_blank&quot; title=&quot;http://postgis.refractions.net/documentation/manual-1.4/Populate_Geometry_Columns.html&quot;  rel=&quot;nofollow&quot;&gt;Populate_Geometry_Columns()&lt;/a&gt; répond à ce besoin.&lt;/div&gt;
&lt;/li&gt;
&lt;/ul&gt;

&lt;/div&gt;
&lt;!-- EDIT13 SECTION &quot;Création de tables de consultation des données en remplacement des vues&quot; [1737-] --&gt;&lt;div class=&quot;footnotes&quot;&gt;
&lt;div class=&quot;fn&quot;&gt;&lt;sup&gt;&lt;a href=&quot;#fnt__1&quot; id=&quot;fn__1&quot; name=&quot;fn__1&quot; class=&quot;fn_bot&quot;&gt;1)&lt;/a&gt;&lt;/sup&gt; 
le code sql nécessaire à tout cela est généré par interrogation de la table geometry_colmuns&lt;/div&gt;
&lt;div class=&quot;fn&quot;&gt;&lt;sup&gt;&lt;a href=&quot;#fnt__2&quot; id=&quot;fn__2&quot; name=&quot;fn__2&quot; class=&quot;fn_bot&quot;&gt;2)&lt;/a&gt;&lt;/sup&gt; 
&lt;a href=&quot;http://lambert93.ign.fr/index.php?id=29#c125&quot; class=&quot;urlextern&quot; target=&quot;_blank&quot; title=&quot;http://lambert93.ign.fr/index.php?id=29#c125&quot;  rel=&quot;nofollow&quot;&gt;en savoir plus sur la gestion du Lambert 93&lt;/a&gt;&lt;/div&gt;
&lt;/div&gt;
</description>
        <category>creation_bdd</category>
            <pubDate>Wed, 12 May 2010 09:54:47 +0200</pubDate>
        </item>
        <item>
            <title>creation_bdd:fonctions</title>
            <link>http://sig.cenlr.org/creation_bdd/fonctions</link>
            <description>&lt;div class=&quot;tags&quot;&gt;&lt;span&gt;
	&lt;a href=&quot;http://sig.cenlr.org/tag/postgresql?do=showtag&amp;amp;tag=PostgreSQL&quot; class=&quot;wikilink1&quot; title=&quot;tag:postgresql&quot; rel=&quot;tag&quot;&gt;PostgreSQL&lt;/a&gt;,
	&lt;a href=&quot;http://sig.cenlr.org/tag/postgis?do=showtag&amp;amp;tag=PostGIS&quot; class=&quot;wikilink1&quot; title=&quot;tag:postgis&quot; rel=&quot;tag&quot;&gt;PostGIS&lt;/a&gt;,
	&lt;a href=&quot;http://sig.cenlr.org/tag/plpgsql?do=showtag&amp;amp;tag=plpgsql&quot; class=&quot;wikilink1&quot; title=&quot;tag:plpgsql&quot; rel=&quot;tag&quot;&gt;plpgsql&lt;/a&gt;,
	&lt;a href=&quot;http://sig.cenlr.org/tag/plpython?do=showtag&amp;amp;tag=plpython&quot; class=&quot;wikilink1&quot; title=&quot;tag:plpython&quot; rel=&quot;tag&quot;&gt;plpython&lt;/a&gt;,
	&lt;a href=&quot;http://sig.cenlr.org/tag/webservcies?do=showtag&amp;amp;tag=WebServcies&quot; class=&quot;wikilink1&quot; title=&quot;tag:webservcies&quot; rel=&quot;tag&quot;&gt;WebServcies&lt;/a&gt;,
	&lt;a href=&quot;http://sig.cenlr.org/tag/elevation?do=showtag&amp;amp;tag=elevation&quot; class=&quot;wikilink1&quot; title=&quot;tag:elevation&quot; rel=&quot;tag&quot;&gt;elevation&lt;/a&gt;,
	&lt;a href=&quot;http://sig.cenlr.org/tag/sh?do=showtag&amp;amp;tag=sh&quot; class=&quot;wikilink1&quot; title=&quot;tag:sh&quot; rel=&quot;tag&quot;&gt;sh&lt;/a&gt;
&lt;/span&gt;&lt;/div&gt;

&lt;h1 class=&quot;sectionedit14&quot;&gt;&lt;a name=&quot;fonctions_plpython&quot; id=&quot;fonctions_plpython&quot;&gt;Fonctions pl/python&lt;/a&gt;&lt;/h1&gt;
&lt;div class=&quot;level1&quot;&gt;
&lt;ul&gt;
&lt;li class=&quot;level1&quot;&gt;&lt;div class=&quot;li&quot;&gt; &lt;a href=&quot;http://sig.cenlr.org/creation_bdd/fonctions/elevation&quot; class=&quot;wikilink1&quot; title=&quot;creation_bdd:fonctions:elevation&quot;&gt;Donne l&amp;#039;élévation d&amp;#039;un point à prtir de sa longitude et de sa latitude&lt;/a&gt;&lt;/div&gt;
&lt;/li&gt;
&lt;li class=&quot;level1&quot;&gt;&lt;div class=&quot;li&quot;&gt; &lt;a href=&quot;http://sig.cenlr.org/creation_bdd/fonctions/code_taxon_europeen&quot; class=&quot;wikilink1&quot; title=&quot;creation_bdd:fonctions:code_taxon_europeen&quot;&gt;Connaitre le code européen (INSPIRE) d&amp;#039;un taxon&lt;/a&gt;&lt;/div&gt;
&lt;/li&gt;
&lt;/ul&gt;

&lt;/div&gt;
&lt;!-- EDIT14 SECTION &quot;Fonctions pl/python&quot; [70-319] --&gt;
&lt;h1 class=&quot;sectionedit15&quot;&gt;&lt;a name=&quot;fonctions_plpgsql&quot; id=&quot;fonctions_plpgsql&quot;&gt;Fonctions pl/pgsql&lt;/a&gt;&lt;/h1&gt;
&lt;div class=&quot;level1&quot;&gt;

&lt;/div&gt;
&lt;!-- EDIT15 SECTION &quot;Fonctions pl/pgsql&quot; [320-351] --&gt;
&lt;h2 class=&quot;sectionedit16&quot;&gt;&lt;a name=&quot;mises_en_place&quot; id=&quot;mises_en_place&quot;&gt;Mises en place&lt;/a&gt;&lt;/h2&gt;
&lt;div class=&quot;level2&quot;&gt;

&lt;p&gt;
&lt;a href=&quot;http://www.postgresonline.com/journal/index.php?/archives/58-Quick-Guide-to-writing-PLPGSQL-Functions-Part-1.html&quot; class=&quot;urlextern&quot; target=&quot;_blank&quot; title=&quot;http://www.postgresonline.com/journal/index.php?/archives/58-Quick-Guide-to-writing-PLPGSQL-Functions-Part-1.html&quot;  rel=&quot;nofollow&quot;&gt;Comment créer des fonctions postgresql&lt;/a&gt;

&lt;/p&gt;

&lt;/div&gt;
&lt;!-- EDIT16 SECTION &quot;Mises en place&quot; [352-534] --&gt;
&lt;h3 class=&quot;sectionedit17&quot;&gt;&lt;a name=&quot;utilisation_du_referentiel&quot; id=&quot;utilisation_du_referentiel&quot;&gt;Utilisation du référentiel&lt;/a&gt;&lt;/h3&gt;
&lt;div class=&quot;level3&quot;&gt;
&lt;ul&gt;
&lt;li class=&quot;level1&quot;&gt;&lt;div class=&quot;li&quot;&gt; &lt;a href=&quot;http://sig.cenlr.org/creation_bdd/fonctions/taxon_fils&quot; class=&quot;wikilink1&quot; title=&quot;creation_bdd:fonctions:taxon_fils&quot;&gt;Liste de tous les taxons fils d&amp;#039;un taxon donné&lt;/a&gt;&lt;/div&gt;
&lt;/li&gt;
&lt;/ul&gt;

&lt;/div&gt;
&lt;!-- EDIT17 SECTION &quot;Utilisation du référentiel&quot; [535-664] --&gt;
&lt;h3 class=&quot;sectionedit18&quot;&gt;&lt;a name=&quot;insertion_des_nouvelles_donnees&quot; id=&quot;insertion_des_nouvelles_donnees&quot;&gt;Insertion des nouvelles données&lt;/a&gt;&lt;/h3&gt;
&lt;div class=&quot;level3&quot;&gt;
&lt;ul&gt;
&lt;li class=&quot;level1&quot;&gt;&lt;div class=&quot;li&quot;&gt; &lt;a href=&quot;http://sig.cenlr.org/creation_bdd/fonctions/ceninsertionpointfaune&quot; class=&quot;wikilink1&quot; title=&quot;creation_bdd:fonctions:ceninsertionpointfaune&quot;&gt;Ventilation des nouveaux &amp;quot;points faune&amp;quot;&lt;/a&gt;&lt;/div&gt;
&lt;/li&gt;
&lt;li class=&quot;level1&quot;&gt;&lt;div class=&quot;li&quot;&gt; &lt;a href=&quot;http://sig.cenlr.org/creation_bdd/fonctions/ceninsertionpointflore&quot; class=&quot;wikilink1&quot; title=&quot;creation_bdd:fonctions:ceninsertionpointflore&quot;&gt;Ventilation des nouveaux &amp;quot;points flore&amp;quot;&lt;/a&gt;&lt;/div&gt;
&lt;/li&gt;
&lt;li class=&quot;level1&quot;&gt;&lt;div class=&quot;li&quot;&gt; &lt;a href=&quot;http://sig.cenlr.org/creation_bdd/fonctions/ceninsertionpointhabitat&quot; class=&quot;wikilink1&quot; title=&quot;creation_bdd:fonctions:ceninsertionpointhabitat&quot;&gt;Ventilation des nouveaux &amp;quot;points habitats&amp;quot;&lt;/a&gt;&lt;/div&gt;
&lt;ul&gt;
&lt;li class=&quot;level2&quot;&gt;&lt;div class=&quot;li&quot;&gt; &lt;a href=&quot;http://sig.cenlr.org/creation_bdd/fonctions/fonctioncenattributionhabitatpointhabitat&quot; class=&quot;wikilink1&quot; title=&quot;creation_bdd:fonctions:fonctioncenattributionhabitatpointhabitat&quot;&gt;Ventilation des complexes d&amp;#039;habitat&lt;/a&gt;&lt;/div&gt;
&lt;/li&gt;
&lt;/ul&gt;
&lt;/li&gt;
&lt;li class=&quot;level1&quot;&gt;&lt;div class=&quot;li&quot;&gt; &lt;a href=&quot;http://sig.cenlr.org/creation_bdd/fonctions/ceninsertionligneflore&quot; class=&quot;wikilink1&quot; title=&quot;creation_bdd:fonctions:ceninsertionligneflore&quot;&gt;Ventilation des nouvelles &amp;quot;lignes flore&amp;quot;&lt;/a&gt;&lt;/div&gt;
&lt;/li&gt;
&lt;li class=&quot;level1&quot;&gt;&lt;div class=&quot;li&quot;&gt; &lt;a href=&quot;http://sig.cenlr.org/creation_bdd/fonctions/ceninsertionperimetrefaune&quot; class=&quot;wikilink1&quot; title=&quot;creation_bdd:fonctions:ceninsertionperimetrefaune&quot;&gt;Ventilation des nouveaux &amp;quot;périmètres faune&amp;quot;&lt;/a&gt;&lt;/div&gt;
&lt;/li&gt;
&lt;li class=&quot;level1&quot;&gt;&lt;div class=&quot;li&quot;&gt; &lt;a href=&quot;http://sig.cenlr.org/creation_bdd/fonctions/ceninsertionperimetreflore&quot; class=&quot;wikilink1&quot; title=&quot;creation_bdd:fonctions:ceninsertionperimetreflore&quot;&gt;Ventilation des nouveaux &amp;quot;périmètres flore&amp;quot;&lt;/a&gt;&lt;/div&gt;
&lt;/li&gt;
&lt;li class=&quot;level1&quot;&gt;&lt;div class=&quot;li&quot;&gt; &lt;a href=&quot;http://sig.cenlr.org/creation_bdd/fonctions/ceninsertionperimetrehabitat&quot; class=&quot;wikilink1&quot; title=&quot;creation_bdd:fonctions:ceninsertionperimetrehabitat&quot;&gt;Ventilation des nouveaux &amp;quot;périmètres habitat&amp;quot;&lt;/a&gt;&lt;/div&gt;
&lt;/li&gt;
&lt;/ul&gt;

&lt;/div&gt;
&lt;!-- EDIT18 SECTION &quot;Insertion des nouvelles données&quot; [665-1524] --&gt;
&lt;h3 class=&quot;sectionedit19&quot;&gt;&lt;a name=&quot;metadonnees&quot; id=&quot;metadonnees&quot;&gt;Métadonnées&lt;/a&gt;&lt;/h3&gt;
&lt;div class=&quot;level3&quot;&gt;
&lt;ul&gt;
&lt;li class=&quot;level1&quot;&gt;&lt;div class=&quot;li&quot;&gt; &lt;a href=&quot;http://sig.cenlr.org/creation_bdd/fonctions/fonctioncenlistepersonneauteurese&quot; class=&quot;wikilink1&quot; title=&quot;creation_bdd:fonctions:fonctioncenlistepersonneauteurese&quot;&gt;Liste formatée des auteurs d&amp;#039;une donnée&lt;/a&gt;&lt;/div&gt;
&lt;/li&gt;
&lt;li class=&quot;level1&quot;&gt;&lt;div class=&quot;li&quot;&gt; &lt;a href=&quot;http://sig.cenlr.org/creation_bdd/fonctions/fonctioncenlisteobservateursespece&quot; class=&quot;wikilink1&quot; title=&quot;creation_bdd:fonctions:fonctioncenlisteobservateursespece&quot;&gt;Liste formatée des observateurs d&amp;#039;une espèce&lt;/a&gt;&lt;/div&gt;
&lt;/li&gt;
&lt;li class=&quot;level1&quot;&gt;&lt;div class=&quot;li&quot;&gt; &lt;a href=&quot;http://sig.cenlr.org/creation_bdd/fonctions/cenlistestructureauteurese&quot; class=&quot;wikilink1&quot; title=&quot;creation_bdd:fonctions:cenlistestructureauteurese&quot;&gt;Liste formatée des structure possesseurs d&amp;#039;une donnée&lt;/a&gt;&lt;/div&gt;
&lt;/li&gt;
&lt;li class=&quot;level1&quot;&gt;&lt;div class=&quot;li&quot;&gt; &lt;a href=&quot;http://sig.cenlr.org/creation_bdd/fonctions/cenlistestructurefinanceetude&quot; class=&quot;wikilink1&quot; title=&quot;creation_bdd:fonctions:cenlistestructurefinanceetude&quot;&gt;Liste formatée des financeurs d&amp;#039;une étude&lt;/a&gt;&lt;/div&gt;
&lt;/li&gt;
&lt;li class=&quot;level1&quot;&gt;&lt;div class=&quot;li&quot;&gt; &lt;a href=&quot;http://sig.cenlr.org/creation_bdd/fonctions/fonctioncenattributionauteurpointflore&quot; class=&quot;wikilink1&quot; title=&quot;creation_bdd:fonctions:fonctioncenattributionauteurpointflore&quot;&gt;Attribution des ses auteurs (observateurs) à un &amp;quot;point flore&amp;quot;&lt;/a&gt;&lt;/div&gt;
&lt;/li&gt;
&lt;li class=&quot;level1&quot;&gt;&lt;div class=&quot;li&quot;&gt; &lt;a href=&quot;http://sig.cenlr.org/creation_bdd/fonctions/fonctioncenattributionauteurpointfaune&quot; class=&quot;wikilink1&quot; title=&quot;creation_bdd:fonctions:fonctioncenattributionauteurpointfaune&quot;&gt;Attribution des ses auteurs (observateurs) à un &amp;quot;point faune&amp;quot;&lt;/a&gt;&lt;/div&gt;
&lt;/li&gt;
&lt;li class=&quot;level1&quot;&gt;&lt;div class=&quot;li&quot;&gt; &lt;a href=&quot;http://sig.cenlr.org/creation_bdd/fonctions/fonctioncenattributionstructureauteurpointfaune&quot; class=&quot;wikilink1&quot; title=&quot;creation_bdd:fonctions:fonctioncenattributionstructureauteurpointfaune&quot;&gt;Attribution d&amp;#039;un point faune à la structure productrice&lt;/a&gt;&lt;/div&gt;
&lt;/li&gt;
&lt;li class=&quot;level1&quot;&gt;&lt;div class=&quot;li&quot;&gt; &lt;a href=&quot;http://sig.cenlr.org/creation_bdd/fonctions/fonctioncenattributionstructureauteurpointflore&quot; class=&quot;wikilink2&quot; title=&quot;creation_bdd:fonctions:fonctioncenattributionstructureauteurpointflore&quot; rel=&quot;nofollow&quot;&gt;Attribution d&amp;#039;un point flore à la structure productrice&lt;/a&gt;&lt;/div&gt;
&lt;/li&gt;
&lt;/ul&gt;

&lt;/div&gt;
&lt;!-- EDIT19 SECTION &quot;Métadonnées&quot; [1525-2533] --&gt;
&lt;h3 class=&quot;sectionedit20&quot;&gt;&lt;a name=&quot;fonctions_diverses&quot; id=&quot;fonctions_diverses&quot;&gt;Fonctions diverses&lt;/a&gt;&lt;/h3&gt;
&lt;div class=&quot;level3&quot;&gt;
&lt;ul&gt;
&lt;li class=&quot;level1&quot;&gt;&lt;div class=&quot;li&quot;&gt; &lt;a href=&quot;http://sig.cenlr.org/creation_bdd/fonctions/utilitaires_de_date&quot; class=&quot;wikilink1&quot; title=&quot;creation_bdd:fonctions:utilitaires_de_date&quot;&gt;Quelques fonctions pour travailler avec les dates&lt;/a&gt;&lt;/div&gt;
&lt;/li&gt;
&lt;li class=&quot;level1&quot;&gt;&lt;div class=&quot;li&quot;&gt; &lt;a href=&quot;http://sig.cenlr.org/creation_bdd/fonctions/jour&quot; class=&quot;wikilink2&quot; title=&quot;creation_bdd:fonctions:jour&quot; rel=&quot;nofollow&quot;&gt;Donne le nom du jour (lundi,...,dimanche)&lt;/a&gt;&lt;/div&gt;
&lt;/li&gt;
&lt;li class=&quot;level1&quot;&gt;&lt;div class=&quot;li&quot;&gt; &lt;a href=&quot;http://sig.cenlr.org/creation_bdd/fonctions/no_html_special_char&quot; class=&quot;wikilink1&quot; title=&quot;creation_bdd:fonctions:no_html_special_char&quot;&gt;Remplace les caractères spéciaux html eg. &amp;amp;eacute; par le caractère lisible correspondant (é)&lt;/a&gt;&lt;/div&gt;
&lt;/li&gt;
&lt;li class=&quot;level1&quot;&gt;&lt;div class=&quot;li&quot;&gt; &lt;a href=&quot;http://sig.cenlr.org/creation_bdd/fonctions/suiv_operation_sur_table&quot; class=&quot;wikilink1&quot; title=&quot;creation_bdd:fonctions:suiv_operation_sur_table&quot;&gt;Tracer les opération effectuées sur les données d&amp;#039;une table&lt;/a&gt;&lt;/div&gt;
&lt;/li&gt;
&lt;/ul&gt;

&lt;/div&gt;
&lt;!-- EDIT20 SECTION &quot;Fonctions diverses&quot; [2534-3015] --&gt;
&lt;h3 class=&quot;sectionedit21&quot;&gt;&lt;a name=&quot;fonctions_de_correction_des_geometries&quot; id=&quot;fonctions_de_correction_des_geometries&quot;&gt;Fonctions de correction des géométries&lt;/a&gt;&lt;/h3&gt;
&lt;div class=&quot;level3&quot;&gt;
&lt;ul&gt;
&lt;li class=&quot;level1&quot;&gt;&lt;div class=&quot;li&quot;&gt; &lt;a href=&quot;http://www.sogis1.so.ch/sogis/dl/postgis/cleanGeometry.sql&quot; class=&quot;urlextern&quot; target=&quot;_blank&quot; title=&quot;http://www.sogis1.so.ch/sogis/dl/postgis/cleanGeometry.sql&quot;  rel=&quot;nofollow&quot;&gt;la fonction de correction de géometries&lt;/a&gt;&lt;/div&gt;
&lt;/li&gt;
&lt;/ul&gt;

&lt;/div&gt;
&lt;!-- EDIT21 SECTION &quot;Fonctions de correction des géométries&quot; [3016-3174] --&gt;
&lt;h3 class=&quot;sectionedit22&quot;&gt;&lt;a name=&quot;creation_de_points_avec_distance_et_angles&quot; id=&quot;creation_de_points_avec_distance_et_angles&quot;&gt;Création de points avec distance et angles&lt;/a&gt;&lt;/h3&gt;
&lt;div class=&quot;level3&quot;&gt;
&lt;ul&gt;
&lt;li class=&quot;level1&quot;&gt;&lt;div class=&quot;li&quot;&gt; &lt;a href=&quot;http://georezo.net/forum/viewtopic.php?pid=189417&quot; class=&quot;urlextern&quot; target=&quot;_blank&quot; title=&quot;http://georezo.net/forum/viewtopic.php?pid=189417&quot;  rel=&quot;nofollow&quot;&gt;http://georezo.net/forum/viewtopic.php?pid=189417&lt;/a&gt;&lt;/div&gt;
&lt;/li&gt;
&lt;li class=&quot;level1&quot;&gt;&lt;div class=&quot;li&quot;&gt; &lt;a href=&quot;http://geospatial.nomad-labs.com/2007/02/24/rotation-in-postgis/&quot; class=&quot;urlextern&quot; target=&quot;_blank&quot; title=&quot;http://geospatial.nomad-labs.com/2007/02/24/rotation-in-postgis/&quot;  rel=&quot;nofollow&quot;&gt;http://geospatial.nomad-labs.com/2007/02/24/rotation-in-postgis/&lt;/a&gt;&lt;/div&gt;
&lt;/li&gt;
&lt;/ul&gt;

&lt;/div&gt;
&lt;!-- EDIT22 SECTION &quot;Création de points avec distance et angles&quot; [3175-3351] --&gt;
&lt;h2 class=&quot;sectionedit23&quot;&gt;&lt;a name=&quot;a_developper&quot; id=&quot;a_developper&quot;&gt;A développer&lt;/a&gt;&lt;/h2&gt;
&lt;div class=&quot;level2&quot;&gt;
&lt;ul&gt;
&lt;li class=&quot;level1&quot;&gt;&lt;div class=&quot;li&quot;&gt; &lt;a href=&quot;http://sig.cenlr.org/creation_bdd/fonctions/cenlisteprotectiontaxonanimal&quot; class=&quot;wikilink2&quot; title=&quot;creation_bdd:fonctions:cenlisteprotectiontaxonanimal&quot; rel=&quot;nofollow&quot;&gt;Liste et hiérarchise les protections qui s&amp;#039;appliquent à une espèce&lt;/a&gt;&lt;/div&gt;
&lt;/li&gt;
&lt;li class=&quot;level1&quot;&gt;&lt;div class=&quot;li&quot;&gt; &lt;a href=&quot;http://sig.cenlr.org/creation_bdd/fonctions/cenlisteprotectionhabitat&quot; class=&quot;wikilink2&quot; title=&quot;creation_bdd:fonctions:cenlisteprotectionhabitat&quot; rel=&quot;nofollow&quot;&gt;Liste et hiérarchise les protections qui s&amp;#039;appliquent à un habitat&lt;/a&gt;&lt;/div&gt;
&lt;/li&gt;
&lt;li class=&quot;level1&quot;&gt;&lt;div class=&quot;li&quot;&gt; &lt;a href=&quot;http://sig.cenlr.org/creation_bdd/fonctions/cendiffnodes&quot; class=&quot;wikilink1&quot; title=&quot;creation_bdd:fonctions:cendiffnodes&quot;&gt;Affiches les noeuds non communs entre 2 géométries&lt;/a&gt;&lt;/div&gt;
&lt;/li&gt;
&lt;/ul&gt;

&lt;/div&gt;
&lt;!-- EDIT23 SECTION &quot;A développer&quot; [3352-] --&gt;</description>
        <category>PostgreSQL</category>
        <category>PostGIS</category>
        <category>plpgsql</category>
        <category>plpython</category>
        <category>WebServcies</category>
        <category>elevation</category>
        <category>sh</category>
            <pubDate>Sun, 07 Aug 2011 20:12:13 +0200</pubDate>
        </item>
        <item>
            <title>creation_bdd:modules</title>
            <link>http://sig.cenlr.org/creation_bdd/modules</link>
            <description>
&lt;h2 class=&quot;sectionedit24&quot;&gt;&lt;a name=&quot;les_differents_modules_de_la_base_de_donnees&quot; id=&quot;les_differents_modules_de_la_base_de_donnees&quot;&gt;Les différents modules de la base de données&lt;/a&gt;&lt;/h2&gt;
&lt;div class=&quot;level2&quot;&gt;
&lt;ul&gt;
&lt;li class=&quot;level1&quot;&gt;&lt;div class=&quot;li&quot;&gt; &lt;a href=&quot;http://sig.cenlr.org/creation_bdd/modules/donnees_naturalistes&quot; class=&quot;wikilink1&quot; title=&quot;creation_bdd:modules:donnees_naturalistes&quot;&gt;données naturalistes (observations faune, flore, habitats naturels)&lt;/a&gt;&lt;/div&gt;
&lt;/li&gt;
&lt;li class=&quot;level1&quot;&gt;&lt;div class=&quot;li&quot;&gt; référentiels taxonomiques&lt;/div&gt;
&lt;/li&gt;
&lt;li class=&quot;level1&quot;&gt;&lt;div class=&quot;li&quot;&gt; sites (d&amp;#039;étude par exemple)&lt;/div&gt;
&lt;/li&gt;
&lt;li class=&quot;level1&quot;&gt;&lt;div class=&quot;li&quot;&gt; éléments du paysage&lt;/div&gt;
&lt;/li&gt;
&lt;li class=&quot;level1&quot;&gt;&lt;div class=&quot;li&quot;&gt; personnes, structures et collectivités territoriales&lt;/div&gt;
&lt;/li&gt;
&lt;li class=&quot;level1&quot;&gt;&lt;div class=&quot;li&quot;&gt; périmètres d&amp;#039;inventaires et réglementaires&lt;/div&gt;
&lt;/li&gt;
&lt;li class=&quot;level1&quot;&gt;&lt;div class=&quot;li&quot;&gt; bibliographie et cartes papier&lt;/div&gt;
&lt;/li&gt;
&lt;li class=&quot;level1&quot;&gt;&lt;div class=&quot;li&quot;&gt; informations relatives aux études et métadonnées&lt;/div&gt;
&lt;/li&gt;
&lt;li class=&quot;level1&quot;&gt;&lt;div class=&quot;li&quot;&gt; système de fichier&lt;/div&gt;
&lt;/li&gt;
&lt;li class=&quot;level1&quot;&gt;&lt;div class=&quot;li&quot;&gt; &lt;a href=&quot;http://sig.cenlr.org/creation_bdd/modules/suivi_actions_gestion&quot; class=&quot;wikilink1&quot; title=&quot;creation_bdd:modules:suivi_actions_gestion&quot;&gt;suivi des actions de gestion&lt;/a&gt;&lt;/div&gt;
&lt;/li&gt;
&lt;/ul&gt;

&lt;/div&gt;
</description>
        <category>creation_bdd</category>
            <pubDate>Sat, 03 Jul 2010 10:56:38 +0200</pubDate>
        </item>
        <item>
            <title>creation_bdd:requetes</title>
            <link>http://sig.cenlr.org/creation_bdd/requetes</link>
            <description>&lt;div class=&quot;tags&quot;&gt;&lt;span&gt;
	&lt;a href=&quot;http://sig.cenlr.org/tag/requetes?do=showtag&amp;amp;tag=requ%C3%AAtes&quot; class=&quot;wikilink1&quot; title=&quot;tag:requetes&quot; rel=&quot;tag&quot;&gt;requêtes&lt;/a&gt;,
	&lt;a href=&quot;http://sig.cenlr.org/tag/sql?do=showtag&amp;amp;tag=SQL&quot; class=&quot;wikilink1&quot; title=&quot;tag:sql&quot; rel=&quot;tag&quot;&gt;SQL&lt;/a&gt;,
	&lt;a href=&quot;http://sig.cenlr.org/tag/recursivite?do=showtag&amp;amp;tag=r%C3%A9cursivit%C3%A9&quot; class=&quot;wikilink1&quot; title=&quot;tag:recursivite&quot; rel=&quot;tag&quot;&gt;récursivité&lt;/a&gt;
&lt;/span&gt;&lt;/div&gt;

&lt;h1 class=&quot;sectionedit25&quot;&gt;&lt;a name=&quot;exemples_de_requetes&quot; id=&quot;exemples_de_requetes&quot;&gt;Exemples de requêtes&lt;/a&gt;&lt;/h1&gt;
&lt;div class=&quot;level1&quot;&gt;

&lt;/div&gt;
&lt;!-- EDIT25 SECTION &quot;Exemples de requêtes&quot; [38-73] --&gt;
&lt;h2 class=&quot;sectionedit26&quot;&gt;&lt;a name=&quot;recursivite&quot; id=&quot;recursivite&quot;&gt;recursivité&lt;/a&gt;&lt;/h2&gt;
&lt;div class=&quot;level2&quot;&gt;

&lt;p&gt;
&lt;strong&gt; Affiches toutes les branches de l&amp;#039;arbre taxonomique des lépidoptères et des odonates &lt;/strong&gt;

&lt;/p&gt;
&lt;pre class=&quot;code sql&quot;&gt;&lt;span class=&quot;kw1&quot;&gt;WITH&lt;/span&gt; RECURSIVE arbre_taxonomique &lt;span class=&quot;kw1&quot;&gt;AS&lt;/span&gt;
&lt;span class=&quot;br0&quot;&gt;&amp;#40;&lt;/span&gt;&lt;span class=&quot;kw1&quot;&gt;SELECT&lt;/span&gt; cd_nom&lt;span class=&quot;sy0&quot;&gt;,&lt;/span&gt; lb_nom&lt;span class=&quot;sy0&quot;&gt;,&lt;/span&gt; cd_taxsup&lt;span class=&quot;sy0&quot;&gt;,&lt;/span&gt; lb_nom::text &lt;span class=&quot;kw1&quot;&gt;AS&lt;/span&gt; lb_nom_fullname
&lt;span class=&quot;kw1&quot;&gt;FROM&lt;/span&gt; inpn&lt;span class=&quot;sy0&quot;&gt;.&lt;/span&gt;taxref
&lt;span class=&quot;kw1&quot;&gt;WHERE&lt;/span&gt; cd_nom &lt;span class=&quot;kw1&quot;&gt;IN&lt;/span&gt; &lt;span class=&quot;br0&quot;&gt;&amp;#40;&lt;/span&gt;&lt;span class=&quot;st0&quot;&gt;'185356'&lt;/span&gt;&lt;span class=&quot;sy0&quot;&gt;,&lt;/span&gt;&lt;span class=&quot;st0&quot;&gt;'185214'&lt;/span&gt;&lt;span class=&quot;br0&quot;&gt;&amp;#41;&lt;/span&gt; &lt;span class=&quot;kw1&quot;&gt;OR&lt;/span&gt; cd_taxsup &lt;span class=&quot;kw1&quot;&gt;IN&lt;/span&gt; &lt;span class=&quot;br0&quot;&gt;&amp;#40;&lt;/span&gt;&lt;span class=&quot;st0&quot;&gt;'185356'&lt;/span&gt;&lt;span class=&quot;sy0&quot;&gt;,&lt;/span&gt;&lt;span class=&quot;st0&quot;&gt;'185214'&lt;/span&gt;&lt;span class=&quot;br0&quot;&gt;&amp;#41;&lt;/span&gt;
&lt;span class=&quot;kw1&quot;&gt;UNION&lt;/span&gt; &lt;span class=&quot;kw1&quot;&gt;ALL&lt;/span&gt;
&lt;span class=&quot;kw1&quot;&gt;SELECT&lt;/span&gt; enfant&lt;span class=&quot;sy0&quot;&gt;.&lt;/span&gt;cd_nom&lt;span class=&quot;sy0&quot;&gt;,&lt;/span&gt;enfant&lt;span class=&quot;sy0&quot;&gt;.&lt;/span&gt;lb_nom&lt;span class=&quot;sy0&quot;&gt;,&lt;/span&gt;
	enfant&lt;span class=&quot;sy0&quot;&gt;.&lt;/span&gt;cd_taxsup&lt;span class=&quot;sy0&quot;&gt;,&lt;/span&gt;
	parent&lt;span class=&quot;sy0&quot;&gt;.&lt;/span&gt;lb_nom_fullname&lt;span class=&quot;sy0&quot;&gt;||&lt;/span&gt;&lt;span class=&quot;st0&quot;&gt;'-&amp;gt;'&lt;/span&gt;&lt;span class=&quot;sy0&quot;&gt;||&lt;/span&gt;enfant&lt;span class=&quot;sy0&quot;&gt;.&lt;/span&gt;lb_nom &lt;span class=&quot;kw1&quot;&gt;AS&lt;/span&gt; lb_nom_fullname
&lt;span class=&quot;kw1&quot;&gt;FROM&lt;/span&gt; inpn&lt;span class=&quot;sy0&quot;&gt;.&lt;/span&gt;taxref &lt;span class=&quot;kw1&quot;&gt;AS&lt;/span&gt; enfant
	&lt;span class=&quot;kw1&quot;&gt;INNER&lt;/span&gt; &lt;span class=&quot;kw1&quot;&gt;JOIN&lt;/span&gt; arbre_taxonomique &lt;span class=&quot;kw1&quot;&gt;AS&lt;/span&gt; parent
	&lt;span class=&quot;kw1&quot;&gt;ON&lt;/span&gt; &lt;span class=&quot;br0&quot;&gt;&amp;#40;&lt;/span&gt;enfant&lt;span class=&quot;sy0&quot;&gt;.&lt;/span&gt;cd_taxsup &lt;span class=&quot;sy0&quot;&gt;=&lt;/span&gt; parent&lt;span class=&quot;sy0&quot;&gt;.&lt;/span&gt;cd_nom&lt;span class=&quot;br0&quot;&gt;&amp;#41;&lt;/span&gt;
&lt;span class=&quot;br0&quot;&gt;&amp;#41;&lt;/span&gt;
&lt;span class=&quot;kw1&quot;&gt;SELECT&lt;/span&gt; &lt;span class=&quot;sy0&quot;&gt;*&lt;/span&gt;
&lt;span class=&quot;kw1&quot;&gt;FROM&lt;/span&gt; arbre_taxonomique
&lt;span class=&quot;kw1&quot;&gt;ORDER&lt;/span&gt; &lt;span class=&quot;kw1&quot;&gt;BY&lt;/span&gt; lb_nom_fullname;&lt;/pre&gt;

&lt;/div&gt;
&lt;!-- EDIT26 SECTION &quot;recursivité&quot; [74-] --&gt;</description>
        <category>requêtes</category>
        <category>SQL</category>
        <category>récursivité</category>
            <pubDate>Thu, 11 Aug 2011 12:56:06 +0200</pubDate>
        </item>
    </channel>
</rss>
