Package thredds.server.ncss.controller
Class NcssGridController
java.lang.Object
thredds.server.ncss.controller.AbstractNcssController
thredds.server.ncss.controller.NcssGridController
@Controller
@RequestMapping("/ncss/grid")
public class NcssGridController
extends AbstractNcssController
Handles NCSS Grid Requests
Validation done here.
- Since:
- 4/29/2015
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionprotected booleancheckVarsHaveSameVertAxis(ucar.nc2.ft2.coverage.CoverageCollection gcd, NcssGridParamsBean params) Returns true if all the variables have the same vertical axis (if they have an axis).protected StringgetBase()voidgetDatasetBoundaries(NcssParamsBean params, jakarta.servlet.http.HttpServletRequest req, jakarta.servlet.http.HttpServletResponse res) voidgetDatasetBoundariesGeoJSON(jakarta.servlet.http.HttpServletRequest req, jakarta.servlet.http.HttpServletResponse res) voidgetDatasetBoundariesWKT(jakarta.servlet.http.HttpServletRequest req, jakarta.servlet.http.HttpServletResponse res) org.springframework.web.servlet.ModelAndViewgetDatasetDescriptionXml(jakarta.servlet.http.HttpServletRequest req, jakarta.servlet.http.HttpServletResponse res) org.springframework.web.servlet.ModelAndViewgetGridAsPointDatasetDescriptionHtml(jakarta.servlet.http.HttpServletRequest req, jakarta.servlet.http.HttpServletResponse res) org.springframework.web.servlet.ModelAndViewgetGridDatasetDescriptionHtml(jakarta.servlet.http.HttpServletRequest req, jakarta.servlet.http.HttpServletResponse res) voidhandleRequest(jakarta.servlet.http.HttpServletRequest req, jakarta.servlet.http.HttpServletResponse res, @Valid NcssGridParamsBean params, org.springframework.validation.BindingResult validationResult) Methods inherited from class thredds.server.ncss.controller.AbstractNcssController
buildDatasetUrl, getDatasetPath, getDatasetPath, handle, handleValidationErrorMessage, makeAcceptList, makeAcceptXML, setResponseHeaders
-
Constructor Details
-
NcssGridController
public NcssGridController()
-
-
Method Details
-
getBase
-
handleRequest
@RequestMapping("**") public void handleRequest(jakarta.servlet.http.HttpServletRequest req, jakarta.servlet.http.HttpServletResponse res, @Valid @Valid NcssGridParamsBean params, org.springframework.validation.BindingResult validationResult) throws Exception - Throws:
Exception
-
getDatasetDescriptionXml
@RequestMapping({"**/dataset.xml","**/pointDataset.xml"}) public org.springframework.web.servlet.ModelAndView getDatasetDescriptionXml(jakarta.servlet.http.HttpServletRequest req, jakarta.servlet.http.HttpServletResponse res) throws IOException - Throws:
IOException
-
getGridDatasetDescriptionHtml
@RequestMapping("**/dataset.html") public org.springframework.web.servlet.ModelAndView getGridDatasetDescriptionHtml(jakarta.servlet.http.HttpServletRequest req, jakarta.servlet.http.HttpServletResponse res) throws IOException - Throws:
IOException
-
getGridAsPointDatasetDescriptionHtml
@RequestMapping("**/pointDataset.html") public org.springframework.web.servlet.ModelAndView getGridAsPointDatasetDescriptionHtml(jakarta.servlet.http.HttpServletRequest req, jakarta.servlet.http.HttpServletResponse res) throws IOException - Throws:
IOException
-
getDatasetBoundaries
@RequestMapping("**/datasetBoundaries.xml") public void getDatasetBoundaries(NcssParamsBean params, jakarta.servlet.http.HttpServletRequest req, jakarta.servlet.http.HttpServletResponse res) throws IOException, UnsupportedResponseFormatException -
getDatasetBoundariesWKT
@RequestMapping("**/datasetBoundaries.wkt") public void getDatasetBoundariesWKT(jakarta.servlet.http.HttpServletRequest req, jakarta.servlet.http.HttpServletResponse res) throws IOException - Throws:
IOException
-
getDatasetBoundariesGeoJSON
@RequestMapping("**/datasetBoundaries.json") public void getDatasetBoundariesGeoJSON(jakarta.servlet.http.HttpServletRequest req, jakarta.servlet.http.HttpServletResponse res) throws IOException - Throws:
IOException
-
checkVarsHaveSameVertAxis
protected boolean checkVarsHaveSameVertAxis(ucar.nc2.ft2.coverage.CoverageCollection gcd, NcssGridParamsBean params) Returns true if all the variables have the same vertical axis (if they have an axis). Could be broadened to allow all with same coordinate unites? coordinate value??
-