motiejus/wm

Wang–Müller line generalization algorithm in PostGIS
git clone https://git.jakstys.lt/motiejus/wm.git
Log | Tree | Refs | README | LICENSE

commit 868b3ada79c9b8e91fbf0c41e34d80d5deff6fa3 (tree)
parent 4a70b297cf5a8bd549c900d31d90abf8b7aca546
Author: Motiejus Jakštys <motiejus@jakstys.lt>
Date:   Wed, 19 May 2021 22:57:49 +0300

smaller default half-circle size

Diffstat:
MREADME.md | 10+++++-----
Mtest-rivers.sql | 2+-
2 files changed, 6 insertions(+), 6 deletions(-)

diff --git a/README.md b/README.md @@ -10,7 +10,7 @@ Structure There will be 2 deliverables from this folder: - `wm.sql`, the implementation. -- paper `mj-msc-full.pdf`, a MSc thesis, explaining the whole thing. +- paper `mj-msc-full.pdf`, a MSc thesis, explaining it. It contains a few supporting files, notably: @@ -53,13 +53,13 @@ Building the paper (pdf) ------------------------ ``` -$ make -j$(nproc) mj-msc-full.pdf +# make -j$(nproc) mj-msc-full.pdf ``` `mj-msc.tex` results in `mj-msc-full.pdf`, which will be at some point published. It needs quite a few dependencies, including a functioning Docker -environment, postgresql client, geopandas, and a pretty complete LaTeX -installation. +environment, postgresql client, geopandas, pygments, osm2pgsql, poppler, and a +"quite extensive" LaTeX installation. This was tested on Debian 11. Contributing ------------ @@ -77,4 +77,4 @@ accept broader contributions, TODO: License ------- -Same as QGIS and PostGIS: GPL 2.0 or later. +GPL 2.0 or later, same as PostGIS. diff --git a/test-rivers.sql b/test-rivers.sql @@ -109,4 +109,4 @@ end $$ language plpgsql; delete from wm_debug where name in (select distinct name from wm_rivers); delete from wm_demo where name in (select distinct name from wm_rivers); -insert into wm_demo (name, way) select name, ST_SimplifyWM(way, 2000, name) from wm_rivers; +insert into wm_demo (name, way) select name, ST_SimplifyWM(way, 37.5, name) from wm_rivers;