Skip to content

Commit b494383

Browse files
committed
fixed
1 parent bb926ae commit b494383

File tree

6 files changed

+59
-59
lines changed

6 files changed

+59
-59
lines changed

latex/cs_qgisprocess_en.tex

Lines changed: 29 additions & 29 deletions
Original file line numberDiff line numberDiff line change
@@ -46,7 +46,7 @@
4646
keywordstyle=\color{blue},
4747
stringstyle=\color{red},
4848
breaklines=true,
49-
morekeywords={function,st,github,qgisprocess,sf,fun,run,qgis,tmp,raster,base,algorithms,p,argument,specs,providers,algorithm}
49+
morekeywords={function,st,github,qgisprocess,sf,fun,run,qgis,tmp,raster,base,algorithms,p,argument,specs,providers,algorithm,select,output,terra}
5050
}
5151
\definecolor{mycolor}{HTML}{589632}
5252

@@ -97,7 +97,7 @@
9797

9898
% Mission %
9999
\begin{minipage}{\linewidth}
100-
\vspace{-5pt}
100+
\vspace{-10pt}
101101
\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}
@@ -149,8 +149,8 @@
149149
\vspace{10pt}
150150
\textbf{\fontsize{20}{5}\selectfont \textbf{Installation}\vspace{5pt}}
151151
\begin{lstlisting}[style=Rstyle]
152-
> install.packages('remotes')
153-
> install_github('r-spatial/qgisprocess')
152+
> install.packages("remotes")
153+
> install_github("r-spatial/qgisprocess")
154154
> library(qgisprocess)
155155
\end{lstlisting}
156156
\end{minipage}
@@ -197,32 +197,32 @@
197197
\end{minipage}
198198
\begin{lstlisting}[style=Rstyle]
199199
# Show a description of the function to use
200-
> qgis_show_help(algorithm ='native:creategrid')
200+
> qgis_show_help(algorithm ="native:creategrid")
201201

202202
# Show all the parameters of the function
203-
> qgis_get_argument_specs(algorithm = 'native:creategrid')
203+
> qgis_get_argument_specs(algorithm = "native:creategrid")
204204
\end{lstlisting}
205205
\begin{lstlisting}[style=Rstyle]
206206
# Run the algorithms
207207
> qgis_run_algorithm(
208-
algorithm = 'native:creategrid',
208+
algorithm = "native:creategrid",
209209
TYPE = 4,
210-
EXTENT = c('794599, 798208, 8931775,8935384'),
210+
EXTENT = c("794599, 798208, 8931775,8935384"),
211211
HSPACING = 1000 ,
212212
VSPACING = 1000,
213-
CRS = 'EPSG:32717',
214-
OUTPUT = 'grid'
213+
CRS = "EPSG:32717",
214+
OUTPUT = "grid"
215215
)
216216

217217
# Create a function based on the algorithm to use
218-
> grid_fun <- qgis_function('native:creategrid')
218+
> grid_fun <- qgis_function("native:creategrid")
219219
> grid_fun(
220220
TYPE = 4,
221-
EXTENT = c('794599,798208,8931775,8935384'),
221+
EXTENT = c("794599,798208,8931775,8935384"),
222222
HSPACING = 1000,
223223
VSPACING = 1000,
224-
CRS = 'EPSG:32717',
225-
OUTPUT = 'grid'
224+
CRS = "EPSG:32717",
225+
OUTPUT = "grid"
226226
)
227227
\end{lstlisting}
228228

@@ -234,7 +234,7 @@
234234
\end{minipage}
235235

236236
\begin{lstlisting}[style=Rstyle]
237-
> qgis_extract_output(result_run_alg, 'OUTPUT')
237+
> qgis_extract_output(result_run_alg, "OUTPUT")
238238
\end{lstlisting}
239239
\begin{lstlisting}[style=Rstyle]
240240
# A character vector indicating the location of a temporary file.
@@ -263,11 +263,11 @@
263263
# Buffer processing
264264
> library(sf)
265265
> system.file(
266-
'longlake/longlake_depth.gpkg',
267-
package = 'qgisprocess'
266+
"longlake/longlake_depth.gpkg",
267+
package = "qgisprocess"
268268
) |>
269269
qgis_run_algorithm_p(
270-
algorithm = 'native:buffer',
270+
algorithm = "native:buffer",
271271
DISTANCE = 100
272272
) |> st_as_sf() |>
273273
plot()
@@ -285,14 +285,14 @@
285285
\begin{lstlisting}[breaklines=true,style=Rstyle]
286286
# Hexagrid of 400x400
287287
> library(sf)
288-
> grid_fun <- qgis_function('native:creategrid')
288+
> grid_fun <- qgis_function("native:creategrid")
289289
> grid_fun(
290290
TYPE = 4,
291-
EXTENT = c('409967, 411658, 5083354, 5084777'),
291+
EXTENT = c("409967, 411658, 5083354, 5084777"),
292292
HSPACING = 400,
293293
VSPACING = 400,
294-
CRS = 'EPSG:26920',
295-
OUTPUT = 'grid'
294+
CRS = "EPSG:26920",
295+
OUTPUT = "grid"
296296
) |>
297297
st_as_sf() |>
298298
select(id) |>
@@ -309,16 +309,16 @@
309309
> library(stars)
310310
> dem <- read_stars(
311311
system.file(
312-
'raster/nz_elev.tif',
313-
package = 'spDataLarge')
312+
"raster/nz_elev.tif",
313+
package = "spDataLarge")
314314
)
315315
> qgis_run_algorithm(
316-
algorithm ='sagang:sagawetnessindex',
316+
algorithm ="sagang:sagawetnessindex",
317317
DEM = dem,
318-
TPI = 'tpi.sdat') |>
319-
qgis_extract_output('TWI') |>
320-
st_as_stars() |>
321-
plot(col = cptcity::cpt(pal = 'ocal_blues'))
318+
TPI = "tpi.sdat") |>
319+
qgis_extract_output("TWI") |>
320+
qgis_as_terra() |>
321+
plot(col = cptcity::cpt(pal = "ocal_blues"))
322322
\end{lstlisting}
323323
};
324324
\node[fancytitle, right=0pt,yshift=6pt] at (box.north west) {Raster data};

latex/cs_qgisprocess_es.tex

Lines changed: 30 additions & 30 deletions
Original file line numberDiff line numberDiff line change
@@ -49,7 +49,7 @@
4949
keywordstyle=\color{blue},
5050
stringstyle=\color{red},
5151
breaklines=true,
52-
morekeywords={function,st,github,qgisprocess,sf,fun,run,qgis,tmp,raster,base,algorithms,p,argument,specs,providers,algorithm},
52+
morekeywords={function,st,github,qgisprocess,sf,fun,run,qgis,tmp,raster,base,algorithms,p,argument,specs,providers,algorithm,terra,output,select},
5353
extendedchars=true
5454
}
5555
\definecolor{mycolor}{HTML}{589632}
@@ -69,7 +69,7 @@
6969

7070
% ----------------------------------- Cheatsheet ---------------------------------------------- %
7171
\lstset{
72-
literate={á}{{\'a}}1 {é}{{\'e}}1 {í}{{\'i}}1 {ó}{{\'o}}1 {ú}{{\'u}}1
72+
literate={á}{{\"a}}1 {é}{{\"e}}1 {í}{{\"i}}1 {ó}{{\"o}}1 {ú}{{\"u}}1
7373
}
7474
\begin{document}
7575
\pagestyle{footerstyle}
@@ -104,7 +104,7 @@
104104

105105
% Mission %
106106
\begin{minipage}{\linewidth}
107-
\vspace{-5pt}
107+
\vspace{-10pt}
108108
\textbf{\fontsize{44}{44}\selectfont \textbf{Misión}}\vspace{8pt}\\
109109
El objetivo de qgisprocess es proporcionar una interfaz de R para los algoritmos de geoprocesamiento de QGIS, un popular programa de sistema de información geográfica (SIG) de código abierto. Este paquete es una reimplementación de la funcionalidad proporcionada por el paquete archivado \textbf{RQGIS} o la que parcialmente fue revivido en el paquete \textbf{RQGIS3}
110110
\end{minipage}
@@ -155,8 +155,8 @@
155155
\vspace{10pt}
156156
\textbf{\fontsize{44}{44}\selectfont \textbf{Instalación}\vspace{5pt}}
157157
\begin{lstlisting}[style=Rstyle]
158-
> install.packages('remotes')
159-
> install_github('r-spatial/qgisprocess')
158+
> install.packages("remotes")
159+
> install_github("r-spatial/qgisprocess")
160160
> library(qgisprocess)
161161
\end{lstlisting}
162162
\end{minipage}
@@ -202,32 +202,32 @@
202202
\end{minipage}
203203
\begin{lstlisting}[style=Rstyle]
204204
# Mostrar una descripción de ayuda de la función a usar
205-
> qgis_show_help(algorithm ='native:creategrid')
205+
> qgis_show_help(algorithm ="native:creategrid")
206206

207207
# Mostrar todos los parámetros de la función
208-
> qgis_get_argument_specs(algorithm = 'native:creategrid')
208+
> qgis_get_argument_specs(algorithm = "native:creategrid")
209209
\end{lstlisting}
210210
\begin{lstlisting}[style=Rstyle]
211211
# Inicar la ejecucion del algoritmo
212212
> qgis_run_algorithm(
213-
algorithm = 'native:creategrid',
213+
algorithm = "native:creategrid",
214214
TYPE = 4,
215-
EXTENT = c('794599, 798208, 8931775,8935384'),
215+
EXTENT = c("794599, 798208, 8931775,8935384"),
216216
HSPACING = 1000 ,
217217
VSPACING = 1000,
218-
CRS = 'EPSG:32717',
219-
OUTPUT = 'grid'
218+
CRS = "EPSG:32717",
219+
OUTPUT = "grid"
220220
)
221221

222222
# Crear una función basada en un algoritmo específico
223-
> grid_fun <- qgis_function('native:creategrid')
223+
> grid_fun <- qgis_function("native:creategrid")
224224
> grid_fun(
225225
TYPE = 4,
226-
EXTENT = c('794599,798208,8931775,8935384'),
226+
EXTENT = c("794599,798208,8931775,8935384"),
227227
HSPACING = 1000,
228228
VSPACING = 1000,
229-
CRS = 'EPSG:32717',
230-
OUTPUT = 'grid'
229+
CRS = "EPSG:32717",
230+
OUTPUT = "grid"
231231
)
232232
\end{lstlisting}
233233

@@ -239,7 +239,7 @@
239239
\end{minipage}
240240

241241
\begin{lstlisting}[style=Rstyle]
242-
> qgis_extract_output(result_run_alg, 'OUTPUT')
242+
> qgis_extract_output(result_run_alg, "OUTPUT")
243243
\end{lstlisting}
244244
\begin{lstlisting}[style=Rstyle]
245245
# Un vector de caracteres que indica la ubicación de un archivo temporal.
@@ -267,11 +267,11 @@
267267
# Cálculo de buffer
268268
> library(sf)
269269
> system.file(
270-
'longlake/longlake_depth.gpkg',
271-
package = 'qgisprocess'
270+
"longlake/longlake_depth.gpkg",
271+
package = "qgisprocess"
272272
) |>
273273
qgis_run_algorithm_p(
274-
algorithm = 'native:buffer',
274+
algorithm = "native:buffer",
275275
DISTANCE = 100
276276
) |> st_as_sf( ) |>
277277
plot( )
@@ -288,14 +288,14 @@
288288
\begin{lstlisting}[breaklines=true,style=Rstyle]
289289
# Creación de un hexagrid de 400x400
290290
> library(sf)
291-
> grid_fun <- qgis_function('native:creategrid')
291+
> grid_fun <- qgis_function("native:creategrid")
292292
> grid_fun(
293293
TYPE = 4,
294-
EXTENT = c('409967, 411658, 5083354, 5084777'),
294+
EXTENT = c("409967, 411658, 5083354, 5084777"),
295295
HSPACING = 400,
296296
VSPACING = 400,
297-
CRS = 'EPSG:26920',
298-
OUTPUT = 'grid'
297+
CRS = "EPSG:26920",
298+
OUTPUT = "grid"
299299
) |> st_as_sf() |>
300300
select(id) |>
301301
plot()
@@ -311,16 +311,16 @@
311311
> library(stars)
312312
> dem <- read_stars(
313313
system.file(
314-
'raster/nz_elev.tif',
315-
package = 'spDataLarge')
314+
"raster/nz_elev.tif",
315+
package = "spDataLarge")
316316
)
317317
> qgis_run_algorithm(
318-
algorithm ='sagang:sagawetnessindex',
318+
algorithm ="sagang:sagawetnessindex",
319319
DEM = dem,
320-
TPI = 'tpi.sdat') |>
321-
qgis_extract_output('TWI') |>
322-
st_as_stars() |>
323-
plot(col = cptcity::cpt(pal = 'ocal_blues'))
320+
TPI = "tpi.sdat") |>
321+
qgis_extract_output("TWI") |>
322+
qgis_as_terra() |>
323+
plot(col = cptcity::cpt(pal = "ocal_blues"))
324324
\end{lstlisting}
325325
};
326326
\node[fancytitle, right=0pt,yshift=6pt] at (box.north west) {Raster data};

pdf/english/qgisprocess_en.pdf

322 Bytes
Binary file not shown.

pdf/spanish/qgisprocess_es.pdf

-65 Bytes
Binary file not shown.

png/english/qgisprocess_en.png

6.82 KB
Loading

png/spanish/qgisprocess_es.png

2.32 KB
Loading

0 commit comments

Comments
 (0)