The Model Class#
- class rnet.Model(nodes, edges, **others)#
Bases:
objectClass representing an RNet model.
- Parameters
- nodes
NodeData Node data.
- edges
EdgeData Edge data.
- **othersDict[str,
Dataset] Other datasets.
New in version 0.0.7.
- nodes
See also
model()Construct a model from multiple data sources.
simplify()Return simplified model.
Attributes
EPSG code of model CRS.
Number of coordinate dimensions.
Methods
densify(interval)Densify connections.
elevate(*paths[, r, p])Compute elevations and update \(z\)-coordinates.
from_pickle(path_to_pickle)Read model from pickled representation.
info()Print model information.
to_pickle(path_to_pickle)Write model to disk in pickled representation.
transform(dst)Transform coordinates to another CRS.