:mod:`catalog` ============== .. py:module:: catalog Module Contents --------------- .. function:: includeme(config) .. function:: catalog_factory(registry) .. function:: _fetch_thredds_metadata(url,title=None) Fetch capabilities metadata from thredds catalog service and return record dict. .. function:: _fetch_wps_metadata(url,title=None) Fetch capabilities metadata from wps service and return record dict. .. py:class:: Catalog .. method:: get_record_by_id(identifier) .. method:: delete_record(identifier) .. method:: insert_record(record) .. method:: harvest(url,service_type,service_name=None,service_title=None,public=False,c4i=False) .. method:: get_service_name(record) Get service name from twitcher registry for given service (url). .. method:: get_service_by_name(name) Get service from twitcher registry by given service name. .. method:: get_service_by_url(url) Get service from twitcher registry by given url. .. method:: get_services(service_type=None,maxrecords=100) .. method:: clear_services() .. py:class:: CatalogService(csw,service_registry) .. method:: get_record_by_id(identifier) .. method:: delete_record(identifier) .. method:: insert_record(record) .. method:: harvest(url,service_type,service_name=None,service_title=None,public=False,c4i=False) .. method:: get_services(service_type=None,maxrecords=100) .. function:: doc2record(document) Converts ``document`` from mongodb to a ``Record`` object. .. py:class:: MongodbCatalog(collection,service_registry) Implementation of a Catalog with MongoDB. .. method:: get_record_by_id(identifier) .. method:: delete_record(identifier) .. method:: insert_record(record) .. method:: harvest(url,service_type,service_name=None,service_title=None,public=False,c4i=False) .. method:: get_services(service_type=None,maxrecords=100) .. method:: clear_services()