Skip to contents

This function converts a sf shape with linestring or multilinestring geometries into a sfnetwork object. Mostly, it is used internally.

Usage

Makesfnetwork(shape, attach.data = F, simple = T)

Arguments

shape

An sf object with LINESTRING or MULTILINESTRING geometry

attach.data

Logical, whether data fields should be preserved

simple

Logical, whether to use the fast and simple method, or the slower more thorough method

Value

A sfnetwork object