[R] polygon shapefile from line edge coordinate list

From: Murray Richardson <murray.richardson_at_utoronto.ca>
Date: Fri, 07 Mar 2008 11:21:09 -0500


Hello,

I am looking for advice on a task I am trying to complete.

I have a 4 column dataframe defining the start and end coordinates of line edges (from a CGAL alpha shapes function to define concave hulls from point clusters). I would like to create polygon shapefiles from these line edges, presumably creating lines first and then polygons.

e.g. columns are:

startX startY endX endY

where each row represents start and end coordinates of a line segment.

I am new to R spatial packages and I am not sure which one is best suited to this task. There seems to be a lot of options, which is great but hard to know which one to start with. Any suggestions on the best way to proceed with this? One further challenge is that the list includes line segments defining multiple polygons.

Thanks for any advice.

Murray



R-help_at_r-project.org mailing list
https://stat.ethz.ch/mailman/listinfo/r-help PLEASE do read the posting guide http://www.R-project.org/posting-guide.html and provide commented, minimal, self-contained, reproducible code. Received on Fri 07 Mar 2008 - 16:24:06 GMT

Archive maintained by Robert King, hosted by the discipline of statistics at the University of Newcastle, Australia.
Archive generated by hypermail 2.2.0, at Sat 08 Mar 2008 - 13:30:22 GMT.

Mailing list information is available at https://stat.ethz.ch/mailman/listinfo/r-help. Please read the posting guide before posting to the list.

list of date sections of archive