14 | | Alter table rhe set schema rht; |
15 | | ALTER TABLE rht.rhe DROP CONSTRAINT enforce_srid_the_geom; |
16 | | UPDATE rht.rhe SET the_geom = ST_transform(the_geom, 3035); |
17 | | ALTER TABLE rht.rhe ADD CONSTRAINT enforce_srid_the_geom CHECK (st_srid(the_geom) = 3035); |
| 14 | Create schema rhe; |
| 15 | Alter table rhe set schema rhe; |
| 16 | ALTER TABLE rhe.rhe DROP CONSTRAINT enforce_srid_the_geom; |
| 17 | UPDATE rhe.rhe SET the_geom = ST_transform(the_geom, 3035); |
| 18 | ALTER TABLE rhe.rhe ADD CONSTRAINT enforce_srid_the_geom CHECK (st_srid(the_geom) = 3035); |
| 19 | |
| 20 | DROP INDEX IF EXISTS rhe.indexrhe; |
| 21 | CREATE INDEX indexrhe |
| 22 | ON rhe.rhe |
| 23 | USING btree (id_drainv2); |
| 24 | |
| 25 | select count(*) from rhe.rhe ---65740 lines |