add visvalingam.sql

This commit is contained in:
Motiejus Jakštys
2020-05-25 15:03:00 +03:00
parent 93e5cca05d
commit ba66799829
3 changed files with 16 additions and 2 deletions

View File

@@ -0,0 +1,14 @@
DROP TABLE IF EXISTS visvalingam_:tolerance;
CREATE TABLE visvalingam_:tolerance (
fid serial NOT NULL,
geom geometry(MULTILINESTRING, 3346)
);
INSERT INTO visvalingam_:tolerance (geom) (
SELECT
ST_SimplifyVW (ST_LineMerge (ST_Union (geom)),
:tolerance * :tolerance) AS geoms
FROM
zeimena);