/** * s * * @see WebMapService#getMapReflect(GetMapRequest) */ public WebMap getMapReflect(GetMapRequest request) { GetMapRequest getMap = autoSetMissingProperties(request); return getMap(getMap); }
request = DefaultWebMapService.autoSetMissingProperties(request);
request = DefaultWebMapService.autoSetMissingProperties(request);
@Override public RenderedImage call() throws Exception { org.geoserver.wms.WebMap wmsResponse; // Making a shallow copy of the original request and replacing param's values GetMapRequest frameRequest = replaceRequestParams(this.request, this.aparam, this.avalue); // set rest of the wms defaults frameRequest = DefaultWebMapService.autoSetMissingProperties(frameRequest); // Setup Frame OUTputFormat String outFormat = frameRequest.getFormat(); // the capabilities of this produce are actually linked to the map response that is going to // be used, this class just generates a rendered image final Collection<RenderedImageMapResponse> responses = this.wmsConfiguration.getAvailableMapResponses(); for (RenderedImageMapResponse response : responses) { if (response.getOutputFormats().contains(outFormat)) { MapProducerCapabilities cap = response.getCapabilities(outFormat); if (cap != null && cap.getFramesMimeType() != null) { frameRequest.setFormat(cap.getFramesMimeType()); } else { frameRequest.setFormat(GIF_FORMAT); } } } wmsResponse = this.wms.getMap(frameRequest); return ((RenderedImageMap) wmsResponse).getImage(); }