from_sqlalchemy_orm¶
-
classmethod
DbStation.
from_sqlalchemy_orm
(parent_network, orm)[source]¶ Create a
DbStation
instance from amss_data_server.geometry.databaseFactory.GeomStation
table mapper class.- Parameters
parent_inventory (
mss_data_server.geometry.inventory.Network
) – The parent network to which the instance is related.orm (
mss_data_server.geometry.databaseFactory.GeomStation
) – The sqlalchemy table mapper class for the station.
- Returns
The created instance.
- Return type