Used to convert spatial data with no spatial class to a sf object.
This is useful if the spatial data was read from a non-spatial file type,
e.g. a CSV file.
Arguments
- dat
Spatial data containing information on fishery management or regulatory zones.
- lon
Longitude variable in
spatdat.- lat
Latitude variable in
spatdat.- id
Spatial feature ID column.
- cast
Spatial feature type to create. Commonly used options are
"POINT","LINESTRING", and"POLYGON". Seest_castfor details.- multi
Logical, use if needing to convert to a multi-featured (grouped)
sfobject, e.g.MULTIPOLYGONorMULTILINESTRING.- crs
Coordinate reference system to assign to
dat. Defaults to WGS 84 (EPSG: 4326).
