Search code examples
rgeospatial

Marmap create.buffer returns error even with correct arguments


Function won't work and will raise error pointing out to the adehabitatMA dependency. My arguments are correct i.e., a 'bathy' object, a 2-col dataframe and radius in decimal degrees.


Solution

  • As explained here, the problem is neither due to marmap nor adehabitatMA but rather to incompatible scales between your bathymetric grid and the very small size of the buffer you want to create: you can't have a buffer of less than 2 cells in diameter. Otherwise, it's called "a point", not a buffer.