Given a matrix of coords with cols (x,y), and a character string representing a coordinate projection, returns a SpatialPolygon defined by coords of mat in projection crs_ref.

spatialize(mat, crs_ref)

Arguments

mat

is a matrix of coords with cols (x,y)

crs_ref

is a character string representing a coordinate projection for proj4string

Value

a SpatialPolygon defined by coords of mat in projection crs_ref