Changes between Version 16 and Version 17 of CookBook join ROE_CCM


Ignore:
Timestamp:
Mar 16, 2010 10:32:23 AM (15 years ago)
Author:
cedric
Comment:

--

Legend:

Unmodified
Added
Removed
Modified
  • CookBook join ROE_CCM

    v16 v17  
    1919== We have to reproject our data == 
    2020The constraint CONSTRAINT enforce_srid_ref_position_locale CHECK (srid(ref_position_locale) = 27572) 
    21 will make it impossible to change the srid from the roe 
     21will make it impossible to change the srid from the roe (is that right ?) 
    2222We will create a new column a new constraint and fill this column with reprojected data 
    2323{{{ 
     
    2525-- this function also creates constraint « enforce_srid_ref_position_etrs89  
    2626select SRID (ref_position_locale) FROM geobs.obstacle_referentiel; -- all lines 27572 (Lambert II) 
    27 SELECT ST_Transform(ref_position_locale,3035) FROM geobs.obstacle_referentiel; 
     27update geobs.obstacle_referentiel set ref_position_etrs89 =ST_Transform(ref_position_locale,3035); 
    2828}}} 
    2929