Changes between Version 9 and Version 10 of CLC upstream


Ignore:
Timestamp:
Jul 1, 2010 12:02:28 PM (15 years ago)
Author:
cedric
Comment:

--

Legend:

Unmodified
Added
Removed
Modified
  • CLC upstream

    v9 v10  
    4646 
    4747[[Image(source:data/Docs/trac/clc/percentage_art_.png,600px)]] 
     48 
     49{{{ 
     50#!sql 
     51--the request with france had troubles in getting some of the riversegments, the short ones that were not fully 
     52-- france and were not part of a larger basin (the request was done on wso_id) 
     53-- here I'm searching for those missing gid 
     54select gid from ccm21.riversegments where wso_id in (select wso_id from france.wso where area='France') 
     55except select gid from ccm21.riversegments where wso_id in ( 
     56select distinct on (wso_id)  wso_id from ccm21.riversegments r 
     57join (SELECT ST_Union(f.the_geom) as singlegeom 
     58    FROM france.departement As f) as sub 
     59ON ST_Contains(sub.singlegeom,r.the_geom)); 
     60}}}