Class NcssGridController


  • @Controller
    @RequestMapping("/ncss/grid")
    public class NcssGridController
    extends AbstractNcssController
    Handles NCSS Grid Requests Validation done here.
    Since:
    4/29/2015
    • Constructor Detail

      • NcssGridController

        public NcssGridController()
    • Method Detail

      • getBase

        protected String getBase()
      • handleRequest

        @RequestMapping("**")
        public void handleRequest​(javax.servlet.http.HttpServletRequest req,
                                  javax.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​(javax.servlet.http.HttpServletRequest req,
                                                                                     javax.servlet.http.HttpServletResponse res)
                                                                              throws IOException
        Throws:
        IOException
      • getGridDatasetDescriptionHtml

        @RequestMapping("**/dataset.html")
        public org.springframework.web.servlet.ModelAndView getGridDatasetDescriptionHtml​(javax.servlet.http.HttpServletRequest req,
                                                                                          javax.servlet.http.HttpServletResponse res)
                                                                                   throws IOException
        Throws:
        IOException
      • getGridAsPointDatasetDescriptionHtml

        @RequestMapping("**/pointDataset.html")
        public org.springframework.web.servlet.ModelAndView getGridAsPointDatasetDescriptionHtml​(javax.servlet.http.HttpServletRequest req,
                                                                                                 javax.servlet.http.HttpServletResponse res)
                                                                                          throws IOException
        Throws:
        IOException
      • getDatasetBoundariesWKT

        @RequestMapping("**/datasetBoundaries.wkt")
        public void getDatasetBoundariesWKT​(javax.servlet.http.HttpServletRequest req,
                                            javax.servlet.http.HttpServletResponse res)
                                     throws IOException
        Throws:
        IOException
      • getDatasetBoundariesGeoJSON

        @RequestMapping("**/datasetBoundaries.json")
        public void getDatasetBoundariesGeoJSON​(javax.servlet.http.HttpServletRequest req,
                                                javax.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??