Skip to contents

Convert an INLA mesh to a SpatialPolygonsDataFrame

Usage

mesh_to_spatial(mesh, crs)

Arguments

mesh

Mesh object from INLA or fmesher (only R2 manifolds are valid)

crs

Coordinate Reference System as proj4string, does not support geocentric coordinates

Value

SpatialPolygonsDataFrame with mesh triangles