R: how to write a raster to disk without auxiliary file?

前端 未结 1 1000
借酒劲吻你
借酒劲吻你 2021-01-19 03:14

I\'m writing a dataset to file in ERMapper format (.ers) using the Raster package in R, but I\'m having issues with the resulting .aux.xml auxiliary file (which I\'m actuall

相关标签:
1条回答
  • 2021-01-19 03:34

    Options related to the GDAL file format drivers can be set using the (not so easy to find) rgdal::setCPLConfigOption function.

    In your case,

    rgdal::setCPLConfigOption("GDAL_PAM_ENABLED", "FALSE")
    

    should disable the xml file creation.

    HTH

    0 讨论(0)
提交回复
热议问题