Update models.py
The changes here are to make the WMS and WCS endpoints match the WFS endpoint
@@ -586,11 +586,8 @@ class CompositeResource(BaseResource):
] for data_type in resource_data_types
):
wms_url = (
- f'{settings.HSWS_GEOSERVER_URL}/wms?'
- f'service=WMS&'
- f'version=1.3.0&'
- f'request=GetCapabilities&'
- f'namespace=HS-{self.short_id}'
+ f'{settings.HSWS_GEOSERVER_URL}/HS-{self.short_id}/wms?'
+ f'request=GetCapabilities'
)
else:
wms_url = None
@@ -605,11 +602,8 @@ class CompositeResource(BaseResource):
if 'GeographicRaster' in resource_data_types:
wcs_url = (
- f'{settings.HSWS_GEOSERVER_URL}/wcs?'
- f'service=WCS&'
- f'version=1.1.0&'
- f'request=GetCapabilities&'
- f'namespace=HS-{self.short_id}'
+ f'{settings.HSWS_GEOSERVER_URL}/HS-{self.short_id}/wcs?'
+ f'request=GetCapabilities'
)
else:
wcs_url = None
