more explanations

This commit is contained in:
Motiejus Jakštys 2020-05-25 18:02:48 +03:00
parent 8cf79b4224
commit 39bceb09aa

View File

@ -18,7 +18,7 @@
\input{version} \input{version}
\newcommand{\DP}{Douglas \& Peucker} \newcommand{\DP}{Douglas \& Peucker}
\newcommand{\VW}{Visvalingam-Whyatt} \newcommand{\VW}{Visvalingam--Whyatt}
\title{ \title{
Cartografic Generalization of Lines \\ Cartografic Generalization of Lines \\
@ -111,22 +111,22 @@ general public:
\href{https://postgis.net/docs/ST_SimplifyVW.html}{PostGIS SimplifyVW}. \href{https://postgis.net/docs/ST_SimplifyVW.html}{PostGIS SimplifyVW}.
\end{itemize} \end{itemize}
For comparison reasons, this article will be using Lakaja and large part of Žeimena This article will be using Lakaja and large part of Žeimena (see
(see figure~\ref{fig:zeimena} on page~\pageref{fig:zeimena}). This location was figure~\ref{fig:zeimena} on page~\pageref{fig:zeimena}). This location was
chosen because the river exhibits both both straight and curved shape, is a chosen because the river exhibits both both straight and curved shape, is a
combination of two curly rivers, and author's familiarity with the location. combination of two curly rivers, and author's familiarity with the location.
\begin{figure} \begin{figure}[h]
\centering \centering
\includegraphics[width=148mm]{zeimena-pretty} \includegraphics[width=148mm]{zeimena-pretty}
\caption{Lakaja and Žeimena} \caption{Lakaja and Žeimena}
\label{fig:zeimena} \label{fig:zeimena}
\end{figure} \end{figure}
\section{Mathematical and geometrical algorithms} \section{Visually comparing {\DP} and {\VW}}
To visually evaluate the sample above, we created a few examples for {\DP} To visually evaluate the Žeimena sample, a few examples for {\DP} and {\VW}
and {\VW} using the following parameters: were created using the following parameters:
\begin{enumerate}[label=(\Roman*)] \begin{enumerate}[label=(\Roman*)]
\item {\DP} tolerance: $tolerance := 125 * 2^n, n = 0,1,...,5$. \item {\DP} tolerance: $tolerance := 125 * 2^n, n = 0,1,...,5$.
@ -135,11 +135,19 @@ and {\VW} using the following parameters:
Item~\ref{itm:2} requires explanation. Tolerance for {\DP} is specified in Item~\ref{itm:2} requires explanation. Tolerance for {\DP} is specified in
linear units, in this case, meters. Tolerance for {\VW} is specified in areal linear units, in this case, meters. Tolerance for {\VW} is specified in areal
units, in this case, square meters $m^2$. As author was not able to locate units, in this case, $m^2$. As author was not able to locate formal comparisons
formal comparisons between the two (i.e. how to calculate one tolerance value between the two (i.e. how to calculate one tolerance value from the other, so
from another, so the results are comparable?), {\DP} tolerance was arbitrarily the results are comparable?), {\DP} tolerance was arbitrarily squared and fed
squared. To the author's understanding, this provides reasonalbe results. to {\VW}. To author's eye, this provides comparable and reasonable results,
though could be researched.
As can be observed in table~\ref{tab:dp-vs-vw} on page~\pageref{tab:dp-vs-vw},
both simplication algorithms convert bends to chopped lines. This is especially
visible in tolerances 250 and 500. In a more robust simplification algorithm,
the larger tolerance, the larger the bends on the original map should be
retained.
\begin{figure}[h]
\renewcommand{\tabularxcolumn}[1]{>{\center\small}m{#1}} \renewcommand{\tabularxcolumn}[1]{>{\center\small}m{#1}}
\begin{tabularx}{\textwidth}{ p{1.5cm} | X | X | } \begin{tabularx}{\textwidth}{ p{1.5cm} | X | X | }
Tolerance & Tolerance &
@ -170,6 +178,9 @@ squared. To the author's understanding, this provides reasonalbe results.
\includegraphics[width=.0625\linewidth]{douglas-4000} & \includegraphics[width=.0625\linewidth]{douglas-4000} &
\includegraphics[width=.0625\linewidth]{visvalingam-4000} \tabularnewline \hline \includegraphics[width=.0625\linewidth]{visvalingam-4000} \tabularnewline \hline
\end{tabularx} \end{tabularx}
\label{tab:dp-vs-vw}
\caption{{\DP} and {\VW} side-by-side visual comparison.}
\end{figure}
\section{Algorithms based on cartographical knowledge} \section{Algorithms based on cartographical knowledge}