Skip to content
Prev 6512 / 29559 Next

Convert SpatialPointsDataFrame to a SpatialGridDataFrame

On Wed, 23 Sep 2009, Brendan Malone wrote:

            
Your input data are in geographical coordinates, and you are projecting 
(no datum transformation) to UTM. This inevitably means that while the 
input points are evenly spaced, the projected points are not, and do not 
constitute a regular grid (see any introduction to projections). To get a 
regular grid out, you will have to warp, that is interpolate, to a regular 
grid from the irregular points that you have generated.

Either use an interpolator such as idw() in gstat (see the task view for 
more), or use for example gdal_warp externally.

This is getting to be a FAQ, isn't it? Could someone put it in the R-wiki 
under spatial data?

Roger