[R] gpc.poly datatype

Derek Lacoursiere Derek.Lacoursiere at ufv.ca
Wed Jun 10 19:53:35 CEST 2009


I have a list of polygons generated by the contourLines() command (each
object of the list is a list in itself with two objects: a vector of x
values, and a vector of y values for each vertex).  I wish to convert that
list into a gpc.poly object of multiple contours.  How do I do this?  gpclib
apparently has no method of coercing lists into the gpc.poly object type.  
As well, when I have a gpc.poly object, I can view the points using the
get.pts() command, but cannot find a way of only extracting the x values of
a polygon (or the y values, for that matter).  How do I do this?
Any help would be greatly appreciated
-- 
View this message in context: http://www.nabble.com/gpc.poly-datatype-tp23967664p23967664.html
Sent from the R help mailing list archive at Nabble.com.




More information about the R-help mailing list