add layer of direction

remove layer of indirection
This commit is contained in:
Motiejus Jakštys 2020-05-26 14:00:37 +03:00
parent 8e08fe70e6
commit c4d6a764ed
2 changed files with 8 additions and 8 deletions

View File

@ -8,17 +8,17 @@ mj-referatas.pdf: mj-referatas.tex version.tex bib.bib zeimena-pretty.pdf \
latexmk -g -pdf $< latexmk -g -pdf $<
define algo2img define algo2img
db/.faux_$(1)-$(2)-$(3): $(2).sql db/.faux_ready db/.faux_$(1)-$(2)-%: $(2).sql db/.faux_ready
./managedb -- --echo-all -v ON_ERROR_STOP=1 -v src=$(1) -v tolerance=$(3) -v tbl=$(1)_$(2)_$(3) -f $(2).sql ./managedb -- --echo-all -v ON_ERROR_STOP=1 -v src=$(1) -v tolerance=$$* -v tbl=$(1)_$(2)_$$* -f $(2).sql
touch $$@ touch $$@
$(1)-$(2)-$(3).pdf: layer2img.py db/.faux_$(1)-$(2)-$(3) $(1)-$(2)-%.pdf: layer2img.py db/.faux_$(1)-$(2)-%
./layer2img.py --table=$(1)_$(2)_$(3) --size=52x74 --outfile $(1)-$(2)-$(3).pdf ./layer2img.py --table=$(1)_$(2)_$$* --size=52x74 --outfile $(1)-$(2)-$$*.pdf
endef endef
$(eval $(call algo2img,sinewave,douglas,5)) $(eval $(call algo2img,sinewave,douglas))
$(foreach t,$(TOLERANCES),$(eval $(call algo2img,zeimena,douglas,$(t)))) $(eval $(call algo2img,zeimena,douglas))
$(foreach t,$(TOLERANCES),$(eval $(call algo2img,zeimena,visvalingam,$(t)))) $(eval $(call algo2img,zeimena,visvalingam))
sinewave.gpkg: sinewave.py sinewave.gpkg: sinewave.py
./sinewave.py ./sinewave.py

View File

@ -220,7 +220,7 @@ of the least developed aspects of automatic line generalization, according to
\cite{miuller1995generalization}. {\WM} encoded this process to an algorithm. \cite{miuller1995generalization}. {\WM} encoded this process to an algorithm.
Imagine there are two small bends close to each other, similar to Imagine there are two small bends close to each other, similar to
figure~\ref{pic:example-bend} on page~\pageref{pic:example-bend}, and one needs figure~\ref{pic:sinewave} on page~\pageref{pic:sinewave}, and one needs
to generalize it. The bends are too large to ignore replace them with a to generalize it. The bends are too large to ignore replace them with a
straight line, but too small to retain both and retain their complexity. straight line, but too small to retain both and retain their complexity.