<div dir="ltr"><div>Hi list.,</div><div><br></div><div>I want get file raster in one step. The same for vector files.</div><div><br></div><div>I propose the solution consists of two steps:<br></div><div><br></div><div>step 1:</div><div>                                                    OpenLayers.Request.GET({<br></div><div><div><span class="" style="white-space:pre">                                                </span>                <span class="" style="white-space:pre">                                </span>url: &#39;http://&#39;+host+&#39;/geoserver/wcs?&#39;,</div><div><span class="" style="white-space:pre">                                                                                                </span>params: {</div><div><span class="" style="white-space:pre">                                                                                                </span>service: &quot;WCS&quot;,</div><div><span class="" style="white-space:pre">                                                        </span>                        <span class="" style="white-space:pre">                </span>version: &quot;1.1.1&quot;,</div><div> <span class="" style="white-space:pre">        </span>            <span class="" style="white-space:pre">                                </span>                        <span class="" style="white-space:pre">                        </span>request: &quot;getCoverage&quot;,</div><div><span class="" style="white-space:pre">                                                                                                </span>identifier: namelayer,</div><div><span class="" style="white-space:pre">                                                                                                </span>format: &quot;image/geotiff&quot;,</div><div><span class="" style="white-space:pre">                                                                                                </span>boundingbox: minx+&#39;,&#39;+miny+&#39;,&#39;+maxx+&#39;,&#39;+maxy+&#39;,urn:ogc:def:crs:EPSG::4326&#39;,</div><div><span class="" style="white-space:pre">                                                                                                </span>store: true,</div><div><span class="" style="white-space:pre">                                                                                                </span>async: true<span class="" style="white-space:pre">                </span></div><div> <span class="" style="white-space:pre">                                                                                                </span>},</div><div>                       <span class="" style="white-space:pre">                                                </span> <span class="" style="white-space:pre">                                </span>success: function(reply) {</div></div><div><br></div><div>                                                                                                               ...</div><div>                                                                                               }</div><div><br></div><div>In this case I return an XML file with the link to file raster (store: true), then I read that link and run the code:<br></div><div><br></div><div>step 2:</div><div><br></div><div>                                               var link = getLinkRasterfromReply(reply.responseText)</div><div>                                               var form = body.createChild({</div><div><span class="" style="white-space:pre">                                                                                                                </span>tag: &#39;form&#39;,</div><div><span class="" style="white-space:pre">                                                                                                                </span>name: &#39;wcs&#39;,</div><div><span class="" style="white-space:pre">                                                                                                                </span>cls: &#39;x-hidden&#39;,</div><div><span class="" style="white-space:pre">                                                                                                                </span>id:&#39;hiddenform-form&#39;,</div><div><span class="" style="white-space:pre">                                                                                                        </span>        action: linkp,</div><div><span class="" style="white-space:pre">                                                                                                                </span>method: &quot;GET&quot;</div><div><span class="" style="white-space:pre">                                                                                                        </span>});</div><div><span class="" style="white-space:pre">                                                                                                        </span>var input = body.createChild({</div><div><span class="" style="white-space:pre">                                                                                                                </span>tag: &#39;input&#39;,</div><div><span class="" style="white-space:pre">                                                                                                                </span>value: &quot;Submit&quot;,</div><div><span class="" style="white-space:pre">                                                                                                                </span>type: &#39;submit&#39;</div><div><span class="" style="white-space:pre">                                                                                                        </span>});</div><div><span class="" style="white-space:pre">                                                                                                        </span>form.dom.submit();<br></div><div><br></div><div><br></div><div><br></div>Thanks
<div><br></div><div><br></div></div>