On Tue, Apr 9, 2013 at 4:41 PM, Steven Ranney <steven.ran...@gmail.com> wrote:

> When I try to spTransform() the proj4string in barabay,
>
> spTransform(barabay, CRS("+proj=latlong +datum=WGS84 +ellps=WGS84
> +towgs84=0,0,0"))
>
> R prints out the object of barabay, including all of the lat/long values
> associated with the polygons.

 R doesn't (or rarely) replaces objects - you need to assign the
result of spTransform to something, eg:

barabayTrans = spTransform(barabay, CRS("..etc..."))

otherwise R just prints the result of spTransform, which is what you saw!

Barry

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

Reply via email to