Skip to content

Commit 5005187

Browse files
committed
CRAN submission
1 parent e1c93e8 commit 5005187

File tree

2 files changed

+10
-5
lines changed

2 files changed

+10
-5
lines changed

NEWS.md

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,7 @@
11
# version 1.0-23
22

3+
* allow tests reading blosc compressed Zarr files to fail
4+
35
* `st_as_sf.data.frame()` sets `z_range` and `m_range` if needed; https://github.com/geoarrow/geoarrow-r/issues/75
46

57
# version 1.0-22

tests/stars.Rout.save

Lines changed: 8 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -262,12 +262,14 @@ First 10 features:
262262
> if (require(stars, quietly = TRUE)) {
263263
+ p = normalizePath(system.file("nc/ones.zarr.zip", package = "sf"))
264264
+ z = paste0('ZARR:/vsizip/"', p, '"/ones.zarr')
265-
+ gdal_utils("mdiminfo", z)
266-
+ cat("\n")
265+
+ d = try(gdal_utils("mdiminfo", z))
266+
+ if (!inherits(d, "try-error")) {
267+
+ print(d)
268+
+ cat("\n")
269+
+ }
267270
+ e = try(read_stars(z, normalize_path = FALSE), silent = TRUE)
268271
+ f = try(read_mdim(z, normalize_path = FALSE), silent = TRUE)
269272
+ if (inherits(e, "try-error") || inherits(f, "try-error")) {
270-
+ print(e)
271273
+ print("error when reading blosc-compressed Zarr file: blosc not supported?")
272274
+ } else {
273275
+ print(e)
@@ -307,7 +309,8 @@ First 10 features:
307309
}
308310
}
309311
}
310-
}
312+
}[1] "{\n \"type\": \"group\",\n \"driver\": \"Zarr\",\n \"name\": \"/\",\n \"arrays\": {\n \"ones\": {\n \"datatype\": \"Int32\",\n \"dimensions\": [\n {\n \"name\": \"dim0\",\n \"full_name\": \"dim0\",\n \"size\": 100\n },\n {\n \"name\": \"dim1\",\n \"full_name\": \"dim1\",\n \"size\": 100\n }\n ],\n \"dimension_size\": [\n 100,\n 100\n ],\n \"block_size\": [\n 50,\n 50\n ],\n \"nodata_value\": 0,\n \"structural_info\": {\n \"COMPRESSOR\": \"{ \\\"blocksize\\\": 0, \\\"clevel\\\": 5, \\\"cname\\\": \\\"lz4\\\", \\\"id\\\": \\\"blosc\\\", \\\"shuffle\\\": 1 }\"\n }\n }\n }\n}"
313+
311314
stars object with 2 dimensions and 1 attribute
312315
attribute(s):
313316
Min. 1st Qu. Median Mean 3rd Qu. Max.
@@ -327,4 +330,4 @@ dim0 1 100 0.5 1 [y]
327330
>
328331
> proc.time()
329332
user system elapsed
330-
1.943 3.833 1.595
333+
2.402 4.034 2.082

0 commit comments

Comments
 (0)