-
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Usage_code.tex
524 lines (447 loc) · 13.9 KB
/
Usage_code.tex
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
331
332
333
334
335
336
337
338
339
340
341
342
343
344
345
346
347
348
349
350
351
352
353
354
355
356
357
358
359
360
361
362
363
364
365
366
367
368
369
370
371
372
373
374
375
376
377
378
379
380
381
382
383
384
385
386
387
388
389
390
391
392
393
394
395
396
397
398
399
400
401
402
403
404
405
406
407
408
409
410
411
412
413
414
415
416
417
418
419
420
421
422
423
424
425
426
427
428
429
430
431
432
433
434
435
436
437
438
439
440
441
442
443
444
445
446
447
448
449
450
451
452
453
454
455
456
457
458
459
460
461
462
463
464
465
466
467
468
469
470
471
472
473
474
475
476
477
478
479
480
481
482
483
484
485
486
487
488
489
490
491
492
493
494
495
496
497
498
499
500
501
502
503
504
505
506
507
508
509
510
511
512
513
514
515
516
517
518
519
520
521
522
523
524
% Options for packages loaded elsewhere
\PassOptionsToPackage{unicode}{hyperref}
\PassOptionsToPackage{hyphens}{url}
\PassOptionsToPackage{dvipsnames,svgnames,x11names}{xcolor}
%
\documentclass[
]{article}
\title{Usage code for data repository
Building age map, Vienna, around 1920}
\author{Ulrich Kral, Ferdinand Reimer}
\date{}
\usepackage{amsmath,amssymb}
\usepackage{lmodern}
\usepackage{iftex}
\ifPDFTeX
\usepackage[T1]{fontenc}
\usepackage[utf8]{inputenc}
\usepackage{textcomp} % provide euro and other symbols
\else % if luatex or xetex
\usepackage{unicode-math}
\defaultfontfeatures{Scale=MatchLowercase}
\defaultfontfeatures[\rmfamily]{Ligatures=TeX,Scale=1}
\fi
% Use upquote if available, for straight quotes in verbatim environments
\IfFileExists{upquote.sty}{\usepackage{upquote}}{}
\IfFileExists{microtype.sty}{% use microtype if available
\usepackage[]{microtype}
\UseMicrotypeSet[protrusion]{basicmath} % disable protrusion for tt fonts
}{}
\makeatletter
\@ifundefined{KOMAClassName}{% if non-KOMA class
\IfFileExists{parskip.sty}{%
\usepackage{parskip}
}{% else
\setlength{\parindent}{0pt}
\setlength{\parskip}{6pt plus 2pt minus 1pt}}
}{% if KOMA class
\KOMAoptions{parskip=half}}
\makeatother
\usepackage{xcolor}
\IfFileExists{xurl.sty}{\usepackage{xurl}}{} % add URL line breaks if available
\IfFileExists{bookmark.sty}{\usepackage{bookmark}}{\usepackage{hyperref}}
\hypersetup{
pdfauthor={Ulrich Kral, Ferdinand Reimer},
colorlinks=true,
linkcolor={Maroon},
filecolor={Maroon},
citecolor={Blue},
urlcolor={blue},
pdfcreator={LaTeX via pandoc}}
\urlstyle{same} % disable monospaced font for URLs
\usepackage[margin=1in]{geometry}
\usepackage{graphicx}
\makeatletter
\def\maxwidth{\ifdim\Gin@nat@width>\linewidth\linewidth\else\Gin@nat@width\fi}
\def\maxheight{\ifdim\Gin@nat@height>\textheight\textheight\else\Gin@nat@height\fi}
\makeatother
% Scale images if necessary, so that they will not overflow the page
% margins by default, and it is still possible to overwrite the defaults
% using explicit options in \includegraphics[width, height, ...]{}
\setkeys{Gin}{width=\maxwidth,height=\maxheight,keepaspectratio}
% Set default figure placement to htbp
\makeatletter
\def\fps@figure{htbp}
\makeatother
\setlength{\emergencystretch}{3em} % prevent overfull lines
\providecommand{\tightlist}{%
\setlength{\itemsep}{0pt}\setlength{\parskip}{0pt}}
\setcounter{secnumdepth}{5}
\usepackage{booktabs}
\usepackage{longtable}
\usepackage{array}
\usepackage{multirow}
\usepackage{wrapfig}
\usepackage{float}
\usepackage{colortbl}
\usepackage{pdflscape}
\usepackage{tabu}
\usepackage{threeparttable}
\usepackage{threeparttablex}
\usepackage[normalem]{ulem}
\usepackage{makecell}
\usepackage{xcolor}
\ifLuaTeX
\usepackage{selnolig} % disable illegal ligatures
\fi
\begin{document}
\maketitle
{
\hypersetup{linkcolor=}
\setcounter{tocdepth}{2}
\tableofcontents
}
\hypertarget{preface}{%
\section*{Preface}\label{preface}}
\addcontentsline{toc}{section}{Preface}
\textbf{This usage code}
\begin{itemize}
\item
\textbf{is part} of the GitHub repository
\href{https://github.com/ukral/building.map_1920}{building.map\_1920}.
Check out the
\href{https://github.com/ukral/building.map_1920/blob/main/README.md}{readme
file} to learn more about the corresponding datasets and how to use
and re-use the underlying R Markdown file.
\item
\textbf{supplements} the paper ``Data description of `Building age map
of Vienna and its surroundings around 1920'\,'', which is currently
under review in
\href{https://www.journals.elsevier.com/data-in-brief}{Data in Brief}.
\item
\textbf{is for users} of the datasets who want to use and re-use the
datasets.
\end{itemize}
\hypertarget{introduction-figures}{%
\section{Introduction figures}\label{introduction-figures}}
\includegraphics{Usage_code_files/figure-latex/unnamed-chunk-2-1.pdf}
\hypertarget{scales-of-analog-map-sheets}{%
\section{Scales of analog map
sheets}\label{scales-of-analog-map-sheets}}
Scales of building stock maps, which were used to retrieve the building
footprints: 1:NA, 1:5000, 1:3500, 1:1440, 1:10000, 1:2880. Note: NA
stands for ``not available'', because the digitial city map is
vectorized and therefore doesn't have a scale.
\hypertarget{addresss-changes}{%
\section{Addresss changes}\label{addresss-changes}}
Address changes between `Address.2019' and `Address.1920'. Scope:
`Address\_review' = yes
\begin{tabular}[t]{l|r|r}
\hline
address change & affected polygons & ratio [\%]\\
\hline
yes & 13,108 & 26\\
\hline
no & 36,478 & 74\\
\hline
\end{tabular}
\hypertarget{area-of-building-footprints}{%
\section{Area of building
footprints}\label{area-of-building-footprints}}
The ``Area'' records are summarized by ``UD.1920'' and ``UD.2020'',
respectively, and plotted in the next figure.
\begin{verbatim}
## Warning: Removed 2 rows containing missing values (geom_bar).
\end{verbatim}
\begin{verbatim}
## Warning: Removed 2 rows containing missing values (geom_text).
\end{verbatim}
\includegraphics{Usage_code_files/figure-latex/unnamed-chunk-4-1.pdf}
\hypertarget{data-sources-to-retrieve-building-footprints}{%
\section{Data sources to retrieve building
footprints}\label{data-sources-to-retrieve-building-footprints}}
The ``Polygon.source\_name'' records were grouped by ``UD.2020'',
summarized by ``Area'' and plotted in the next figure.
\includegraphics{Usage_code_files/figure-latex/unnamed-chunk-5-1.pdf}
\begin{itemize}
\tightlist
\item
Number of unique maps sheets: 134. Retrieved from City map 2018,
Historical urban district map, Historical fire brigade map, Historical
cadaster, Analog building age map 1920, Analog building age map 1920
(digital raw data).
\item
Number of unique timestamps: 19.
\end{itemize}
\hypertarget{editors-of-vectorized-building-footprints}{%
\section{Editors of vectorized building
footprints}\label{editors-of-vectorized-building-footprints}}
The ``Editor'' records were grouped by ``UD.2020'', summarized by
``Area'' and plotted in the next figure.
\includegraphics{Usage_code_files/figure-latex/unnamed-chunk-6-1.pdf}
\begin{itemize}
\tightlist
\item
Number of unique editors: 10.
\end{itemize}
\hypertarget{temporal-presence-of-building-footprints}{%
\section{Temporal presence of building
footprints}\label{temporal-presence-of-building-footprints}}
The ``TP\_pub.date\_period'' records were grouped by ``UD.2020'',
summarized by ``Area'' and plotted in the next figure.
\includegraphics{Usage_code_files/figure-latex/unnamed-chunk-7-1.pdf}
\begin{itemize}
\tightlist
\item
City-wide data grouped into 3 periods.
\begin{tabular}[t]{l|r|r}
\hline
TP\_pub.date\_period & sum\_area\_abs & sum\_area\_rel\\
\hline
1906-1912 & 227 & 10\\
\hline
1920-1923 & 1,679 & 74\\
\hline
1927-1936 & 373 & 16\\
\hline
\end{tabular}
\end{itemize}
\hypertarget{period-of-constrution}{%
\section{Period of constrution}\label{period-of-constrution}}
The ``PoC'' records were grouped by two different types of timespan,
summarized by ``Area'' and plotted in the next figure.
\begin{verbatim}
## [1] CD.bs min max szbg_bp
## <0 Zeilen> (oder row.names mit Länge 0)
\end{verbatim}
\includegraphics{Usage_code_files/figure-latex/unnamed-chunk-8-1.pdf}
\begin{itemize}
\tightlist
\item
Summary: Assignment of construction dates.
\begin{tabular}[t]{l|r|r|r}
\hline
Data field & N of assigments & Unique dates before h & Unique dates after h\\
\hline
CD.abam & 49,156 & 12 & 10\\
\hline
CD.bs & 3,125 & 238 & 12\\
\hline
TP\_pub.date\_year & 28,359 & 19 & 3\\
\hline
\end{tabular}
\item
Summary: Grouping PoC records.
\begin{tabular}[t]{l|r|r}
\hline
timespan & sum\_area & sum\_area\_rel\\
\hline
10-years period & 1,428 & 63\\
\hline
Before given year & 851 & 37\\
\hline
\end{tabular}
\item
Number of construction date assignments.
\begin{tabular}[t]{r|r|r}
\hline
CD\_multiple & count\_CD\_multiple & count\_CD\_multiple\_rel\\
\hline
1 & 28,359 & 35\\
\hline
2 & 35,233 & 44\\
\hline
3 & 17,048 & 21\\
\hline
\end{tabular}
\end{itemize}
\hypertarget{data-sources-to-retrieve-building-construction-dates}{%
\section{Data sources to retrieve building construction
dates}\label{data-sources-to-retrieve-building-construction-dates}}
The ``PoC.source\_name'' records were grouped by ``UD.2020'', summarized
by ``Area'' and plotted in the next figure.
\includegraphics{Usage_code_files/figure-latex/unnamed-chunk-9-1.pdf}
\begin{itemize}
\tightlist
\item
City-wide data:
\begin{tabular}[t]{l|r|r}
\hline
PoC.source\_name & sum\_area & sum\_area\_rel\\
\hline
CD.abam\_1920,
ABAM\_1920 & 1,665 & 73\\
\hline
CD.bs,
BS\_1920s & 94 & 4\\
\hline
TP\_pub.date\_year,
ABSM & 520 & 23\\
\hline
\end{tabular}
\end{itemize}
\hypertarget{location-of-building-footprints-within-city-limits-1920}{%
\section{Location of building footprints within city limits
1920}\label{location-of-building-footprints-within-city-limits-1920}}
The ``Location.city\_limits\_1920'' records were grouped by ``UD.2020'',
summarized by ``Area'' and plotted in the next figure.
\includegraphics{Usage_code_files/figure-latex/unnamed-chunk-10-1.pdf}
\begin{itemize}
\tightlist
\item
City-wide data:
\begin{tabular}[t]{l|r|r}
\hline
Location.city\_limit\_1920 & sum\_area & sum\_area\_rel\\
\hline
in & 2,142 & 94\\
\hline
out & 137 & 6\\
\hline
\end{tabular}
\end{itemize}
\hypertarget{location-of-building-footprints-within-scope-of-analog-building-age-map-1920}{%
\section{Location of building footprints within scope of analog building
age map
1920}\label{location-of-building-footprints-within-scope-of-analog-building-age-map-1920}}
The ``Location.ABAM\_1920'' records were grouped by ``UD.2020'',
summarized by ``Area'' and plotted in the next figure.
\includegraphics{Usage_code_files/figure-latex/unnamed-chunk-11-1.pdf}
\begin{itemize}
\tightlist
\item
City-wide data:
\begin{tabular}[t]{l|r|r}
\hline
Location.abam\_1920 & sum\_area & sum\_area\_rel\\
\hline
in & 1,767 & 78\\
\hline
out & 512 & 22\\
\hline
\end{tabular}
\end{itemize}
\hypertarget{building-counts-by-urban-district}{%
\section{Building counts by urban
district}\label{building-counts-by-urban-district}}
\includegraphics{Usage_code_files/figure-latex/unnamed-chunk-12-1.pdf}
\hypertarget{building-footprint-presence-in-1920}{%
\section{Building footprint presence in
1920}\label{building-footprint-presence-in-1920}}
\includegraphics{Usage_code_files/figure-latex/unnamed-chunk-13-1.pdf}
\includegraphics{Usage_code_files/figure-latex/unnamed-chunk-13-2.pdf}
\begin{itemize}
\tightlist
\item
City-wide data:
\begin{tabular}[t]{l|r|r}
\hline
Presence.conf & sum\_area & sum\_area\_rel\\
\hline
inside built-up area
of LSM 1912 & 68 & 3\\
\hline
inside built-up area
of USM 1918 & 127 & 6\\
\hline
inside built-up areas
of LSM 1912 and USM 1918 & 2,083 & 91\\
\hline
outside built-up areas
of LSM 1912 & 1 & 0\\
\hline
\end{tabular}
\end{itemize}
\hypertarget{construction-years}{%
\section{Construction years}\label{construction-years}}
\includegraphics{Usage_code_files/figure-latex/unnamed-chunk-14-1.pdf}
\includegraphics{Usage_code_files/figure-latex/unnamed-chunk-14-2.pdf}
\begin{itemize}
\item
BS\_1920s perspective: : The BS\_1920s includes
\ensuremath{2.5859\times 10^{4}}(100\%) entries with records in
``YoC.1920'', ``STR.1920s'' and ``BN.1920''. The latter two are needed
to join the BS\_1920s and BSM\_1920. The workflow in this study
captured \ensuremath{1.9631\times 10^{4}} (76\%) ``YoC.1920s'' records
and assigned them to buildings in BSM\_1920. In other words, the
remaining potential for assignments is (24\%).
\item
Statistical yearbook (SY\_1929) perspective:
\begin{tabular}[t]{l|r|r}
\hline
data\_source & count & ratio\\
\hline
CD.bs\_BSM\_1920 & 19,631 & 45\\
\hline
SY\_1929 & 43,910 & 100\\
\hline
YoC.1920s\_BS\_1920s & 25,859 & 59\\
\hline
\end{tabular}
\end{itemize}
\hypertarget{construction-periods}{%
\section{Construction periods}\label{construction-periods}}
\includegraphics{Usage_code_files/figure-latex/unnamed-chunk-15-1.pdf}
\includegraphics{Usage_code_files/figure-latex/unnamed-chunk-15-2.pdf}
\includegraphics{Usage_code_files/figure-latex/unnamed-chunk-15-3.pdf}
\begin{itemize}
\tightlist
\item
Summary: The building footprint area is 2279 ha.
\begin{tabular}[t]{l|r|r}
\hline
PoC.source\_name & sum\_area & sum\_area\_rel\\
\hline
CD.abam\_1920,
ABAM\_1920 & 1,665 & 73\\
\hline
CD.bs,
BS\_1920s & 94 & 4\\
\hline
TP\_pub.date\_year,
ABSM & 520 & 23\\
\hline
\end{tabular}
\item
Summary: The building footprint area is 2279 ha.
\begin{tabular}[t]{l|r|r}
\hline
category & sum\_area & sum\_area\_real\\
\hline
after & 56 & 2\\
\hline
ambiguous & 17 & 1\\
\hline
before & 35 & 2\\
\hline
included & 746 & 33\\
\hline
No 'CD.bs' record & 1,425 & 63\\
\hline
\end{tabular}
\item
Summary: This table is based on data entries that have ``PoC'' and
``CD.bs'' records. In other words, blank ``CD.bs'' records are
excluded. The building footprint area is 854 ha, which is 37\% of the
total area.
\begin{tabular}[t]{l|r|r}
\hline
CD.bs\_fit & sum\_area & sum\_area\_rel\\
\hline
after & 56 & 7\\
\hline
ambiguous & 17 & 2\\
\hline
before & 35 & 4\\
\hline
included & 746 & 87\\
\hline
\end{tabular}
\end{itemize}
\hypertarget{annnex}{%
\section*{Annnex}\label{annnex}}
\addcontentsline{toc}{section}{Annnex}
\hypertarget{write-csv-file}{%
\subsection*{Write CSV file}\label{write-csv-file}}
\addcontentsline{toc}{subsection}{Write CSV file}
\hypertarget{plotting-figures}{%
\subsection*{Plotting figures}\label{plotting-figures}}
\addcontentsline{toc}{subsection}{Plotting figures}
The figures are published in the corresponding paper.
\begin{verbatim}
## Warning: Removed 2 rows containing missing values (geom_bar).
\end{verbatim}
\begin{verbatim}
## Warning: Removed 2 rows containing missing values (geom_text).
\end{verbatim}
\end{document}