[R-sig-Geo] Combine line segments into one line

Robin Lovelace rob00x @end|ng |rom gm@||@com
Tue Oct 12 15:43:34 CEST 2021


Hi Remon,

Please could you provide a fully reproducible example to illustrate the
data you have, what you have tried, and what you hope to achieve?

I cannot see the screenshot mentioned.

All the best,

Robin

On Fri, Oct 8, 2021 at 1:55 PM Remon Hanna <akhnatononline using hotmail.com>
wrote:

> Hi
>
> I have line segments that I would like to combine them within each
> corridor, I.e each corridor will be one line of combined segments of
> NAME_S2S and combined geometry  as per the screenshot.
>
> I have managed to plot the segments on the map as you can see but when
> zooming in these segments are not in one, which I would like to group them.
>
> I ran the below line to group them by corridor, but I get error below;
>
> > dataformap1<-gLineMerge(dataformap[dataformap$Corridor==1, ])
> Error in gLineMerge(dataformap[dataformap$Corridor == 1, ]) :
>   Invalid geometry, may only be applied to lines
>
> Many thanks in advance
>
> Remon Hanna
>
> Sent from Mail<https://go.microsoft.com/fwlink/?LinkId=550986> for Windows
>
>
>
>         [[alternative HTML version deleted]]
>
> _______________________________________________
> R-sig-Geo mailing list
> R-sig-Geo using r-project.org
> https://stat.ethz.ch/mailman/listinfo/r-sig-geo
>

	[[alternative HTML version deleted]]



More information about the R-sig-Geo mailing list