private static void checkInterpolationMethod( CoverageInfo info, InterpolationMethodType interpolationMethod) { // check interpolation method String interpolation = interpolationMethod.getLiteral(); if (interpolation != null) { boolean interpolationSupported = false; if (interpolation.startsWith("nearest")) { interpolation = "nearest neighbor"; } if (interpolation.equals("nearest neighbor") || (info.getDefaultInterpolationMethod() != null && info.getDefaultInterpolationMethod() .equalsIgnoreCase(interpolation))) { interpolationSupported = true; } for (String method : info.getInterpolationMethods()) { if (interpolation.equalsIgnoreCase(method)) { interpolationSupported = true; } } if (!interpolationSupported) throw new WcsException( "The requested Interpolation method is not supported by this Coverage.", InvalidParameterValue, "RangeSubset"); } }
interpolationType = request.getInterpolationMethod().getLiteral(); if (interpolationType != null) {