Skip to content

Commit

Permalink
err
Browse files Browse the repository at this point in the history
  • Loading branch information
mdsumner committed Jun 1, 2024
1 parent 979cac7 commit a4b0862
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion inst/include/gdalapplib/gdalapplib.h
Original file line number Diff line number Diff line change
Expand Up @@ -196,7 +196,7 @@ inline List gdalwarp_applib(CharacterVector source_filename,
inline CharacterVector gdalbuildvrt_applib(std::vector<std::string> dsn,
std::vector<std::string> options) {
CharacterVector out(1);

int err;
GDALBuildVRTOptions* opt = GDALBuildVRTOptionsNew(string_to_charptr(options).data(), nullptr);
GDALDataset *vrt = (GDALDataset*)GDALBuildVRT("", dsn.size(), nullptr, string_to_charptr(dsn).data(), opt, &err);
out[0] = vrt->GetMetadata("xml:VRT")[0];
Expand Down

0 comments on commit a4b0862

Please sign in to comment.