protected RenderedImageMapOutputFormat getProducerInstance() { return new RenderedImageMapOutputFormat("image/gif", getWMS()); } }
protected RenderedImageMapOutputFormat getProducerInstance() { return new RenderedImageMapOutputFormat(this.mapFormat, getWMS()); }
final RenderedImageMapOutputFormat pngProducer = new RenderedImageMapOutputFormat( "image/png", wms); final PNGMapResponse pngEncoder = new PNGMapResponse(wms);
private Rectangle produceMap(double minX, double maxX, double minY, double maxY) { this.map .getViewport() .setBounds( new ReferencedEnvelope(minX, maxX, minY, maxY, DefaultGeographicCRS.WGS84)); RenderedImageMapOutputFormat rasterMapProducer = new RenderedImageMapOutputFormat(getWMS()); RenderedImageMap imageMap = rasterMapProducer.produceMap(this.map); this.op = (RenderedOp) imageMap.getImage(); this.image = this.op.getAsBufferedImage(); imageMap.dispose(); return new Rectangle(0, 0, this.image.getWidth(), this.image.getHeight()); } }
void addMimeTypes() { getMapFormat = new RenderedImageMapOutputFormat(getWMS()); getInfoFormat = new TextFeatureInfoOutputFormat(getWMS()); WMSInfo wms = getWMS().getServiceInfo(); wms.getGetMapMimeTypes().add(getMapFormat.getMimeType()); wms.getGetFeatureInfoMimeTypes().add(getInfoFormat.getContentType()); wms.setGetMapMimeTypeCheckingEnabled(true); wms.setGetFeatureInfoMimeTypeCheckingEnabled(true); getGeoServer().save(wms); }
void addMimeTypes() { getMapFormat = new RenderedImageMapOutputFormat(getWMS()); getInfoFormat = new TextFeatureInfoOutputFormat(getWMS()); WMSInfo wms = getWMS().getServiceInfo(); wms.getGetMapMimeTypes().add(getMapFormat.getMimeType()); wms.getGetFeatureInfoMimeTypes().add(getInfoFormat.getContentType()); wms.setGetMapMimeTypeCheckingEnabled(true); wms.setGetFeatureInfoMimeTypeCheckingEnabled(true); getGeoServer().save(wms); }
content.setTransparent(true); content.getViewport().setBounds(bbox); RenderedImageMapOutputFormat renderer = new RenderedImageMapOutputFormat(wms); RenderedImageMap map = renderer.produceMap(content);
GetMapOutputFormat format = new RenderedImageMapOutputFormat(getWMS()); wms.getGetMapMimeTypes().add(format.getMimeType()); wms.setGetMapMimeTypeCheckingEnabled(true);
GetMapOutputFormat format = new RenderedImageMapOutputFormat(getWMS()); wms.getGetMapMimeTypes().add(format.getMimeType()); wms.setGetMapMimeTypeCheckingEnabled(true);
new RenderedImageMapOutputFormat(getWMS()).produceMap(map); imageMap.dispose(); assertTrue("The query filter should have a BBOX", containsBBox.booleanValue());