from_orm¶
-
classmethod
Catalog.
from_orm
(db_catalog, inventory, load_events=False)[source]¶ Convert a database orm mapper catalog to a catalog.
- Parameters
db_catalog (
mss_dataserver.event.databaseFactory.EventCatalogDb
) – The mapper class instance of the event catalog database table.inventory (
mss_dataserver.geometry.inventory.Inventory
) – The inventory used to map geometry information to the event.load_events (bool) – If true all events contained in the catalog are loaded from the database.
- Returns
The event catalog instance.
- Return type