|
56 | 56 | \begin{tikzpicture}[remember picture,overlay]
|
57 | 57 | \node[fill=mycolor, text=white, minimum width=\paperwidth, minimum height=0.7cm, anchor=south] at (current page.south) {};
|
58 | 58 | \node[anchor=east, text=white, yshift=0.35cm, xshift=-14.5cm] at (current page.south) {\textcolor{white}{\textbf{Created by Antony Barja}}};
|
59 |
| - \node[anchor=center, text=white, yshift=0.35cm, xshift= 14.5cm] at (current page.south) {\textcolor{white}{\textbf{Revised by Floris Vanderhaeghe and updated: 23/06/2023}}}; |
| 59 | + \node[anchor=center, text=white, yshift=0.35cm, xshift= 13.5cm] at (current page.south) {\textcolor{white}{\textbf{Revised by Floris Vanderhaeghe and updated: 23/06/2023}}}; |
60 | 60 | \end{tikzpicture}
|
61 | 61 | }
|
62 | 62 | \renewcommand{\footrulewidth}{0pt}
|
|
255 | 255 | \begin{lstlisting}
|
256 | 256 | qgisprocess also provides
|
257 | 257 | qgis_run_algorithm_p() that works
|
258 |
| -\end{lstlisting} |
259 | 258 | better in pipelines.
|
| 259 | +\end{lstlisting} |
260 | 260 | \end{minipage}
|
261 | 261 |
|
262 | 262 | \begin{lstlisting}[style=Rstyle]
|
| 263 | + # Buffer processing |
263 | 264 | > library(sf)
|
264 | 265 | > system.file(
|
265 | 266 | 'longlake/longlake_depth.gpkg',
|
|
268 | 269 | qgis_run_algorithm_p(
|
269 | 270 | algorithm = 'native:buffer',
|
270 | 271 | DISTANCE = 100
|
271 |
| - ) |> |
272 |
| - st_as_sf( ) |> |
273 |
| - plot( ) |
274 |
| - |
275 |
| - > qgis_fun(...) |
| 272 | + ) |> st_as_sf() |> |
| 273 | + plot() |
276 | 274 | \end{lstlisting}
|
277 | 275 |
|
278 | 276 | % Workflow %
|
279 | 277 | \begin{minipage}{\linewidth}
|
280 | 278 | \vspace{12pt}
|
281 |
| - \textbf{\fontsize{20}{5}\selectfont \textbf{Workflow}}\vspace{8pt}\\ |
282 |
| - Attached are 2 example workflows in vector and raster data. |
| 279 | + \textbf{\fontsize{44}{44}\selectfont \textbf{Workflow}}\vspace{8pt}\\ |
283 | 280 | \end{minipage}
|
284 | 281 |
|
285 | 282 | \begin{tikzpicture}
|
286 | 283 | \node[mybox,text width=11.5cm] (box)
|
287 | 284 | {\\
|
288 | 285 | \begin{lstlisting}[breaklines=true,style=Rstyle]
|
| 286 | +# Hexagrid of 400x400 |
289 | 287 | > library(sf)
|
290 | 288 | > grid_fun <- qgis_function('native:creategrid')
|
291 | 289 | > grid_fun(
|
|
295 | 293 | VSPACING = 400,
|
296 | 294 | CRS = 'EPSG:26920',
|
297 | 295 | OUTPUT = 'grid'
|
298 |
| - ) |> |
299 |
| - st_as_sf() |> |
300 |
| - select(id) |> |
301 |
| - plot() |
| 296 | + ) |> |
| 297 | + st_as_sf() |> |
| 298 | + select(id) |> |
| 299 | + plot() |
302 | 300 | \end{lstlisting}
|
303 | 301 | };
|
304 | 302 | \node[fancytitle, right=0pt, yshift=6pt] at (box.north west) {Vector data};
|
|
307 | 305 | \node[mybox,text width=11.5cm] (box)
|
308 | 306 | {
|
309 | 307 | \begin{lstlisting}[breaklines=true,style=Rstyle]
|
| 308 | +# TWI processing |
310 | 309 | > library(stars)
|
311 | 310 | > dem <- read_stars(
|
312 | 311 | system.file(
|
|
325 | 324 | \node[fancytitle, right=0pt,yshift=6pt] at (box.north west) {Raster data};
|
326 | 325 | \end{tikzpicture}
|
327 | 326 | \end{multicols*}
|
328 |
| -\end{document} |
| 327 | +\end{document} |
0 commit comments