[R-sig-Geo] How to extract coordinates values from a shapefile?
Nikhil Kaza
nikhil.list at gmail.com
Wed Jun 9 21:00:56 CEST 2010
Look at this. Not sure if this is indeed what you want or if you
actually have to unproject them.
http://www.mail-archive.com/r-sig-geo@stat.math.ethz.ch/msg04715.html
require(ggplot2)
fortify(br)
Nikhil Kaza
Asst. Professor,
City and Regional Planning
University of North Carolina
nikhil.list at gmail.com
On Jun 9, 2010, at 2:45 PM, Thiago Veloso wrote:
> Dear R colleagues,
> Does anyone know if it's possible to create a vector with
> coordinate values extracted from a shape loaded with readShapePoly
> command of "maptools" package?
> For example, the following code loads the shapefile containing
> Brazilian states division:
> library(maptools)br<-readShapePoly("BR-map/3.shp")
> What I need to do is create a vector which contains all lat and
> lon values inside this shapefile...
> Thanks in advance,
> Thiago Veloso.
>
>
>
> [[alternative HTML version deleted]]
>
> _______________________________________________
> R-sig-Geo mailing list
> R-sig-Geo at stat.math.ethz.ch
> https://stat.ethz.ch/mailman/listinfo/r-sig-geo
More information about the R-sig-Geo
mailing list