from_inventory_instance¶
-
classmethod
DbStation.
from_inventory_instance
(parent_network, instance)[source]¶ Create a
DbStation
instance from amss_data_server.geometry.inventory.Station
instance.- Parameters
parent_network (
mss_data_server.geometry.inventory.Network
) – The parent network to which the DbStation is related.instance (
mss_data_server.geometry.inventory.Station
) – The instance used to create theDbStation
instance.
- Returns
The created station.
- Return type
DbSation