sp2shape              package:spsurvey              R Documentation

_C_o_n_v_e_r_t _a_n _s_p _P_a_c_k_a_g_e _O_b_j_e_c_t _t_o _a_n _E_S_R_I _S_h_a_p_e_f_i_l_e

_D_e_s_c_r_i_p_t_i_o_n:

     This function creates an ESRI shapefile from an sp package object.
      The type  of shapefile, i.e., point, polyline, or polygon, is
     determined by the class of the sp object, which must be either
     "SpatialPointsDataFrame", "SpatialLinesDataFrame", or
     "SpatialPolygonsDataFrame".

_U_s_a_g_e:

     sp2shape(sp.obj, shpfilename="tempfile", prjfilename=NULL)

_A_r_g_u_m_e_n_t_s:

  sp.obj: the sp package object.

shpfilename: name (without any extension) of the output shapefile.  The
          default is "tempfile".

prjfilename: name (without any extension) of the projection file for
          the output shapefile.  The default is NULL.

_V_a_l_u_e:

     An ESRI shapefile of type point, polyline, or polygon.

_A_u_t_h_o_r(_s):

     Tom Kincaid Kincaid.Tom@epa.gov

_R_e_f_e_r_e_n_c_e_s:

     ESRI Shapefile Technical Description:  <URL:
     http://www.esri.com/library/whitepapers/pdfs/shapefile.pdf>

_E_x_a_m_p_l_e_s:

       ## Not run: 
       sp2shape(my.sp.object, "my.shapefile")
       
     ## End(Not run)

