Dear list members,

I am trying to save a spatial point object as a shapefile, but I got an 
error that I do not have the right object class, why?

 > sitiosMikeCRTM05
SpatialPoints:
              x       y
  [1,] 480244.6 1181636
  [2,] 480651.1 1184371
  [3,] 477555.2 1181189
  [4,] 486482.8 1167946
  [5,] 483764.4 1164624
  [6,] 477301.6 1192979
  [7,] 483737.4 1192048
  [8,] 480760.2 1192652
  [9,] 479985.8 1150756
[10,] 481748.5 1148902
[11,] 476126.6 1165617
[12,] 464735.7 1167079
[13,] 481182.4 1185941
[14,] 500632.8 1132727
Coordinate Reference System (CRS) arguments: +proj=tmerc +lon_0=-84 
+lat_0=0 +x_0=500000 +k=0.9999 +datum=WGS84 +ellps=WGS84 +towgs84=0,0,0

 > writeOGR(sitiosMikeCRTM05, 
dsn="C:/ProyectosRespacial/CBSS/Shapefiles_proyectados", 
layer="sitiosMikeCRTM05", driver="ESRI Shapefile")
Error en writeOGR(sitiosMikeCRTM05, dsn = 
"C:/ProyectosRespacial/CBSS/Shapefiles_proyectados",  :
   obj of wrong class

Best,

Manuel



-- 
*Manuel Spínola, Ph.D.*
Instituto Internacional en Conservación y Manejo de Vida Silvestre
Universidad Nacional
Apartado 1350-3000
Heredia
COSTA RICA
mspinola@una.ac.cr
mspinola10@gmail.com
Teléfono: (506) 2277-3598
Fax: (506) 2237-7036
Personal website: Lobito de río 
<https://sites.google.com/site/lobitoderio/>
Institutional website: ICOMVIS <http://www.icomvis.una.ac.cr/>

	[[alternative HTML version deleted]]

