Prof. Kaza, Thank you very much. It worked like a charm! Best wishes, Thiago.
--- On Wed, 9/6/10, Nikhil Kaza <nikhil.l...@gmail.com> wrote: From: Nikhil Kaza <nikhil.l...@gmail.com> Subject: Re: [R-sig-Geo] How to extract coordinates values from a shapefile? To: "Thiago Veloso" <thi_vel...@yahoo.com.br> Cc: r-sig-geo@stat.math.ethz.ch Date: Wednesday, 9 June, 2010, 16:37 You need to execute gpclibPermit() to enable gpclib. library(maptools) should have issued a warning to that effect. Nikhil KazaAsst. Professor,City and Regional PlanningUniversity of North Carolina nikhil.l...@gmail.com On Jun 9, 2010, at 3:34 PM, Thiago Veloso wrote: Dear Nikhil, Thank you for your input. I tried your suggestion and received the following error: > fortify(br)Using UF_05 to define regions.Error: isTRUE(gpclibPermitStatus()) > is not TRUE> Do you know what else could be done? Best wishes, Thiago. --- On Wed, 9/6/10, Nikhil Kaza <nikhil.l...@gmail.com> wrote: From: Nikhil Kaza <nikhil.l...@gmail.com> Subject: Re: [R-sig-Geo] How to extract coordinates values from a shapefile? To: "Thiago Veloso" <thi_vel...@yahoo.com.br> Cc: r-sig-geo@stat.math.ethz.ch Date: Wednesday, 9 June, 2010, 16:00 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.l...@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@stat.math.ethz.ch > https://stat.ethz.ch/mailman/listinfo/r-sig-geo [[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