Skip to content

Commit 7ef5c3b

Browse files
committed
Deploy commit: Merge pull request #1180 from geocompx/copilot/trigger-github-workflow-re-run
Add scheduled workflow to detect upstream failures; set weekly cadence 734d547
1 parent 910572e commit 7ef5c3b

48 files changed

Lines changed: 123 additions & 125 deletions

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

02-spatial-data.md

Lines changed: 15 additions & 17 deletions
Original file line numberDiff line numberDiff line change
@@ -248,11 +248,9 @@ world_mini
248248
#> Dimension: XY
249249
#> Bounding box: xmin: -180 ymin: -18.3 xmax: 180 ymax: -0.95
250250
#> Geodetic CRS: WGS 84
251-
#> # A data frame: 2 × 4
252-
#> iso_a2 name_long continent geom
253-
#> * <chr> <chr> <chr> <MULTIPOLYGON [°]>
254-
#> 1 FJ Fiji Oceania (((-180 -16.6, -180 -16.5, -180 -16, -180 -16.1, -…
255-
#> 2 TZ Tanzania Africa (((33.9 -0.95, 31.9 -1.03, 30.8 -1.01, 30.4 -1.13,…
251+
#> iso_a2 name_long continent geom
252+
#> 1 FJ Fiji Oceania MULTIPOLYGON (((-180 -16.6,...
253+
#> 2 TZ Tanzania Africa MULTIPOLYGON (((33.9 -0.95,...
256254
```
257255

258256
All this may seem rather complex, especially for a class system that is supposed to be 'simple'!
@@ -982,14 +980,14 @@ Typing the name of the raster into the console, will print out the raster header
982980

983981
``` r
984982
my_rast
985-
#> class : SpatRaster
983+
#> class : SpatRaster
986984
#> size : 457, 465, 1 (nrow, ncol, nlyr)
987-
#> resolution : 0.000833, 0.000833 (x, y)
988-
#> extent : -113, -113, 37.1, 37.5 (xmin, xmax, ymin, ymax)
989-
#> coord. ref. : lon/lat WGS 84 (EPSG:4326)
990-
#> source : srtm.tif
991-
#> name : srtm
992-
#> min value : 1024
985+
#> resolution : 0.0008333333, 0.0008333333 (x, y)
986+
#> extent : -113.2396, -112.8521, 37.13208, 37.51292 (xmin, xmax, ymin, ymax)
987+
#> coord. ref. : lon/lat WGS 84 (EPSG:4326)
988+
#> source : srtm.tif
989+
#> name : srtm
990+
#> min value : 1024
993991
#> max value : 2892
994992
```
995993

@@ -1062,14 +1060,14 @@ The `SpatRaster` class also handles multiple layers, which typically correspond
10621060
multi_raster_file = system.file("raster/landsat.tif", package = "spDataLarge")
10631061
multi_rast = rast(multi_raster_file)
10641062
multi_rast
1065-
#> class : SpatRaster
1063+
#> class : SpatRaster
10661064
#> size : 1428, 1128, 4 (nrow, ncol, nlyr)
10671065
#> resolution : 30, 30 (x, y)
10681066
#> extent : 301905, 335745, 4111245, 4154085 (xmin, xmax, ymin, ymax)
1069-
#> coord. ref. : WGS 84 / UTM zone 12N (EPSG:32612)
1070-
#> source : landsat.tif
1071-
#> names : landsat_1, landsat_2, landsat_3, landsat_4
1072-
#> min values : 7550, 6404, 5678, 5252
1067+
#> coord. ref. : WGS 84 / UTM zone 12N (EPSG:32612)
1068+
#> source : landsat.tif
1069+
#> names : landsat_1, landsat_2, landsat_3, landsat_4
1070+
#> min values : 7550, 6404, 5678, 5252
10731071
#> max values : 19071, 22051, 25780, 31961
10741072
```
10751073

05-geometry-operations.md

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -634,15 +634,15 @@ elev = rast(system.file("raster/elev.tif", package = "spData"))
634634
clip = rast(xmin = 0.9, xmax = 1.8, ymin = -0.45, ymax = 0.45,
635635
resolution = 0.3, vals = rep(1, 9))
636636
elev[clip, drop = FALSE]
637-
#> class : SpatRaster
637+
#> class : SpatRaster
638638
#> size : 2, 1, 1 (nrow, ncol, nlyr)
639639
#> resolution : 0.5, 0.5 (x, y)
640640
#> extent : 1, 1.5, -0.5, 0.5 (xmin, xmax, ymin, ymax)
641-
#> coord. ref. : lon/lat WGS 84 (EPSG:4326)
641+
#> coord. ref. : lon/lat WGS 84 (EPSG:4326)
642642
#> source(s) : memory
643-
#> varname : elev
644-
#> name : elev
645-
#> min value : 18
643+
#> varname : elev
644+
#> name : elev
645+
#> min value : 18
646646
#> max value : 24
647647
```
648648

08-read-write-plot.md

Lines changed: 8 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -409,6 +409,7 @@ multilayer_rast = rast(multilayer_filepath)
409409
All of the previous examples read spatial information from files stored on your hard drive.
410410
However, GDAL also allows reading data directly from online resources, such as HTTP/HTTPS/FTP web resources.
411411
The only thing we need to do is to add a `/vsicurl/` prefix before the path to the file.
412+
This tells GDAL to use its virtual file system for network resources, which uses **HTTP Range requests** to fetch only the specific byte ranges needed for an operation rather than downloading the entire file.
412413
Let's try it by connecting to the global monthly snow probability at 500-m resolution for the period 2000-2012.
413414
Snow probability for December is stored as a Cloud Optimized GeoTIFF (COG) file (see Section \@ref(file-formats)) at [zenodo.org](https://zenodo.org/record/5774954/files/clm_snow.prob_esacci.dec_p.90_500m_s0..0cm_2000..2012_v2.0.tif).
414415
To read an online file, we just need to provide its URL together with the `/vsicurl/` prefix.
@@ -419,18 +420,18 @@ myurl = paste0("/vsicurl/https://zenodo.org/record/5774954/files/",
419420
"clm_snow.prob_esacci.dec_p.90_500m_s0..0cm_2000..2012_v2.0.tif")
420421
snow = rast(myurl)
421422
snow
422-
#> class : SpatRaster
423+
#> class : SpatRaster
423424
#> size : 35849, 86400, 1 (nrow, ncol, nlyr)
424-
#> resolution : 0.00417, 0.00417 (x, y)
425-
#> extent : -180, 180, -62, 87.4 (xmin, xmax, ymin, ymax)
426-
#> coord. ref. : lon/lat WGS 84 (EPSG:4326)
427-
#> source : clm_snow.prob_esacci.dec_p.90_500m_s0..0cm_2000..2012_v2.0.tif
425+
#> resolution : 0.004166667, 0.004166667 (x, y)
426+
#> extent : -180, 180, -62.00083, 87.37 (xmin, xmax, ymin, ymax)
427+
#> coord. ref. : lon/lat WGS 84 (EPSG:4326)
428+
#> source : clm_snow.prob_esacci.dec_p.90_500m_s0..0cm_2000..2012_v2.0.tif
428429
#> name : clm_snow.prob_esacci.dec_p.90_500m_s0..0cm_2000..2012_v2.0
429430
```
430431

431432
\index{COG}
432-
Due to the fact that the input data is COG, we are actually not reading this file to our RAM, but rather creating a connection to it without obtaining any values.
433-
Its values will be read if we apply any value-based operation (e.g., `crop()` or `extract()`).
433+
When combined with the `/vsicurl/` prefix, COG files enable highly efficient remote data access.
434+
Instead of reading the whole file into RAM, GDAL creates a connection that **selectively fetches** only the byte ranges needed for subsequent operations (e.g., `crop()` or `extract()`), making it possible to work with multi-gigabyte files over the internet almost as if they were local.
434435
This allows us also to just read a tiny portion of the data without downloading the entire file.
435436
For example, we can get the snow probability for December in Reykjavik (70%) by specifying its coordinates and applying the `extract()` function:
436437

13-transport.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -570,7 +570,7 @@ routes_short_scenario = routes_short |>
570570
mutate(bicycle = bicycle + car_driver * uptake,
571571
car_driver = car_driver * (1 - uptake))
572572
sum(routes_short_scenario$bicycle) - sum(routes_short$bicycle)
573-
#> [1] 3284
573+
#> [1] 3141
574574
```
575575

576576
Having created a scenario in which approximately 4000 trips have switched from driving to cycling, we can now model where this updated modeled cycling activity will take place.

14-location.md

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -140,15 +140,15 @@ input_ras = rast(input_tidy, type = "xyz", crs = "EPSG:3035")
140140

141141
``` r
142142
input_ras
143-
#> class : SpatRaster
143+
#> class : SpatRaster
144144
#> size : 859, 641, 4 (nrow, ncol, nlyr)
145145
#> resolution : 1000, 1000 (x, y)
146146
#> extent : 4031000, 4672000, 2689000, 3548000 (xmin, xmax, ymin, ymax)
147-
#> coord. ref. : ETRS89-extended / LAEA Europe (EPSG:3035)
147+
#> coord. ref. : ETRS89-extended / LAEA Europe (EPSG:3035)
148148
#> source(s) : memory
149-
#> names : pop, women, mean_age, hh_size
150-
#> min values : 3, 0, 8.5, 1
151-
#> max values : 24164, 100, 104.4, 144
149+
#> names : pop, women, mean_age, hh_size
150+
#> min values : 3, 0, 8.5, 1
151+
#> max values : 24164, 100, 104.43, 143.88
152152
```
153153

154154
\BeginKnitrBlock{rmdnote}<div class="rmdnote">Note that we are using an equal-area projection (EPSG:3035; Lambert Equal Area Europe), i.e., a projected CRS\index{CRS!projected} where each grid cell has the same area, here 1000 * 1000 square meters.

404.html

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -22,7 +22,7 @@
2222
<script src="libs/bootstrap-4.6.0/bootstrap.bundle.min.js"></script><link href="libs/Lato-0.4.10/font.css" rel="stylesheet">
2323
<link href="libs/Roboto_Mono-0.4.10/font.css" rel="stylesheet">
2424
<link href="libs/Montserrat-0.4.10/font.css" rel="stylesheet">
25-
<script src="libs/bs3compat-0.9.0/transition.js"></script><script src="libs/bs3compat-0.9.0/tabs.js"></script><script src="libs/bs3compat-0.9.0/bs3compat.js"></script><link href="libs/bs4_book-1.0.0/bs4_book.css" rel="stylesheet">
25+
<script src="libs/bs3compat-0.10.0/transition.js"></script><script src="libs/bs3compat-0.10.0/tabs.js"></script><script src="libs/bs3compat-0.10.0/bs3compat.js"></script><link href="libs/bs4_book-1.0.0/bs4_book.css" rel="stylesheet">
2626
<script src="libs/bs4_book-1.0.0/bs4_book.js"></script><meta name="citation_title" content="Geocomputation with R">
2727
<meta name="citation_author" content="Robin Lovelace">
2828
<meta name="citation_author" content="Jakub Nowosad">
@@ -129,7 +129,7 @@ <h2>Second Edition</h2>
129129
<footer class="bg-primary text-light mt-5"><div class="container"><div class="row">
130130

131131
<div class="col-12 col-md-6 mt-3">
132-
<p>"<strong>Geocomputation with R</strong>" was written by Robin Lovelace, Jakub Nowosad, Jannes Muenchow. It was last built on 2026-01-30.</p>
132+
<p>"<strong>Geocomputation with R</strong>" was written by Robin Lovelace, Jakub Nowosad, Jannes Muenchow. It was last built on 2026-05-12.</p>
133133
</div>
134134

135135
<div class="col-12 col-md-6 mt-3">

adv-map.html

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -22,7 +22,7 @@
2222
<script src="libs/bootstrap-4.6.0/bootstrap.bundle.min.js"></script><link href="libs/Lato-0.4.10/font.css" rel="stylesheet">
2323
<link href="libs/Roboto_Mono-0.4.10/font.css" rel="stylesheet">
2424
<link href="libs/Montserrat-0.4.10/font.css" rel="stylesheet">
25-
<script src="libs/bs3compat-0.9.0/transition.js"></script><script src="libs/bs3compat-0.9.0/tabs.js"></script><script src="libs/bs3compat-0.9.0/bs3compat.js"></script><link href="libs/bs4_book-1.0.0/bs4_book.css" rel="stylesheet">
25+
<script src="libs/bs3compat-0.10.0/transition.js"></script><script src="libs/bs3compat-0.10.0/tabs.js"></script><script src="libs/bs3compat-0.10.0/bs3compat.js"></script><link href="libs/bs4_book-1.0.0/bs4_book.css" rel="stylesheet">
2626
<script src="libs/bs4_book-1.0.0/bs4_book.js"></script><meta name="citation_title" content="Chapter 9 Making maps with R | Geocomputation with R">
2727
<meta name="citation_author" content="Robin Lovelace">
2828
<meta name="citation_author" content="Jakub Nowosad">
@@ -1343,7 +1343,7 @@ <h2>Second Edition</h2>
13431343
<footer class="bg-primary text-light mt-5"><div class="container"><div class="row">
13441344

13451345
<div class="col-12 col-md-6 mt-3">
1346-
<p>"<strong>Geocomputation with R</strong>" was written by Robin Lovelace, Jakub Nowosad, Jannes Muenchow. It was last built on 2026-01-30.</p>
1346+
<p>"<strong>Geocomputation with R</strong>" was written by Robin Lovelace, Jakub Nowosad, Jannes Muenchow. It was last built on 2026-05-12.</p>
13471347
</div>
13481348

13491349
<div class="col-12 col-md-6 mt-3">

algorithms.html

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -22,7 +22,7 @@
2222
<script src="libs/bootstrap-4.6.0/bootstrap.bundle.min.js"></script><link href="libs/Lato-0.4.10/font.css" rel="stylesheet">
2323
<link href="libs/Roboto_Mono-0.4.10/font.css" rel="stylesheet">
2424
<link href="libs/Montserrat-0.4.10/font.css" rel="stylesheet">
25-
<script src="libs/bs3compat-0.9.0/transition.js"></script><script src="libs/bs3compat-0.9.0/tabs.js"></script><script src="libs/bs3compat-0.9.0/bs3compat.js"></script><link href="libs/bs4_book-1.0.0/bs4_book.css" rel="stylesheet">
25+
<script src="libs/bs3compat-0.10.0/transition.js"></script><script src="libs/bs3compat-0.10.0/tabs.js"></script><script src="libs/bs3compat-0.10.0/bs3compat.js"></script><link href="libs/bs4_book-1.0.0/bs4_book.css" rel="stylesheet">
2626
<script src="libs/bs4_book-1.0.0/bs4_book.js"></script><meta name="citation_title" content="Chapter 11 Scripts, algorithms and functions | Geocomputation with R">
2727
<meta name="citation_author" content="Robin Lovelace">
2828
<meta name="citation_author" content="Jakub Nowosad">
@@ -529,7 +529,7 @@ <h2>Second Edition</h2>
529529
<footer class="bg-primary text-light mt-5"><div class="container"><div class="row">
530530

531531
<div class="col-12 col-md-6 mt-3">
532-
<p>"<strong>Geocomputation with R</strong>" was written by Robin Lovelace, Jakub Nowosad, Jannes Muenchow. It was last built on 2026-01-30.</p>
532+
<p>"<strong>Geocomputation with R</strong>" was written by Robin Lovelace, Jakub Nowosad, Jannes Muenchow. It was last built on 2026-05-12.</p>
533533
</div>
534534

535535
<div class="col-12 col-md-6 mt-3">

attr.html

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -22,7 +22,7 @@
2222
<script src="libs/bootstrap-4.6.0/bootstrap.bundle.min.js"></script><link href="libs/Lato-0.4.10/font.css" rel="stylesheet">
2323
<link href="libs/Roboto_Mono-0.4.10/font.css" rel="stylesheet">
2424
<link href="libs/Montserrat-0.4.10/font.css" rel="stylesheet">
25-
<script src="libs/bs3compat-0.9.0/transition.js"></script><script src="libs/bs3compat-0.9.0/tabs.js"></script><script src="libs/bs3compat-0.9.0/bs3compat.js"></script><link href="libs/bs4_book-1.0.0/bs4_book.css" rel="stylesheet">
25+
<script src="libs/bs3compat-0.10.0/transition.js"></script><script src="libs/bs3compat-0.10.0/tabs.js"></script><script src="libs/bs3compat-0.10.0/bs3compat.js"></script><link href="libs/bs4_book-1.0.0/bs4_book.css" rel="stylesheet">
2626
<script src="libs/bs4_book-1.0.0/bs4_book.js"></script><meta name="citation_title" content="Chapter 3 Attribute data operations | Geocomputation with R">
2727
<meta name="citation_author" content="Robin Lovelace">
2828
<meta name="citation_author" content="Jakub Nowosad">
@@ -861,7 +861,7 @@ <h2>Second Edition</h2>
861861
<footer class="bg-primary text-light mt-5"><div class="container"><div class="row">
862862

863863
<div class="col-12 col-md-6 mt-3">
864-
<p>"<strong>Geocomputation with R</strong>" was written by Robin Lovelace, Jakub Nowosad, Jannes Muenchow. It was last built on 2026-01-30.</p>
864+
<p>"<strong>Geocomputation with R</strong>" was written by Robin Lovelace, Jakub Nowosad, Jannes Muenchow. It was last built on 2026-05-12.</p>
865865
</div>
866866

867867
<div class="col-12 col-md-6 mt-3">

conclusion.html

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -22,7 +22,7 @@
2222
<script src="libs/bootstrap-4.6.0/bootstrap.bundle.min.js"></script><link href="libs/Lato-0.4.10/font.css" rel="stylesheet">
2323
<link href="libs/Roboto_Mono-0.4.10/font.css" rel="stylesheet">
2424
<link href="libs/Montserrat-0.4.10/font.css" rel="stylesheet">
25-
<script src="libs/bs3compat-0.9.0/transition.js"></script><script src="libs/bs3compat-0.9.0/tabs.js"></script><script src="libs/bs3compat-0.9.0/bs3compat.js"></script><link href="libs/bs4_book-1.0.0/bs4_book.css" rel="stylesheet">
25+
<script src="libs/bs3compat-0.10.0/transition.js"></script><script src="libs/bs3compat-0.10.0/tabs.js"></script><script src="libs/bs3compat-0.10.0/bs3compat.js"></script><link href="libs/bs4_book-1.0.0/bs4_book.css" rel="stylesheet">
2626
<script src="libs/bs4_book-1.0.0/bs4_book.js"></script><meta name="citation_title" content="Chapter 16 Conclusion | Geocomputation with R">
2727
<meta name="citation_author" content="Robin Lovelace">
2828
<meta name="citation_author" content="Jakub Nowosad">
@@ -444,7 +444,7 @@ <h2>Second Edition</h2>
444444
<footer class="bg-primary text-light mt-5"><div class="container"><div class="row">
445445

446446
<div class="col-12 col-md-6 mt-3">
447-
<p>"<strong>Geocomputation with R</strong>" was written by Robin Lovelace, Jakub Nowosad, Jannes Muenchow. It was last built on 2026-01-30.</p>
447+
<p>"<strong>Geocomputation with R</strong>" was written by Robin Lovelace, Jakub Nowosad, Jannes Muenchow. It was last built on 2026-05-12.</p>
448448
</div>
449449

450450
<div class="col-12 col-md-6 mt-3">

0 commit comments

Comments
 (0)