tds/src/main/java/thredds/server/ncss/controller/NcssGridController.java
@RequestMapping("**/datasetBoundaries.xml")
  public void getDatasetBoundaries(NcssParamsBean params, HttpServletRequest req, HttpServletResponse res)
          throws IOException, UnsupportedResponseFormatException {
    SupportedFormat format = SupportedOperation.DATASET_BOUNDARIES_REQUEST.getSupportedFormat(params.getAccept());

    switch (format) {
      case WKT:  getDatasetBoundariesWKT(req, res);     break;
      case JSON: getDatasetBoundariesGeoJSON(req, res); break;
      default: throw new IllegalArgumentException(String.format(
              "Expected %s or %s, but got %s", SupportedFormat.WKT, SupportedFormat.JSON, format));
    }
  }
@RequestMapping("**/datasetBoundaries.xml")
  public void getDatasetBoundaries(NcssParamsBean params, HttpServletRequest req, HttpServletResponse res)
          throws IOException, UnsupportedResponseFormatException {
    SupportedFormat format = SupportedOperation.DATASET_BOUNDARIES_REQUEST.getSupportedFormat(params.getAccept());

    switch (format) {
      case WKT:  getDatasetBoundariesWKT(req, res);     break;
      case JSON: getDatasetBoundariesGeoJSON(req, res); break;
      default: throw new IllegalArgumentException(String.format(
              "Expected %s or %s, but got %s", SupportedFormat.WKT, SupportedFormat.JSON, format));
    }
  }
@ RequestMapping ( "**/datasetBoundaries.xml" ) public void getDatasetBoundaries ( NcssParamsBean params , HttpServletRequest req , HttpServletResponse res ) throws IOException , UnsupportedResponseFormatException { SupportedFormat format = SupportedOperation . DATASET_BOUNDARIES_REQUEST . getSupportedFormat ( params . getAccept ( ) ) ; switch ( format ) { case WKT : getDatasetBoundariesWKT ( req , res ) ; break ; case JSON : getDatasetBoundariesGeoJSON ( req , res ) ; break ; default : throw new IllegalArgumentException ( String . format ( "Expected %s or %s, but got %s" , SupportedFormat . WKT , SupportedFormat . JSON , format ) ) ; } }
Supported for backwards compatibility. We prefer that datasetBoundaries.wkt or datasetBoundaries.json are used.
Supported for backwards compatibility . We prefer that datasetBoundaries . wkt or datasetBoundaries . json are used .