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 Details

    • NcssGridController

      public NcssGridController()
  • Method Details

    • getBase

      protected String 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
      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??