Skip to content

Commit

Permalink
THREDDS Service Solution - spatial dataset service setting
Browse files Browse the repository at this point in the history
  • Loading branch information
swainn committed Dec 25, 2019
1 parent b1c47dc commit 0e14e18
Showing 1 changed file with 19 additions and 1 deletion.
20 changes: 19 additions & 1 deletion tethysapp/thredds_tutorial/app.py
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
from tethys_sdk.base import TethysAppBase, url_map_maker
from tethys_sdk.app_settings import SpatialDatasetServiceSetting


class ThreddsTutorial(TethysAppBase):
Expand All @@ -13,6 +14,8 @@ class ThreddsTutorial(TethysAppBase):
root_url = 'thredds-tutorial'
color = '#008e8d'

THREDDS_SERVICE_NAME = 'thredds_service'

def url_maps(self):
"""
Add controllers
Expand All @@ -27,4 +30,19 @@ def url_maps(self):
),
)

return url_maps
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

0 comments on commit 0e14e18

Please sign in to comment.