stud/II/Referatas/douglas.sql

15 lines
266 B
MySQL
Raw Normal View History

2020-05-26 12:11:41 +03:00
DROP TABLE IF EXISTS :tbl;
2020-05-22 10:19:17 +03:00
2020-05-26 12:11:41 +03:00
CREATE TABLE :tbl (
2020-05-22 10:19:17 +03:00
fid serial NOT NULL,
geom geometry(MULTILINESTRING, 3346)
);
2020-05-26 12:11:41 +03:00
INSERT INTO :tbl (geom) (
2020-05-22 10:19:17 +03:00
SELECT
ST_Simplify (ST_LineMerge (ST_Union (geom)),
:tolerance) AS geoms
FROM
2020-05-26 12:11:41 +03:00
:src);
2020-05-22 10:19:17 +03:00