This function creates an ESRI shapefile from an sp package object. The function can also accommodate an object created by the grts or irs functions in spsurvey. The type of shapefile, i.e., point, polyline, or polygon, is determined by the class of the input object, which must be either "SpatialDesign", "SpatialPointsDataFrame", "SpatialLinesDataFrame", or "SpatialPolygonsDataFrame".
sp2shape(sp.obj, shpfilename = "tempfile", prjfilename = NULL)
The sp package object or object created by either the grts or irs functions.
Name (without any extension) of the output shapefile. The default is "tempfile".
Name (without any extension) of the projection file for the output shapefile. The default is NULL.
An ESRI shapefile of type point, polyline, or polygon.
writeShapeFilePoint
C function to create a point shapefile
writeShapeFilePolygon
C function to create a polyline or polygon shapefile