Changes between Version 13 and Version 14 of import layers postgis
- Timestamp:
- Jun 22, 2018 8:57:09 PM (7 years ago)
Legend:
- Unmodified
- Added
- Removed
- Modified
-
import layers postgis
v13 v14 41 41 }}} 42 42 43 in fact the system of projection indicated on the inspire layers is wrong it is 25830 44 http://www.mapama.gob.es/es/cartografia-y-sig/ide/directorio_datos_servicios/caracteristicas_wms.aspx 45 {{{#!sql 46 select UpdateGeometrySRID('spain','a_cuencas_rios_atl_norte', 'geom', 25830 ); 47 select UpdateGeometrySRID('spain','a_rios_v2', 'geom', 25830 ); 48 }}} 49 43 50 44 51 Now we need to select only the Oria and neighbouring rivers for our trial … … 62 69 Creating a table corresponding to ORIA 63 70 71 Table of basins 72 64 73 {{{#!sql 65 drop table if exists spain.oria_ test;66 create table spain.oria_ testas select * from a_cuencas_rios_atl_norte where pfafrio like '1003714%';--42274 drop table if exists spain.oria_cuenca; 75 create table spain.oria_cuenca as select * from a_cuencas_rios_atl_norte where pfafrio like '1003714%';--422 67 76 68 CREATE INDEX oria_ test_geom_idx69 ON oria_ test77 CREATE INDEX oria_cuenca_geom_idx 78 ON oria_cuenca 70 79 USING gist 71 80 (geom); 72 81 }}} 73 82 83 Table of rivers 74 84 75 in fact the system of projection indicated on the inspire layers is wrong it is 2583076 http://www.mapama.gob.es/es/cartografia-y-sig/ide/directorio_datos_servicios/caracteristicas_wms.aspx77 85 {{{#!sql 78 select UpdateGeometrySRID('spain','oria_test', 'geom', 25830 ); 86 drop table if exists spain.oria_a_rios_v2; 87 create table spain.oria_a_rios_v2 as select * from a_rios_v2 where pfafrio like '1003714%';--422 88 89 CREATE INDEX oria_a_rios_v2_geom_idx 90 ON oria_a_rios_v2 91 USING gist 92 (geom); 79 93 }}} 94 95 [[Image(source:eda/data/Docs/trac/oria.png,200px)]] 80 96 81 97