add visvalingam.sql
This commit is contained in:
parent
93e5cca05d
commit
ba66799829
@ -15,7 +15,7 @@ db/.faux_$(1)-$(2): $(1).sql db/.faux_ready
|
|||||||
touch db/.faux_$(1)-$(2)
|
touch db/.faux_$(1)-$(2)
|
||||||
|
|
||||||
$(1)-$(2).pdf: layer2img.py db/.faux_$(1)-$(2)
|
$(1)-$(2).pdf: layer2img.py db/.faux_$(1)-$(2)
|
||||||
./layer2img.py --table=$(1)_$(2) --size=74x52 --outfile $(1)-$(2).pdf
|
./layer2img.py --table=$(1)_$(2) --size=52x74 --outfile $(1)-$(2).pdf
|
||||||
endef
|
endef
|
||||||
|
|
||||||
$(foreach t,$(TOLERANCES),$(eval $(call algo2img,douglas,$(t))))
|
$(foreach t,$(TOLERANCES),$(eval $(call algo2img,douglas,$(t))))
|
||||||
|
@ -143,7 +143,7 @@ As one can observe in figure~\ref{fig:douglas-300}, the Douglas \& Peucker with
|
|||||||
Douglas \& Peucker &
|
Douglas \& Peucker &
|
||||||
Visvalingam-Whyatt \tabularnewline \hline
|
Visvalingam-Whyatt \tabularnewline \hline
|
||||||
|
|
||||||
\center 0 &
|
Original &
|
||||||
\multicolumn{2}{ | l | }{
|
\multicolumn{2}{ | l | }{
|
||||||
\includegraphics[width=.84\columnwidth]{douglas-0}
|
\includegraphics[width=.84\columnwidth]{douglas-0}
|
||||||
} \tabularnewline \hline
|
} \tabularnewline \hline
|
||||||
|
14
II/Referatas/visvalingam.sql
Normal file
14
II/Referatas/visvalingam.sql
Normal file
@ -0,0 +1,14 @@
|
|||||||
|
DROP TABLE IF EXISTS visvalingam_:tolerance;
|
||||||
|
|
||||||
|
CREATE TABLE visvalingam_:tolerance (
|
||||||
|
fid serial NOT NULL,
|
||||||
|
geom geometry(MULTILINESTRING, 3346)
|
||||||
|
);
|
||||||
|
|
||||||
|
INSERT INTO visvalingam_:tolerance (geom) (
|
||||||
|
SELECT
|
||||||
|
ST_SimplifyVW (ST_LineMerge (ST_Union (geom)),
|
||||||
|
:tolerance * :tolerance) AS geoms
|
||||||
|
FROM
|
||||||
|
zeimena);
|
||||||
|
|
Loading…
Reference in New Issue
Block a user