Define cellsize from spsample in meters

المشرف العام

Administrator
طاقم الإدارة
I use a shape file to create a regular grid using spsample, from sp package.

Two problems here: (1) I would like to define the size of my grid cells in meters, but I've checked the documentation of sp and it is not clear what is the default unit of measure ; (2) This code works to create hexagonal grid but I can't make this work to create a regular grid. Any ideas?

Here is a reproducible example:

# load libraries library(sp) library(rgdal)Download a shape file

URL
 
أعلى