<div dir="ltr">Eric,<div><br></div><div>I just tried to create a VRT from all ecw images in a folder. Unfortunately, it does not work, the command line seems to be rejected when there are too many input files. The problem also appear if directly using the gdalbuildvrt from the command line. The only solution I found was to build an input_file_list with the following command:</div>
<div><br></div><div>cd <to_my_ecw_folder></div><div>dir /b *.ecw > listin_ecw.txt</div><div>gdalbuildvrt -input_file_list listin_ecw.txt all_ecw.vrt</div><div><br></div><div>Then, if I try to save the cropping result as an ECW file, I got the following error:</div>
<div><br></div><div>Output driver `ECW' not recognised or does not support<br>direct output file creation. The following format drivers are configured<br>and support direct output:<br>GeoRaster: Oracle Spatial GeoRaster<br>
VRT: Virtual Raster<br>GTiff: GeoTIFF<br>NITF: National Imagery Transmission Format<br>HFA: Erdas Imagine Images (.img)<br>ELAS: ELAS<br>MEM: In Memory Raster<br>BMP: MS Windows Device Independent Bitmap<br>PCIDSK: PCIDSK Database File<br>
ILWIS: ILWIS Raster Map<br>SGI: SGI Image File Format 1.0<br>Leveller: Leveller heightfield<br>Terragen: Terragen heightfield<br>netCDF: Network Common Data Format<br>HDF4Image: HDF4 Dataset<br>ISIS2: USGS Astrogeology ISIS cube (Version 2)<br>
ERS: ERMapper .ers Labelled<br>RMF: Raster Matrix Format<br>RST: Idrisi Raster A.1<br>INGR: Intergraph Raster<br>GSBG: Golden Software Binary Grid (.grd)<br>GS7BG: Golden Software 7 Binary Grid (.grd)<br>PNM: Portable Pixmap Format (netpbm)<br>
ENVI: ENVI .hdr Labelled<br>EHdr: ESRI .hdr Labelled<br>PAux: PCI .aux Labelled<br>MFF: Vexcel MFF Raster<br>MFF2: Vexcel MFF2 (HKV) Raster<br>BT: VTP .bt (Binary Terrain) 1.3 Format<br>LAN: Erdas .LAN/.GIS<br>IDA: Image Data and Analysis<br>
GTX: NOAA Vertical Datum .GTX<br>NTv2: NTv2 Datum Grid Shift<br>CTable2: CTable2 Datum Grid Shift<br>ADRG: ARC Digitized Raster Graphics<br>SAGA: SAGA GIS Binary Grid (.sdat)<br></div><div><br></div><div>The generated command line by QGIs is:</div>
<div><br></div><div>gdalwarp -q -cutline "F:\\MY_SHP_PATH\\Commune_Aix-en-Provence.shp" -crop_to_cutline -of ECW F:\MY_VRT_PATH\Toutes_dalles_13.vrt "F:/MY_OUTPUT_PATH/crop.ecw"<br></div><div><br></div>
<div>It does not seem to be a "\" "/" issue, since if I choose a .vrt output it works fine.</div><div><br></div><div>Any idea on how to solve the problem?</div><div><br></div><div>I am running QGIS 2.2.0 on 64 bits windows.</div>
<div><br></div><div>Regards</div><div><br></div></div><div class="gmail_extra"><br><br><div class="gmail_quote">2014-03-04 1:51 GMT+01:00 Eric Goddard <span dir="ltr"><<a href="mailto:egoddard1010@gmail.com" target="_blank">egoddard1010@gmail.com</a>></span>:<br>
<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><div dir="ltr">Yes, you should be able to choose ECW from the files of type drop down in the output file selection dialog and select ECW.<span class="HOEnZb"><font color="#888888"><div>
<br></div><div>Eric</div></font></span></div><div class="HOEnZb"><div class="h5"><div class="gmail_extra"><br><br><div class="gmail_quote">
On Mon, Mar 3, 2014 at 4:48 PM, Asher Kamiraze <span dir="ltr"><<a href="mailto:asher.kamiraze@gmail.com" target="_blank">asher.kamiraze@gmail.com</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">

<div dir="ltr">Thanks Eric, sounds really good. Is there a way to save the resulting file (clipped) as an ECW file? I need to process it later with a 3rd party software.<br><br>Regards<br></div><div class="gmail_extra"><br>


<br><div class="gmail_quote">2014-03-03 23:26 GMT+01:00 Eric Goddard <span dir="ltr"><<a href="mailto:egoddard1010@gmail.com" target="_blank">egoddard1010@gmail.com</a>></span>:<div><div><br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">


<p dir="ltr">Hi asher, if you go to raster -> miscellaneous, there is a menu entry called build virtual raster catalog. You can use that to virtually mosaic all of your ECW files. This tool creates a new file you can load in as a raster that references all of the individual ECW files to display them seamlessly in qgis without having to spend the time to actually mosaic all of them together. Load the resulting vrt file into qgis using add raster and clip the vrt to your polygon layer using raster -> extraction -> clipper.</p>




<p dir="ltr">Eric</p>
<div class="gmail_quote"><div><div>On Mar 3, 2014 3:53 PM, "Asher Kamiraze" <<a href="mailto:asher.kamiraze@gmail.com" target="_blank">asher.kamiraze@gmail.com</a>> wrote:<br type="attribution">
</div></div><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><div><div>
<div dir="ltr"><div><div>Hi all,<br><br></div>I have a set of more than 200 ecw rasters that I can easily load in QGIS. I also have a vector polygon layer which bounds an area covering a part of the area covered by the whole set of rasters. What I would like to do is to extract only, the raster which are intersected by the vector boundary. As a final goal, I would like to only mosaic thoses images. I did not found a way to easily do this in QGIS. Any idea on how to achieve this?<br>




<br></div><div>As a workaround, I have opened only the raster intersecting the vector, and would like to mosaic them. However, it does not seem to be a function in QGIS ready to mosaic all opened (or selected) rasters. Any idea on how to automate the process?<br>




<br></div><div>Hope you could help<br><br></div><div>Regards<br></div></div>
<br></div></div>_______________________________________________<br>
Qgis-user mailing list<br>
<a href="mailto:Qgis-user@lists.osgeo.org" target="_blank">Qgis-user@lists.osgeo.org</a><br>
<a href="http://lists.osgeo.org/mailman/listinfo/qgis-user" target="_blank">http://lists.osgeo.org/mailman/listinfo/qgis-user</a><br></blockquote></div>
</blockquote></div></div></div><br></div>
</blockquote></div><br></div>
</div></div></blockquote></div><br></div>