From 0e14e1848d0ef61c944f32593fdb1d2951a9afad Mon Sep 17 00:00:00 2001 From: nswain Date: Tue, 24 Dec 2019 21:39:12 -0700 Subject: [PATCH] THREDDS Service Solution - spatial dataset service setting --- tethysapp/thredds_tutorial/app.py | 20 +++++++++++++++++++- 1 file changed, 19 insertions(+), 1 deletion(-) diff --git a/tethysapp/thredds_tutorial/app.py b/tethysapp/thredds_tutorial/app.py index 4138551..04aedf3 100644 --- a/tethysapp/thredds_tutorial/app.py +++ b/tethysapp/thredds_tutorial/app.py @@ -1,4 +1,5 @@ from tethys_sdk.base import TethysAppBase, url_map_maker +from tethys_sdk.app_settings import SpatialDatasetServiceSetting class ThreddsTutorial(TethysAppBase): @@ -13,6 +14,8 @@ class ThreddsTutorial(TethysAppBase): root_url = 'thredds-tutorial' color = '#008e8d' + THREDDS_SERVICE_NAME = 'thredds_service' + def url_maps(self): """ Add controllers @@ -27,4 +30,19 @@ def url_maps(self): ), ) - return url_maps \ No newline at end of file + return url_maps + + def spatial_dataset_service_settings(self): + """ + Example spatial_dataset_service_settings method. + """ + sds_settings = ( + SpatialDatasetServiceSetting( + name=self.THREDDS_SERVICE_NAME, + description='THREDDS service for app to use', + engine=SpatialDatasetServiceSetting.THREDDS, + required=True, + ), + ) + + return sds_settings