njtierney / geotargets

Targets extensions for geospatial data
https://njtierney.github.io/geotargets/
Other
60 stars 4 forks source link

fix for empty GEOTARGETS_GDAL_RASTER_CREATION_OPTIONS #40

Closed brownag closed 8 months ago

brownag commented 8 months ago

In #30 I replaced the unset value returned by Sys.getenv() for GEOTARGETS_GDAL_RASTER_CREATION_OPTIONS

Calling strsplit("", ";)[[1]] returns character(0), which will cause an error in Sys.getenv(). This PR gets us the intended default value of ""

njtierney commented 8 months ago

Nice work! That's a good catch. I think writing a test here would be a good idea (I'm very happy to tackle that!) - lodged #41