from_inventory_instance

classmethod DbStation.from_inventory_instance(parent_network, instance)[source]

Create a DbStation instance from a mss_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 the DbStation instance.

Returns

The created station.

Return type

DbSation