Dear list members,

I am projecting shapefiles with spTransform, but when I write the shapefile
into a new shapefile I loss the fields and rows from the original shapefile
(the file is almost empty).
I am probably doing something wrong but I don't know what.


cob = readOGR(dsn="C:/ProyectoRespacial/CBSS/LAINcambios",
layer="coberturascsls2006_cr05")

cob.transf = spTransform(cob, CRS("+proj=tmerc +lon_0=-84 +lat_0=0
+x_0=500000 +k=0.9999 +datum=WGS84")) # to CRTM05

writeOGR(corr.transf,
dsn="C:/ProyectoRespacial/CBSS/Shapefiles_proyectados",
layer="coberturaCRTM05", driver="ESRI Shapefile")

Thank you very much in advance.
Best,

Manuel

        [[alternative HTML version deleted]]

_______________________________________________
R-sig-Geo mailing list
R-sig-Geo@stat.math.ethz.ch
https://stat.ethz.ch/mailman/listinfo/r-sig-geo

Reply via email to