stud/contours/chaikin.sql

21 lines
364 B
MySQL
Raw Normal View History

2020-12-11 10:44:26 +02:00
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);