Changes between Version 18 and Version 19 of CookBook join BDMAP_CCM


Ignore:
Timestamp:
Feb 9, 2010 9:31:51 PM (15 years ago)
Author:
cedric
Comment:

--

Legend:

Unmodified
Added
Removed
Modified
  • CookBook join BDMAP_CCM

    v18 v19  
    107107COMMENT ON TABLE stationsp2 is 'table BDMAP extraite janvier 2010 et mise à jour avec les coordonnées reprojetées par Hélène' 
    108108}}} 
    109   *  
     109  * ah, and now if you want to display the new stations using Qgis, adding a further column saying whether or not the column X is filled is usefull 
     110{{{ 
     111ALTER TABLE stationsp2 ADD COLUMN newstation boolean; 
     112UPDATE stationsp2 set newstation=TRUE where x is null; 
     113UPDATE stationsp2 set newstation=FALSE where x is not null; 
     114}}} 
     115  * now some results ... 
     116{{{ 
     117select count(*) from stationsp2 --10203 
     118select count(*) from bdmap.station --10203  
     119select count(*) from stationsp --8741 
     120select * from stationsp2 limit 1000 -- this is if you want to have a look at the data 
     121}}} 
     122  * those are the wrong stations  [screenshot:5] 
     123{{{ 
     124 
     125select * from stationsp2 where st_codecsp IN ('03890162','062B0086','01620140','03270062','03270061','03270063','03270064','062160126','06420055','06070241') 
     126}}} 
    110127  '' note '' 
    111   * the result is displayed there : [screenshot:4], [screenshot:5] 
     128  * the result is displayed there : [screenshot:4], 
    112129  * this work corresponds to ticket : #22