Changes between Version 22 and Version 23 of Distance source


Ignore:
Timestamp:
May 25, 2012 1:53:11 PM (13 years ago)
Author:
celine
Comment:

--

Legend:

Unmodified
Added
Removed
Modified
  • Distance source

    v22 v23  
    33 
    44{{{ 
     5#!sql 
    56alter table ccm21.riversegments add column distance_source numeric; 
    67}}} 
     
    1415In the ccm we find the cum_length which is the cumulated length of upstream riversegments but not the distance to the farthest source 
    1516{{{ 
     17#!sql 
    1618select round(max(cum_len_sea+shape_leng) -(select cum_len_sea from ccm21.riversegments where gid =234706))  
    1719as dist_source from ccm21.riversegments where gid in (select ccm21.upstream_segments(234706)); 
     
    3941Avec cette requête :--> le gid n'est pas dans la liste[[BR]] 
    4042{{{ 
     43#!sql 
    4144select distinct on (rs.gid) rs.gid  from ccm21.riversegments rs  
    4245inner JOIN ccm21.riversegments rup on rup.tonode=rs.fromnode