Validate the structure of a sfnetwork
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.