Changes between Version 41 and Version 42 of CookBook join Temperature_CCM


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

--

Legend:

Unmodified
Added
Removed
Modified
  • CookBook join Temperature_CCM

    v41 v42  
    1717 
    1818CREATE TABLE temperature.tmp_ccm as( 
    19 SELECT  distinct on(gid) gid, gridid, winter, summer, min(distance) as distance, the_geom FROM ( 
    20 SELECT gridid, winter, summer,gid, CAST(distance(c.the_geom,t.the_geom) as decimal(15,1)) as distance, t.the_geom FROM temperature.tmp AS t 
     19SELECT  distinct on(gid) gid, gridid, sub.winter, sub.summer, min(distance) as distance, the_geom FROM ( 
     20SELECT gridid,t.winter, t.summer,gid, CAST(distance(c.the_geom,t.the_geom) as decimal(15,1)) as distance, t.the_geom FROM temperature.tmp AS t 
    2121INNER JOIN ccm21.riversegments c ON ST_DWithin(c.the_geom,t.the_geom,70000) 
    2222) AS sub