Skip to contents

Compute orientations of segments (i.e. lines).

Usage

mafa_segment_orientation(sfsegments, looking = "N", perpendicular = FALSE)

Arguments

sfsegments

sf object with sfc as "MULTILINESTRING" or "LINESTRING".

looking

look direction parameter: "N" North or "E" East (default is North).

perpendicular

logical parameter. If TRUE, perpendiculars to orientations between [0;90] (i.e. [-90;0]) degrees are recalculated in the interval [0;90] (default is FALSE).

Value

sf object composed of segments (i.e. lines) with orientations.

References

Robert, Sandrine, Éric Grosso, Pascal Chareille, et Hélène Noizet. 2014. « MorphAL (Morphological Analysis) : un outil d’analyse de morphologie urbaine ». In Archéologie de l’espace urbain, édité par Elisabeth Lorans et Xavier Rodier, 451‑63. Perspectives Villes et Territoires. Tours: Presses universitaires François-Rabelais. https://doi.org/10.4000/books.pufr.7717.