Changes between Version 93 and Version 94 of CookBook join ROE_CCM


Ignore:
Timestamp:
May 26, 2010 2:33:56 PM (15 years ago)
Author:
cedric
Comment:

--

Legend:

Unmodified
Added
Removed
Modified
  • CookBook join ROE_CCM

    v93 v94  
    175175The final script is below 
    176176{{{ 
     177#!sql 
    177178ALTER TABLE geobs2010.obstacle_referentiel ADD COLUMN goodproj boolean; 
    178179UPDATE geobs2010.obstacle_referentiel set goodproj=FALSE ; 
     
    182183We now have to use, and can display the dams left out in qgis 
    183184{{{ 
     185#!sql 
    184186select * from geobs2010.obstacle_referentiel where goodproj=TRUE 
    185187}}} 
     
    189191We create a table of regions 
    190192{{{ 
     193#!sql 
    191194DROP TABLE if exists france.region; 
    192195CREATE TABLE france.region as( 
     
    200203Calcul du pourcentage de barrages projetés par région. 
    201204{{{ 
     205#!sql 
    202206DROP TABLE if exists geobs2010.pourcentageprojette; 
    203207CREATE TABLE geobs2010.pourcentageprojette AS( 
     
    229233the table is used in the loaddb method of BaseEdaCCMriversegmentsROE 
    230234{{{ 
     235#!sql 
    231236SELECT sum(height) AS c_height,sum(score) AS c_score,sum(nbdams) AS nbdams,r.gid AS gid  
    232237FROM geobs2010.roe_ccm_300 j RIGHT JOIN ccm21.riversegments r