This commit is contained in:
Motiejus Jakštys
2020-12-11 10:44:26 +02:00
parent 5c3d8b465b
commit cf7b80fed3
5 changed files with 132 additions and 0 deletions

20
contours/chaikin.sql Normal file
View File

@@ -0,0 +1,20 @@
DROP TABLE IF EXISTS :tbl;
CREATE TABLE :tbl (
fid serial NOT NULL,
z DOUBLE PRECISION,
geom geometry(MULTILINESTRING, 3346)
);
INSERT INTO :tbl (
SELECT
fid,
z,
ST_Multi(
ST_ChaikinSmoothing (
ST_SimplifyVW(geom, 50),
5
)
) AS geoms
FROM
:src);