stud/contours/chaikin.sql
Motiejus Jakštys cf7b80fed3 contours
2020-12-11 10:44:26 +02:00

21 lines
364 B
SQL

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);