<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: 'http://'+host+'/geoserver/wcs?',</div><div><span class="" style="white-space:pre">                                                                                                </span>params: {</div><div><span class="" style="white-space:pre">                                                                                                </span>service: "WCS",</div><div><span class="" style="white-space:pre">                                                        </span> <span class="" style="white-space:pre">                </span>version: "1.1.1",</div><div> <span class="" style="white-space:pre">        </span> <span class="" style="white-space:pre">                                </span> <span class="" style="white-space:pre">                        </span>request: "getCoverage",</div><div><span class="" style="white-space:pre">                                                                                                </span>identifier: namelayer,</div><div><span class="" style="white-space:pre">                                                                                                </span>format: "image/geotiff",</div><div><span class="" style="white-space:pre">                                                                                                </span>boundingbox: minx+','+miny+','+maxx+','+maxy+',urn:ogc:def:crs:EPSG::4326',</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: 'form',</div><div><span class="" style="white-space:pre">                                                                                                                </span>name: 'wcs',</div><div><span class="" style="white-space:pre">                                                                                                                </span>cls: 'x-hidden',</div><div><span class="" style="white-space:pre">                                                                                                                </span>id:'hiddenform-form',</div><div><span class="" style="white-space:pre">                                                                                                        </span> action: linkp,</div><div><span class="" style="white-space:pre">                                                                                                                </span>method: "GET"</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: 'input',</div><div><span class="" style="white-space:pre">                                                                                                                </span>value: "Submit",</div><div><span class="" style="white-space:pre">                                                                                                                </span>type: 'submit'</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>