Skip to content

Commit 1760ba9

Browse files
Merge pull request #1126 from OldLipe/feat/dev-sits
Fix `gdal_presets` for sits_regularize
2 parents c60bdca + 7b2211a commit 1760ba9

File tree

2 files changed

+2
-5
lines changed

2 files changed

+2
-5
lines changed

R/api_gdal.R

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -156,7 +156,7 @@
156156
),
157157
params = list(
158158
"-ot" = data_type,
159-
"-of" = .conf("gdal_presets", "block", "of"),
159+
"-of" = .conf("gdal_presets", "image", "of"),
160160
"-b" = rep(1, nlayers),
161161
"-outsize" = list(.ncols(block), .nrows(block)),
162162
"-scale" = list(0, 1, miss_value, miss_value),
@@ -165,7 +165,7 @@
165165
.xmin(bbox), .ymax(bbox), .xmax(bbox), .ymin(bbox)
166166
),
167167
"-a_nodata" = miss_value,
168-
"-co" = .conf("gdal_presets", "block", "co")
168+
"-co" = .conf("gdal_presets", "image", "co")
169169
),
170170
quiet = TRUE
171171
)

inst/extdata/config_internals.yml

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -215,9 +215,6 @@ gdal_presets :
215215
cog :
216216
overviews : [2, 4, 8, 16]
217217
method : "NEAREST"
218-
block :
219-
of : "GTiff"
220-
co : ["COMPRESS=NONE", "BIGTIFF=NO"] # cannot be tiled!
221218
image :
222219
of : "GTiff"
223220
co : ["COMPRESS=LZW", "PREDICTOR=2", "BIGTIFF=YES",

0 commit comments

Comments
 (0)