r-spatial / gstat

Spatial and spatio-temporal geostatistical modelling, prediction and simulation
http://r-spatial.github.io/gstat/
GNU General Public License v2.0
195 stars 49 forks source link

preserve projection of original object in gstatcv output #84

Closed slager closed 3 years ago

slager commented 3 years ago

the return object in the current code lacks a spatial projection, even if the input had a projection

edzer commented 3 years ago

Thanks; I did it slightly different as calls to proj4string() should be avoided as they drop the wkt in the object's comments (which is CRS loss, and causes a warning).

slager commented 3 years ago

Ok, good point, I'd be happy to revise the pull request

edzer commented 3 years ago

The issue should be fixed now, would be great if you could verify.

slager commented 3 years ago

This fixed it for my use case. Thanks for the speedy package maintenance.