Re: [R-sig-Geo] Combining multiple polylines into a single polyline

2010-06-18 Thread Mayeul KAUFFMANN
3) -Original Message- From: r-sig-geo-boun...@stat.math.ethz.ch [mailto:r-sig-geo-boun...@stat.math.ethz.ch] On Behalf Of Roger Bivand Sent: Thursday, June 17, 2010 11:51 AM To: Don MacQueen Cc: r-sig-geo@stat.math.ethz.ch; Colin Rundel Subject: Re: [R-sig-Geo] Combining multiple polylin

Re: [R-sig-Geo] Combining multiple polylines into a single polyline

2010-06-17 Thread Colin Rundel
This is something that rgeos is able to do and I believe that the necessary functions are already implemented. GEOS provides a simple function called LineMerge that looks at a collection of linestrings and joins any that share endpoints. There are some limitation as it just ignores more complex

Re: [R-sig-Geo] Combining multiple polylines into a single polyline

2010-06-17 Thread Nikhil Kaza
Not a R solution. But does v.generalize in grass help? http://grass.osgeo.org/wiki/V.generalize_tutorial Nikhil Kaza Asst. Professor, City and Regional Planning University of North Carolina nikhil.l...@gmail.com On Jun 12, 2010, at 8:05 PM, Don MacQueen wrote: I have an input shapefile rep

Re: [R-sig-Geo] Combining multiple polylines into a single polyline

2010-06-17 Thread Roger Bivand
On Sat, 12 Jun 2010, Don MacQueen wrote: I have an input shapefile representing roads in a city, read into R where it becomes a SpatialLInesDataFrame. Looking at just one road at a time, it looks fine when plotted. But in the underlying structure, the single real-world road has been broken up

[R-sig-Geo] Combining multiple polylines into a single polyline

2010-06-12 Thread Don MacQueen
I have an input shapefile representing roads in a city, read into R where it becomes a SpatialLInesDataFrame. Looking at just one road at a time, it looks fine when plotted. But in the underlying structure, the single real-world road has been broken up into many shorter polylines, and they are