stud/II/Referatas/st-simplify.sql
Motiejus Jakštys d932c7c7fc add gpkg samples
2020-05-22 19:21:47 +03:00

15 lines
311 B
SQL

DROP TABLE IF EXISTS douglas_:tolerance;
CREATE TABLE douglas_:tolerance (
fid serial NOT NULL,
geom geometry(MULTILINESTRING, 3346)
);
INSERT INTO douglas_:tolerance (geom) (
SELECT
ST_Simplify (ST_LineMerge (ST_Union (geom)),
:tolerance) AS geoms
FROM
zeimena);