Changes between Version 44 and Version 45 of Help for Celine


Ignore:
Timestamp:
Jan 5, 2012 10:03:48 AM (13 years ago)
Author:
celine
Comment:

--

Legend:

Unmodified
Added
Removed
Modified
  • Help for Celine

    v44 v45  
    4444SRID ["srid"] 
    4545{{{ 
     46#!sql 
    4647select * from spatial_ref_sys where srtext LIKE '%NTF%'; 
    4748}}} 
     
    5152 
    5253{{{ 
     54#!sql 
    5355--- Nombre de colonnes dans une table 
    5456select relnatts from pg_class where relname='stationsp2' 
     
    8385 * Intégration d'une colonne géométrique 
    8486{{{ 
     87#!sql 
    8588SELECT AddGeometryColumn ( 'rht','attributs_rht_fev_2011_vs2','the_geom',3035,'MULTILINESTRING',2); 
    8689update rht.attributs_rht_fev_2011_vs2 set the_geom=rht.the_geom from rht.rht 
     
    9093 * Add a primary key 
    9194{{{ 
     95#!sql 
    9296ALTER TABLE ccm21.riversegments ADD CONSTRAINT riversegments_pkey PRIMARY KEY (gid); 
    9397}}} 
     
    9599 * Drop a primary key 
    96100{{{ 
     101#!sql 
    97102ALTER TABLE ccm21.riversegments DROP CONSTRAINT riversegments_pkey; 
    98103}}} 
    99104 * Change the srid into 3035 (ETRS1989 LAEA) 
    100105{{{ 
     106#!sql 
    101107ALTER TABLE uga2010.uga DROP CONSTRAINT enforce_srid_the_geom; 
    102108UPDATE uga2010.uga SET the_geom = ST_transform(the_geom, 3035);  
     
    106112 * Create view of a query 
    107113{{{ 
     114#!sql 
    108115CREATE VIEW results AS select * from ccm21.riversegments r inner join ccm21.resultmodel re on re.res_wso1_id=r.wso1_id 
    109116}}} 
     
    113120 
    114121{{{ 
     122#!sql 
    115123DROP INDEX IF EXISTS ccm21.indexriversegments_wso1_id; 
    116124CREATE INDEX indexriversegments_wso1_id 
     
    157165Permet connaitre id_drain qui n'a pas d'attribut 
    158166{{{ 
     167#!sql 
    159168  select * from rht.rht where id_drain not in (select id_drain from rht.rht right outer join rht.attributs_rht_fev_2011 on id_drain=id_drainattr) 
    160169}}}