:56 -0400
Subject: Re: [R] extracting slot coords from a Polygons class object
From: sarah.gos...@gmail.com
To: pisican...@hotmail.com
CC: r-help@r-project.org
You didn't parse the output you pasted in correctly:
pt1.cpoly@polygons[[1]]@Polygons[[1]]@coords
or
coordinates(pt1.cpoly
Subject: Re: [R] extracting slot coords from a Polygons class object
From: sarah.gos...@gmail.com
To: pisican...@hotmail.com
CC: r-help@r-project.org
You didn't parse the output you pasted in correctly:
pt1.cpoly@polygons[[1]]@Polygons[[1]]@coords
or
coordinates(pt1.cpoly
Hi,
I am struggling to extract the polygon vertices from a list of an object class
Polygons, specifically the slot coords.
I have a point, and i draw a buffer around with gBuffer, i am extracting
the polygon form the SpatialPolygons class and i end up with a list of 1 one
object
You didn't parse the output you pasted in correctly:
pt1.cpoly@polygons[[1]]@Polygons[[1]]@coords
or
coordinates(pt1.cpoly@polygons[[1]]@Polygons[[1]])
class(pt1.cpoly)
[1] SpatialPolygons
attr(,package)
[1] sp
So see
?SpatialPolygons-class
for details.
Sarah
On Wed, Apr 8, 2015 at 5:07
It would be better to ask this question on r-sig-geo. More people there
are more familiar with the structure of Spatial{*} classes.
-Don
--
Don MacQueen
Lawrence Livermore National Laboratory
7000 East Ave., L-627
Livermore, CA 94550
925-423-1062
On 4/8/15, 2:07 PM, Monica Pisica
5 matches
Mail list logo