Reading-eScience-Centre / ncwms

ncWMS - A Web Map Service for displaying environmental data over the web
Other
62 stars 30 forks source link

addDataset API doesn't work with OPeNDAP server source #61

Open MarcoAlbaETT opened 4 years ago

MarcoAlbaETT commented 4 years ago

Hi,

I want to use the addDataset API to add a new dataset from an OPeNDAP server (THREDDS in this case, but I've also other OPeNDAP server) but when I send the post request I receive the following error:

Dataset Test (http://thredds.emodnet-physics.eu/thredds/dodsC/fmrc/SEALEVEL_GLO_PHY_CLIMATE_L4_REP_OBSERVATIONS_008_057_MONTHLY_MEAN/SEALEVEL_GLO_PHY_CLIMATE_L4_REP_OBSERVATIONS_008_057_MONTHLY_MEAN_best.ncd) cannot be added.
Cause:
Location: http://thredds.emodnet-physics.eu/thredds/dodsC/fmrc/SEALEVEL_GLO_PHY_CLIMATE_L4_REP_OBSERVATIONS_008_057_MONTHLY_MEAN/SEALEVEL_GLO_PHY_CLIMATE_L4_REP_OBSERVATIONS_008_057_MONTHLY_MEAN_best.ncd doesn't refer to any existing files

From the ncWMS Admin page the dataset can be created without problem.

I'm running ncWMS v2.4.2

Thanks

Marco

guygriffiths commented 3 years ago

Thanks for pointing this out. I haven't used the addDataset API myself, but I think I have fixed the issue. I'll be releasing a v1.5 shortly, which will contain the fix.

guygriffiths commented 3 years ago

Fix released https://github.com/Reading-eScience-Centre/ncwms/releases/tag/ncwms-2.5.0