Skip to content

Commit

Permalink
make useful names; #13
Browse files Browse the repository at this point in the history
  • Loading branch information
edzer committed Sep 21, 2018
1 parent 305ae14 commit 95d681d
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion R/sf.R
Original file line number Diff line number Diff line change
Expand Up @@ -167,5 +167,5 @@ st_as_stars.sf = function(.x, ...) {
st_rasterize = function(sf, template = st_as_stars(st_bbox(sf), values = NA_real_),
file = tempfile(), driver = "GTiff", options = character(0)) {
gdal_rasterize(sf, template, get_geotransform(template), file, driver, options)
read_stars(file, driver = driver)
setNames(read_stars(file, driver = driver), names(sf)[1])
}

0 comments on commit 95d681d

Please sign in to comment.