*/
protected final static CoordinateOperationFactory opFactory = ReferencingFactoryFinder
.getCoordinateOperationFactory(new Hints(Hints.LENIENT_DATUM_SHIFT, Boolean.TRUE));
public void execute(Request req) throws WcsException {
WCSRequest request = (WCSRequest) req;
if (!(request instanceof DescribeRequest)) {
throw new WcsException(new StringBuffer(
"illegal request type, expected DescribeRequest, got ").append(request)
.toString());
}
DescribeRequest wcsRequest = (DescribeRequest) request;
this.request = wcsRequest;
LOGGER.finer("processing describe request" + wcsRequest);
String outputFormat = wcsRequest.getOutputFormat();
if (!outputFormat.equalsIgnoreCase("XMLSCHEMA")) {
throw new WcsException(new StringBuffer("output format: ").append(outputFormat)
.append(" not ")
.append("supported by geoserver")
.toString());
}
// generates response, using general function
xmlResponse = generateCoverages(wcsRequest);
if (!request.getWCS().getGeoServer().getGlobal().isVerbose()) {
xmlResponse = xmlResponse.replaceAll(">\n[ \\t\\n]*", ">");
xmlResponse = xmlResponse.replaceAll("\n[ \\t\\n]*", " ");
}
}