validate_network: Validate the structure of a sfnetwork

View source: R/validate.R

validate_networkR Documentation

Validate the structure of a sfnetwork

Description

Validate the structure of a sfnetwork

Usage

validate_network(x, message = TRUE)

Arguments

x

An object of class sfnetwork.

message

Should messages be printed during validation? Defaults to TRUE.

Details

A valid sfnetwork structure means that all nodes have POINT geometries, and - when edges are spatially explicit - all edges have LINESTRING geometries, nodes and edges have the same coordinate reference system and the same coordinate precision, and coordinates of edge boundaries match coordinates of their corresponding nodes.

Value

Nothing when the network is valid. Otherwise, an error is thrown.


luukvdmeer/sfnetworks documentation built on Nov. 21, 2024, 4:54 a.m.