From 93e5cca05dbc40a5e26718ace528a8394535cf38 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Motiejus=20Jak=C5=A1tys?= Date: Mon, 25 May 2020 14:52:38 +0300 Subject: [PATCH] more comparisons --- II/Referatas/Makefile | 5 ++--- II/Referatas/mj-referatas.tex | 34 ++++++++++++++++++++++++++-------- 2 files changed, 28 insertions(+), 11 deletions(-) diff --git a/II/Referatas/Makefile b/II/Referatas/Makefile index 7e69257..c2216df 100644 --- a/II/Referatas/Makefile +++ b/II/Referatas/Makefile @@ -1,5 +1,4 @@ -TOLERANCES = 0 500 1000 - +TOLERANCES = 0 500 1000 2000 4000 GEN = $(addsuffix .pdf,zeimena \ $(addprefix douglas-,$(TOLERANCES)) \ $(addprefix visvalingam-,$(TOLERANCES))) @@ -25,7 +24,7 @@ $(foreach t,$(TOLERANCES),$(eval $(call algo2img,visvalingam,$(t)))) db/.faux_ready: zeimena.gpkg managedb -./managedb stop; rm -fr db ./managedb init - ogr2ogr -f PostgreSQL "PG:host=127.0.0.1 user=osm dbname=osm" zeimena.gpkg + ogr2ogr -f PostgreSQL "PG:host=127.0.0.1 user=osm dbname=osm" $< touch $@ REF = $(shell git describe --tags) diff --git a/II/Referatas/mj-referatas.tex b/II/Referatas/mj-referatas.tex index 0b95dba..776cd15 100644 --- a/II/Referatas/mj-referatas.tex +++ b/II/Referatas/mj-referatas.tex @@ -24,6 +24,7 @@ \iffalse https://bost.ocks.org/mike/simplify/ +http://bl.ocks.org/msbarry/9152218 small scale: 1:XXXXXX large scale: 1:XXX @@ -136,15 +137,32 @@ As one can observe in figure~\ref{fig:douglas-300}, the Douglas \& Peucker with 300m tolerance preserves most of the shape, and 1000m (figure~\ref{fig:douglas-1000}) is still recognizeable. -\renewcommand{\tabularxcolumn}[1]{>{\small}m{#1}} -\begin{tabularx}{\textwidth}{ p{1.5cm} | X | X } - Tolerance & - Douglas \& Peucker & - Visvalingam-Whyatt \\ \hline +\renewcommand{\tabularxcolumn}[1]{>{\center\small}m{#1}} +\begin{tabularx}{\textwidth}{ p{1.5cm} | X | X | } + Tolerance & + Douglas \& Peucker & + Visvalingam-Whyatt \tabularnewline \hline - 0 & - \includegraphics[width=\linewidth]{douglas-0} & - foo \\ \hline + \center 0 & + \multicolumn{2}{ | l | }{ + \includegraphics[width=.84\columnwidth]{douglas-0} + } \tabularnewline \hline + + 500 & + \includegraphics[width=\linewidth]{douglas-500} & + \includegraphics[width=\linewidth]{visvalingam-500} \tabularnewline \hline + + 1000 & + \includegraphics[width=.5\linewidth]{douglas-1000} & + \includegraphics[width=.5\linewidth]{visvalingam-1000} \tabularnewline \hline + + 2000 & + \includegraphics[width=.25\linewidth]{douglas-2000} & + \includegraphics[width=.25\linewidth]{visvalingam-4000} \tabularnewline \hline + + 4000 & + \includegraphics[width=.125\linewidth]{douglas-4000} & + \includegraphics[width=.125\linewidth]{visvalingam-4000} \tabularnewline \hline \end{tabularx} \begin{figure}