Changes between Version 4 and Version 5 of Cookbook CCM21_France
- Timestamp:
- May 4, 2010 4:24:53 PM (15 years ago)
Legend:
- Unmodified
- Added
- Removed
- Modified
-
Cookbook CCM21_France
v4 v5 1 1 this is ticket: #49 2 2 We need to only select a geographical region from the ccm plus all downstream segments within this region. 3 Below we use the ST_Contains function 3 4 {{{ 4 5 /*boolean ST_Contains(geometry geomA, geometry geomB); … … 8 9 9 10 11 -- first trial.. 12 /* 10 13 SELECT count (*) from ccm21.riversegments r 11 14 join (SELECT ST_Union(f.the_geom) as singlegeom 12 15 FROM france.departement As f) as sub 13 16 ON ST_Contains(sub.singlegeom,r.the_geom); 17 */ 18 -- we try to get the vector of seaoutlets that are within the geographical area 19 select * from ccm21.riversegments r where wso_id in ( 20 select distinct on (wso_id) wso_id from ccm21.riversegments r 21 join (SELECT ST_Union(f.the_geom) as singlegeom 22 FROM france.departement As f) as sub 23 ON ST_Contains(sub.singlegeom,r.the_geom)); --170703 lines 14 24 }}}