| 117 | -- joining operations and stations |
| 118 | drop table if exists oria.operation_station; |
| 119 | create table oria.operation_station as ( |
| 120 | select * from oria.estaciones_st join oria.operation_op on op_st_id=st_id |
| 121 | where st_id in (select st_id from oria.oria_ccm_500)); |
| 122 | alter table oria.operation_station add CONSTRAINT enforce_dims_the_geom CHECK (ndims(the_geom) = 2); |
| 123 | alter table oria.operation_station add CONSTRAINT enforce_geotype_the_geom CHECK (geometrytype(the_geom) = 'POINT'::text OR the_geom IS NULL); |
| 124 | alter table oria.operation_station add CONSTRAINT enforce_srid_the_geom CHECK (srid(the_geom) = 3035); |
| 125 | |