validate_network | R Documentation |
Validate the structure of a sfnetwork
validate_network(x, message = TRUE)
x |
An object of class |
message |
Should messages be printed during validation? Defaults to
|
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.
Nothing when the network is valid. Otherwise, an error is thrown.
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.