Changes between Version 13 and Version 14 of import layers postgis


Ignore:
Timestamp:
Jun 22, 2018 8:57:09 PM (7 years ago)
Author:
cedric
Comment:

--

Legend:

Unmodified
Added
Removed
Modified
  • import layers postgis

    v13 v14  
    4141}}} 
    4242 
     43in fact the system of projection indicated on the inspire layers is wrong it is 25830 
     44http://www.mapama.gob.es/es/cartografia-y-sig/ide/directorio_datos_servicios/caracteristicas_wms.aspx 
     45{{{#!sql 
     46select UpdateGeometrySRID('spain','a_cuencas_rios_atl_norte', 'geom', 25830 ); 
     47select UpdateGeometrySRID('spain','a_rios_v2', 'geom', 25830 ); 
     48}}} 
     49 
    4350 
    4451Now we need to select only the Oria and neighbouring rivers for our trial 
     
    6269Creating a table corresponding to ORIA 
    6370 
     71Table of basins 
     72 
    6473{{{#!sql 
    65 drop table if exists spain.oria_test; 
    66 create table spain.oria_test as select * from a_cuencas_rios_atl_norte where pfafrio like '1003714%';--422 
     74drop table if exists spain.oria_cuenca; 
     75create table spain.oria_cuenca as select * from a_cuencas_rios_atl_norte where pfafrio like '1003714%';--422 
    6776 
    68 CREATE INDEX oria_test_geom_idx 
    69   ON oria_test 
     77CREATE INDEX oria_cuenca_geom_idx 
     78  ON oria_cuenca 
    7079  USING gist 
    7180  (geom); 
    7281}}} 
    7382 
     83Table of rivers 
    7484 
    75 in fact the system of projection indicated on the inspire layers is wrong it is 25830 
    76 http://www.mapama.gob.es/es/cartografia-y-sig/ide/directorio_datos_servicios/caracteristicas_wms.aspx 
    7785{{{#!sql 
    78 select UpdateGeometrySRID('spain','oria_test', 'geom', 25830 ); 
     86drop table if exists spain.oria_a_rios_v2; 
     87create table spain.oria_a_rios_v2 as select * from a_rios_v2 where pfafrio like '1003714%';--422 
     88 
     89CREATE INDEX oria_a_rios_v2_geom_idx 
     90  ON oria_a_rios_v2 
     91  USING gist 
     92  (geom); 
    7993}}} 
     94 
     95[[Image(source:eda/data/Docs/trac/oria.png,200px)]] 
    8096 
    8197