-
Notifications
You must be signed in to change notification settings - Fork 96
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
vrt
ignores options on Mac OS
#1410
Comments
terra uses the GDAL tool for that, so the variation between OSs is probably due to different versions of GDAL. Also see #1341 |
I don't think it's a GDAL version issue. If I use:
I can create the file correctly. |
Maybe, but that does not really prove it, as the sf function directly uses the GDAL tool (gdalbuildvrt) whereas terra calls the C interface GDALBuildVRT. I may have made a mistake, but since it works on other platforms, I still suspect that the GDAL version plays a role. We would probably need some dockers on linux to corroborate or disprove that this would be broken in the current CRAN/windows GDAL (version 3.7.2). |
This seems to be reproducible on macOS 12 with GDAL 3.8.1: https://github.com/kadyb/test3/actions/runs/7712093740/job/21018843693 Repository: https://github.com/kadyb/test3 |
No, see https://github.com/r-spatial/sf/blob/main/src/gdal_utils.cpp#L345 |
When attempting to create a
vrt
where multiple files are treated as separate bands, the command fails on OSX but works fine in Linux. On OSX, the problem seems to be that theoptions
are ignored:This is the same output as we get from:
On Ubuntu, the
-separate
flag gives me a raster with two layers as expected.A similar problem is seen using the example for
vrt
(which uses optiontr
),so, this is a problem with
options
in general and not the specific options chosen.Using
terra
version 1.7-65 andgdal
v 3.5.3. Also, tested onterra
dev 1.7-69The text was updated successfully, but these errors were encountered: