Package thredds.server.wms
Class TdsWmsDatasetFactory
- java.lang.Object
-
- uk.ac.rdg.resc.edal.dataset.DatasetFactory
-
- uk.ac.rdg.resc.edal.dataset.cdm.CdmDatasetFactory
-
- uk.ac.rdg.resc.edal.dataset.cdm.CdmGridDatasetFactory
-
- thredds.server.wms.TdsWmsDatasetFactory
-
- All Implemented Interfaces:
Serializable
public class TdsWmsDatasetFactory extends uk.ac.rdg.resc.edal.dataset.cdm.CdmGridDatasetFactoryBasically, this class exists to use a NetcdfDataset that has been opened by the TDS into ncWMS. We needed to do this to use NcML wrapped datasets being served by the TDS, but since we already get a NetcdfDataset from the TDS side, we might as well pass it along to ncWMS for non-NcML cases too.- See Also:
- Serialized Form
-
-
Constructor Summary
Constructors Constructor Description TdsWmsDatasetFactory()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description protected ucar.nc2.dataset.NetcdfDatasetgetNetcdfDatasetFromLocation(String location, boolean forceRefresh)None of this matters really.voidsetNetcdfDataset(ucar.nc2.dataset.NetcdfDataset ncd)-
Methods inherited from class uk.ac.rdg.resc.edal.dataset.cdm.CdmDatasetFactory
createDataset, createDataset, getParameter, getVariableName
-
-
-
-
Method Detail
-
setNetcdfDataset
public void setNetcdfDataset(ucar.nc2.dataset.NetcdfDataset ncd)
-
getNetcdfDatasetFromLocation
protected ucar.nc2.dataset.NetcdfDataset getNetcdfDatasetFromLocation(String location, boolean forceRefresh)
None of this matters really. For NcML datasets, we cannot rely on a location, as the ncml is modifying the dataset in memory. So, we are ignoring location and force reset while accssing the NetcdfDataset directly (which is set in ThreddsWmsCatalogue)- Overrides:
getNetcdfDatasetFromLocationin classuk.ac.rdg.resc.edal.dataset.cdm.CdmDatasetFactory- Parameters:
location- - location of the netCDF FileforceRefresh- - this is an ncWMS specific thing- Returns:
- Throws:
IOException
-
-