The Model Class#

class rnet.Model(nodes, edges, **others)#

Bases: object

Class representing an RNet model.

Parameters
nodesNodeData

Node data.

edgesEdgeData

Edge data.

**othersDict[str, Dataset]

Other datasets.

New in version 0.0.7.

See also

model()

Construct a model from multiple data sources.

simplify()

Return simplified model.

Attributes

crs

EPSG code of model CRS.

dims

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.