The procedure to integrate GRASS within R is described here
http://grass.fbk.eu/statsgrass/grass6_r_install.html

There is also an osgeo journal vol1 that you can find on the web that can be
helpful.

I don't know any function that does the same in R without GRASS.

But I think that given your intersection points, you can create new
lineswith these new nodes so that 2 intersection points will give 3 lines.
It demands "playing" around SpatialLines objects. I think it can be very
tricky.

GRASS is an opensource software you can install. It is also integrated into
the reknown Quantum GIS.

Either installing these softwares or performing the operations externally or
internally within R will be OK.

Hope this helps,

Mathieu
2011/8/17 Cam Plouffe <cam.plouffe@gmail.com>

> Hi Mathieu,
>
> This is helpful, and perhaps will give me a workaround of this part of the
> program, but eventually I would like all processes to be done within R.  I
> will look into this module to see if it does what I am looking for.  Thanks
> a lot for the suggestion, and if you have any idea of how to do this in R
> (without GRASS integration), let me know.
>
> Cam
>
> On Tue, Aug 16, 2011 at 3:33 AM, Mathieu Rajerison <
> mathieu.rajerison@gmail.com> wrote:
>
>> Hi,
>>
>>
>> You can do this in GRASS with v.clean module :
>> v.clean input=lines1 output=lines2 err=points tool=break type=line
>>
>> You can use spgrass to integrate GRASS into R
>>
>>
>> I hope this helps,
>>
>> Mathieu
>>
>> 2011/8/15 Cam Plouffe <cam.plouffe@gmail.com>
>>
>> > Hi everybody,
>> >
>> > I have a SpatialLines object that I created by using the gBoundary()
>> > function on a SpatialPolygons object.  I've attached a plot
>> ("SpatialLines
>> > Segmentation.png") of the SpatialLines object to this email.  What I
>> would
>> > like to do, is segment these SpatialLines wherever there is an
>> intersection,
>> > or overlap of lines.  After I have segmented these SpatialLines at their
>> > intersections, I will be classifying them as either boundary, interior,
>> or
>> > partition arcs.
>> >
>> > I have been looking through various packages that work with spatial data
>> in
>> > R, but I have yet to find a function that can help me classify these
>> lines.
>> >  I can find out the intersection points by using the gIntersection()
>> > function on the given SpatialLines, but I need a function that will take
>> > these intersection points, and break these SpatialLines into the
>> segments I
>> > need.
>> >
>> > I realize this description may be a little confusing/vague, and I'm
>> willing
>> > to give any info I can to help with a potential solution.  Frankly, I
>> have
>> > difficulty explaining exactly what I'm trying to do, so if there is
>> > confusion I can try to clarify.  I have attached a second image
>> ("Labelled
>> > Segments.png") to this email that hopefully illustrates the labelled
>> > segments that I want to divide the SpatialLines object into.
>>  Altogether,
>> > for the provided example there should be 10.
>> >
>> > If someone could aid me in any way with this problem, I'd be very
>> grateful.
>> >
>> > Thanks,
>> > Cam
>> >
>> > _______________________________________________
>> > R-sig-Geo mailing list
>> > R-sig-Geo@r-project.org
>> > https://stat.ethz.ch/mailman/listinfo/r-sig-geo
>> >
>> >
>>
>>        [[alternative HTML version deleted]]
>>
>>
>> _______________________________________________
>> R-sig-Geo mailing list
>> R-sig-Geo@r-project.org
>> https://stat.ethz.ch/mailman/listinfo/r-sig-geo
>>
>
>

	[[alternative HTML version deleted]]

