2020-05-26 12:11:41 +03:00
|
|
|
DROP TABLE IF EXISTS :tbl;
|
2020-05-25 15:03:00 +03:00
|
|
|
|
2020-05-26 12:11:41 +03:00
|
|
|
CREATE TABLE :tbl (
|
2020-05-25 15:03:00 +03:00
|
|
|
fid serial NOT NULL,
|
|
|
|
geom geometry(MULTILINESTRING, 3346)
|
|
|
|
);
|
|
|
|
|
2020-05-26 12:11:41 +03:00
|
|
|
INSERT INTO :tbl (geom) (
|
2020-05-25 15:03:00 +03:00
|
|
|
SELECT
|
|
|
|
ST_SimplifyVW (ST_LineMerge (ST_Union (geom)),
|
|
|
|
:tolerance * :tolerance) AS geoms
|
|
|
|
FROM
|
2020-05-26 12:11:41 +03:00
|
|
|
:src);
|
2020-05-25 15:03:00 +03:00
|
|
|
|