Changes between Initial Version and Version 1 of CLC upstream


Ignore:
Timestamp:
Jun 15, 2010 5:07:50 PM (15 years ago)
Author:
cedric
Comment:

--

Legend:

Unmodified
Added
Removed
Modified
  • CLC upstream

    v1 v1  
     1Trial on the Vilaine 
     2{{{ 
     3#!sql 
     4select sum(catchment_area) as up_catchment_area, 
     5sum(artificial_surfaces_11_13) as up_artificial_surfaces_11_13, 
     6sum(artificial_vegetated_14) as up_artificial_vegetated_14, 
     7sum(arable_land_21) as up_arable_land_21, 
     8sum(permanent_crops_22) as up_permanent_crops_22, 
     9sum(pastures_23) as up_pastures_23, 
     10sum(heterogeneous_agricultural_24) as up_heterogeneous_agricultural_24, 
     11sum(forest_31) as up_forest_31, 
     12sum(natural_32_33) as up_natural_32_33, 
     13sum(wetlands_4) as up_wetland_4, 
     14sum(inland_waterbodies_51) as up_inland_waterbodies_51, 
     15sum(marine_water_52) as up_marine_water_52 
     16from clc.surf_area_final 
     17where  "gid" IN (select ccm21.upstream_segments(272506)) 
     18}}} 
     19to gain 80 % speed 
     20{{{ 
     21CREATE INDEX index_clc_surf_area_final 
     22  ON clc.surf_area_final 
     23  USING btree 
     24  (gid); 
     25}}}