public void getMap( org.deegree.protocol.wms.ops.GetMap gm, List<String> headers, RenderContext ctx ) throws OWSException { Iterator<StyleRef> styleItr = gm.getStyles().iterator(); MapOptionsMaps options = gm.getRenderingOptions(); List<MapOptions> mapOptions = new ArrayList<MapOptions>();
private GetFeatureInfo createGetFeatureInfo( GetMap getMap, List<String> queryLayers, int i, int j, Output output, String exceptions ) throws OWSException { HashMap<String, String> parameterMap = new HashMap<String, String>(); if ( exceptions != null ) parameterMap.put( "EXCEPTIONS", exceptions ); return new GetFeatureInfo( getMap.getLayers(), getMap.getStyles(), queryLayers, getMap.getWidth(), getMap.getHeight(), i, j, getMap.getBoundingBox(), getMap.getCoordinateSystem(), output.featureCount, output.infoFormat, parameterMap, getMap.getDimensions() ); }
map.put( "layers", join( ",", getMap.getLayers() ) ); map.put( "styles", "" ); LinkedList<StyleRef> styles = new LinkedList<StyleRef>( getMap.getStyles() ); if ( styles.size() > 0 ) { while ( styles.size() < getMap.getLayers().size() ) {
/** * @param hardParameters * parameters to override in the request, may be null * @throws IOException */ public Pair<BufferedImage, String> getMap( GetMap getMap, Map<String, String> hardParameters, int timeout, boolean errorsInImage ) throws IOException { if ( VERSION_111.equals( wmsVersion ) ) { Worker worker = new Worker( getMap.getLayers(), getMap.getStyles(), getMap.getWidth(), getMap.getHeight(), getMap.getBoundingBox(), getMap.getCoordinateSystem(), getMap.getFormat(), getMap.getTransparent(), errorsInImage, false, null, hardParameters ); Pair<BufferedImage, String> result; try { if ( timeout == -1 ) { result = worker.call(); } else { result = Executor.getInstance().performSynchronously( worker, timeout * 1000 ); } } catch ( Throwable e ) { throw new IOException( e.getMessage(), e ); } return result; } throw new IllegalArgumentException( "GetMap request for other versions than 1.1.1 are not supported yet." ); }
for ( StyleRef sr : gm.getStyles() ) {