Skip to content

Commit

Permalink
Fix precomputed vignette
Browse files Browse the repository at this point in the history
  • Loading branch information
dieghernan committed Feb 17, 2022
1 parent 535a88a commit 9cdfb42
Show file tree
Hide file tree
Showing 10 changed files with 14,978 additions and 6 deletions.
1 change: 0 additions & 1 deletion data-raw/.gitignore

This file was deleted.

1 change: 1 addition & 0 deletions data-raw/cache/.gitignore
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
A.ES.SDGC.BU.46900/
Binary file added data-raw/cache/A.ES.SDGC.BU.46900.zip
Binary file not shown.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
9,099 changes: 9,099 additions & 0 deletions data-raw/cache/ES.SDGC.BU.atom.xml

Large diffs are not rendered by default.

5,876 changes: 5,876 additions & 0 deletions data-raw/cache/ES.SDGC.bu.atom_46.xml

Large diffs are not rendered by default.

7 changes: 2 additions & 5 deletions vignettes/CatastRo.Rmd
Original file line number Diff line number Diff line change
Expand Up @@ -89,20 +89,16 @@ stadium <- catr_wfs_bu_bbox(
c(-3.6891446916, 40.4523311971, -3.687462138, 40.4538643165),
srs = 4326
)
#> Error in catr_hlp_dwnload(api_entry, filename, cache_dir = tempdir(), :
#> Execution halted

# Now extract cadastral parcels. We can use spatial objects on the query

stadium_parcel <- catr_wfs_cp_bbox(stadium)
#> Error in wfs_bbox(bbox, srs): object 'stadium' not found

# Extract imagery: Labels of the parcel

labs <- catr_wms_layer(stadium_parcel,
what = "parcel"
)
#> Error in get_sf_from_bbox(bbox, srs): object 'stadium_parcel' not found

# Plot
library(ggplot2)
Expand All @@ -112,9 +108,10 @@ ggplot() +
layer_spatraster(labs) +
geom_sf(data = stadium_parcel, fill = NA, col = "red", size = 2) +
geom_sf(data = stadium, fill = "red", alpha = .5)
#> Error in layer_spatraster(labs): data object is not SpatRaster. See ?terra::rast()
```

<img src="./santbernabeu-1.png" title="plot of chunk santbernabeu" alt="plot of chunk santbernabeu" width="100%" />

### Thematic maps

We can create also thematic maps using the information available on the spatial
Expand Down
Binary file modified vignettes/dataviz-1.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file modified vignettes/minimal-1.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added vignettes/santbernabeu-1.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.

0 comments on commit 9cdfb42

Please sign in to comment.