[R] Retrieving Vertices Coordinates from SpatialPolygons
David Winsemius
dwinsemius at comcast.net
Sat Mar 21 15:00:08 CET 2009
If it is in an S4 slot then there should be an extraction function,
possibly with an obvious name like coords(). Failing that you could
offer the name of the package that you are using. Perhaps that would
contain an example to be used for illustration.
--
David Winsemius
On Mar 21, 2009, at 8:33 AM, Enrico R. Crema wrote:
> Dear List,
>
> I'm trying to use different R packages for my Teaching Assistantship
> classes. And I cam out to an (apparently) very simple problem. I would
> like to retrieve the vertices coordinate of a SpatialPolygon data. I
> know this is stored in the "coords" slot, but I can't get access to
> it! I tried to coerce the SpatialPolygon into a data.frame but it
> doesn't work. Want I want is just a list of x and y coordinates of my
> polygon vertices without doing the workflow in GRASS!!!
More information about the R-help
mailing list