Skip to content

Commit c3c2c47

Browse files
authored
Merge pull request #4 from florisvdh/update_fv
Fix TWI bug in cheatsheets
2 parents b494383 + f1ce17a commit c3c2c47

File tree

2 files changed

+66
-66
lines changed

2 files changed

+66
-66
lines changed

latex/cs_qgisprocess_en.tex

Lines changed: 34 additions & 34 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
\documentclass{article}
2-
\renewcommand{\normalsize}{\fontsize{12}{13}\selectfont}
2+
\renewcommand{\normalsize}{\fontsize{12}{13}\selectfont}
33
\usepackage[landscape]{geometry}
44
\usepackage{url}
55
\usepackage{multicol}
@@ -26,7 +26,7 @@
2626
\parskip2pt
2727
\newcommand{\hr}{\centerline{\rule{3.5in}{1pt}}}
2828

29-
% Setup the size of paper %
29+
% Setup the size of paper %
3030
\geometry{
3131
paperwidth=850pt,
3232
paperheight=1100pt,
@@ -60,7 +60,7 @@
6060
\end{tikzpicture}
6161
}
6262
\renewcommand{\footrulewidth}{0pt}
63-
\setlength{\headsep}{0.5cm}
63+
\setlength{\headsep}{0.5cm}
6464
}
6565

6666
% ----------------------------------- Cheatsheet ---------------------------------------------- %
@@ -98,23 +98,23 @@
9898
% Mission %
9999
\begin{minipage}{\linewidth}
100100
\vspace{-10pt}
101-
\textbf{\fontsize{44}{44}\selectfont \textbf{Mission}}\vspace{8pt}\\
101+
\textbf{\fontsize{44}{44}\selectfont \textbf{Mission}}\vspace{8pt}\\
102102
The goal of qgisprocess is to provide an R interface to the geoprocessing algorithms of QGIS, a popular and open source desktop geographic information system (GIS) program. This package is a re-implementation of the functionality provided by the archived \textbf{RQGIS} package, which was partially revived in the \textbf{RQGIS3} package.
103103
\end{minipage}
104104

105105
% Features %
106106
\begin{minipage}{\linewidth}
107107
\vspace{1pt}
108-
\textbf{\fontsize{20}{5}\selectfont \textbf{Features}}\vspace{8pt}\\
108+
\textbf{\fontsize{20}{5}\selectfont \textbf{Features}}\vspace{8pt}\\
109109
This package makes it easier to use native processing algorithms and some from GDAL, GRASS and many others (like SAGA).
110110

111111
\begin{center}
112-
\setlength{\arrayrulewidth}{0.001pt}
112+
\setlength{\arrayrulewidth}{0.001pt}
113113
\arrayrulecolor{gray}
114-
\renewcommand{\arraystretch}{1.25}
114+
\renewcommand{\arraystretch}{1.25}
115115
\begin{tabular}{|c|c|}
116116
\hline
117-
\rowcolor{mycolor}
117+
\rowcolor{mycolor}
118118
\textcolor{white}{\textbf{Providers}} & \textcolor{white}{\textbf{Algorithms}} \\
119119
\hline
120120
qgis & 50 + 242 ( c ++) + 1 (3D) \\
@@ -128,26 +128,26 @@
128128
Total counts & 653 + x \\
129129
\hline
130130
\end{tabular}
131-
\end{center}
131+
\end{center}
132132
\end{minipage}
133133

134134
\begin{lstlisting}[style=Rstyle]
135135
# Show a tibble with processing providers
136-
> qgis_providers( )
136+
> qgis_providers( )
137137
# Show a tibble with algorithms
138-
> qgis_algorithms( )
138+
> qgis_algorithms( )
139139
# Search algorithms using regular expressions
140140
> qgis_search_algorithms(
141141
algorithm = <x>,
142142
provider = <y>,
143-
group = <z>
144-
)
143+
group = <z>
144+
)
145145
\end{lstlisting}
146146

147147
% Installation %
148148
\begin{minipage}{\linewidth}
149149
\vspace{10pt}
150-
\textbf{\fontsize{20}{5}\selectfont \textbf{Installation}\vspace{5pt}}
150+
\textbf{\fontsize{20}{5}\selectfont \textbf{Installation}\vspace{5pt}}
151151
\begin{lstlisting}[style=Rstyle]
152152
> install.packages("remotes")
153153
> install_github("r-spatial/qgisprocess")
@@ -157,7 +157,7 @@
157157

158158

159159
\begin{tikzpicture}
160-
\node[mybox,text width=11cm] (box)
160+
\node[mybox,text width=11cm] (box)
161161
{\\
162162
If needed, specify path to QGIS installation before
163163
loading qgisprocess:
@@ -169,11 +169,11 @@
169169
\end{tikzpicture}
170170

171171
\begin{tikzpicture}
172-
\node[mybox,text width=11cm] (box)
172+
\node[mybox,text width=11cm] (box)
173173
{\\
174174
1.Get started with the installation of docker in your machine.
175-
176-
2.Download the image of geocomputation
175+
176+
2.Download the image of geocomputation
177177
\begin{lstlisting}[breaklines=true,style=Rstyle]
178178
> docker pull geocompr/geocompr:qgis-ext
179179
\end{lstlisting}
@@ -182,7 +182,7 @@
182182
\begin{lstlisting}[breaklines=true,style=Rstyle]
183183
> docker run -d -p 8786:8787 -v $(pwd):/home/rstudio/data -e PASSWORD=pw geocompr/geocompr:qgis-ext
184184
\end{lstlisting}
185-
185+
186186
};
187187
\node[fancytitle, right=0pt,yshift=6pt] at (box.north west) {Using docker};
188188
\end{tikzpicture}
@@ -192,7 +192,7 @@
192192
% Input %
193193
\begin{minipage}{\linewidth}
194194
\vspace{-5pt}
195-
\textbf{\fontsize{44}{44}\selectfont \textbf{Input functions}}\vspace{8pt}\\
195+
\textbf{\fontsize{44}{44}\selectfont \textbf{Input functions}}\vspace{8pt}\\
196196
The package offers new functionalities of Input to have a workflow of an easy manner inside of R.
197197
\end{minipage}
198198
\begin{lstlisting}[style=Rstyle]
@@ -204,7 +204,7 @@
204204
\end{lstlisting}
205205
\begin{lstlisting}[style=Rstyle]
206206
# Run the algorithms
207-
> qgis_run_algorithm(
207+
> qgis_run_algorithm(
208208
algorithm = "native:creategrid",
209209
TYPE = 4,
210210
EXTENT = c("794599, 798208, 8931775,8935384"),
@@ -214,7 +214,7 @@
214214
OUTPUT = "grid"
215215
)
216216

217-
# Create a function based on the algorithm to use
217+
# Create a function based on the algorithm to use
218218
> grid_fun <- qgis_function("native:creategrid")
219219
> grid_fun(
220220
TYPE = 4,
@@ -229,7 +229,7 @@
229229
% Output functions %
230230
\begin{minipage}{\linewidth}
231231
\vspace{12pt}
232-
\textbf{\fontsize{20}{5}\selectfont \textbf{Output functions}}\vspace{8pt}\\
232+
\textbf{\fontsize{20}{5}\selectfont \textbf{Output functions}}\vspace{8pt}\\
233233
qgisprocess give us new functionalities of output for vector, raster and other format file, and it is possible loads it to our environment work.
234234
\end{minipage}
235235

@@ -253,7 +253,7 @@
253253
\textbf{\fontsize{44}{44}\selectfont \textbf{Pipe integration}}\vspace{-13pt}
254254
\vspace{13pt}
255255
\begin{lstlisting}
256-
qgisprocess also provides
256+
qgisprocess also provides
257257
qgis_run_algorithm_p() that works
258258
better in pipelines.
259259
\end{lstlisting}
@@ -270,17 +270,17 @@
270270
algorithm = "native:buffer",
271271
DISTANCE = 100
272272
) |> st_as_sf() |>
273-
plot()
273+
plot()
274274
\end{lstlisting}
275275

276276
% Workflow %
277277
\begin{minipage}{\linewidth}
278278
\vspace{12pt}
279-
\textbf{\fontsize{44}{44}\selectfont \textbf{Workflow}}\vspace{8pt}\\
279+
\textbf{\fontsize{44}{44}\selectfont \textbf{Workflow}}\vspace{8pt}\\
280280
\end{minipage}
281281

282282
\begin{tikzpicture}
283-
\node[mybox,text width=11.5cm] (box)
283+
\node[mybox,text width=11.5cm] (box)
284284
{\\
285285
\begin{lstlisting}[breaklines=true,style=Rstyle]
286286
# Hexagrid of 400x400
@@ -293,16 +293,16 @@
293293
VSPACING = 400,
294294
CRS = "EPSG:26920",
295295
OUTPUT = "grid"
296-
) |>
297-
st_as_sf() |>
296+
) |>
297+
st_as_sf() |>
298298
select(id) |>
299299
plot()
300300
\end{lstlisting}
301301
};
302302
\node[fancytitle, right=0pt, yshift=6pt] at (box.north west) {Vector data};
303303
\end{tikzpicture}
304304
\begin{tikzpicture}
305-
\node[mybox,text width=11.5cm] (box)
305+
\node[mybox,text width=11.5cm] (box)
306306
{
307307
\begin{lstlisting}[breaklines=true,style=Rstyle]
308308
# TWI processing
@@ -315,13 +315,13 @@
315315
> qgis_run_algorithm(
316316
algorithm ="sagang:sagawetnessindex",
317317
DEM = dem,
318-
TPI = "tpi.sdat") |>
319-
qgis_extract_output("TWI") |>
320-
qgis_as_terra() |>
318+
TWI = "twi.sdat") |>
319+
qgis_extract_output("TWI") |>
320+
qgis_as_terra() |>
321321
plot(col = cptcity::cpt(pal = "ocal_blues"))
322322
\end{lstlisting}
323323
};
324324
\node[fancytitle, right=0pt,yshift=6pt] at (box.north west) {Raster data};
325325
\end{tikzpicture}
326326
\end{multicols*}
327-
\end{document}
327+
\end{document}

0 commit comments

Comments
 (0)