stud/II/Referatas/visvalingam.sql
2020-06-18 09:37:54 +03:00

15 lines
290 B
SQL

DROP TABLE IF EXISTS :tbl;
CREATE TABLE :tbl (
fid serial NOT NULL,
geom geometry(MULTILINESTRING, 3346)
);
INSERT INTO :tbl (geom) (
SELECT
ST_Multi (ST_SimplifyVW (ST_LineMerge (ST_Union (geom)),
:param1 * :param1)) AS geoms
FROM
:src);