stud/II/Referatas/visvalingam.sql

15 lines
290 B
MySQL
Raw Normal View History

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
2020-05-26 12:28:32 +03:00
ST_Multi (ST_SimplifyVW (ST_LineMerge (ST_Union (geom)),
2020-06-18 09:37:54 +03:00
:param1 * :param1)) AS geoms
2020-05-25 15:03:00 +03:00
FROM
2020-05-26 12:11:41 +03:00
:src);
2020-05-25 15:03:00 +03:00