Skip to content
Back to formatted view

Raw Message

Message-ID: <CAGfc75=g5H0h9ucdTF2hCc0NDeqJZ5ehs_fFhnE+yxgBwkeJ5A@mail.gmail.com>
Date: 2014-10-23T14:48:19Z
From: Mathieu Rajerison
Subject: How to segment or split a spatial line in R
In-Reply-To: <CABkCotR_vPeu0DbJu9fdqQrvpCCgW2+StPeyD9BZJzGYxnRorw@mail.gmail.com>

Hi,

With spatstat, you can find the mid point of line segments
http://lojze.lugos.si/~darja/software/r/library/spatstat/html/midpoints.psp.html

But I don't know any package that would split your line into equal segments.

One method would be to arrange equally spaced points along your line with
spatstat::pointsOnLinesthen reconstruct lines from these points.

There may be a better method than mine...

2014-10-23 16:10 GMT+02:00 Manuel Sp?nola <mspinola10 at gmail.com>:

> Dear list members,
>
> How to segment or split a spatial line in shorter equal segments, and also,
> how to get the mid point of ecah segment.
>
> Best,
>
> Manuel
>
> --
> *Manuel Sp?nola, Ph.D.*
> Instituto Internacional en Conservaci?n y Manejo de Vida Silvestre
> Universidad Nacional
> Apartado 1350-3000
> Heredia
> COSTA RICA
> mspinola at una.ac.cr
> mspinola10 at gmail.com
> Tel?fono: (506) 2277-3598
> Fax: (506) 2237-7036
> Personal website: Lobito de r?o <
> https://sites.google.com/site/lobitoderio/>
> Institutional website: ICOMVIS <http://www.icomvis.una.ac.cr/>
>
>         [[alternative HTML version deleted]]
>
> _______________________________________________
> R-sig-Geo mailing list
> R-sig-Geo at r-project.org
> https://stat.ethz.ch/mailman/listinfo/r-sig-geo
>

	[[alternative HTML version deleted]]