<div dir="ltr">You can always compress the output files using tiff DEFLATE compression, which works well but not as compact as ECW.<div><br></div><div>The interface does not allow this directly, but you can add -co COMPRESS=DEFLATE to the command. See [1] for other compression options.</div>
<div><br></div><div>[1] <a href="http://www.gdal.org/frmt_gtiff.html">http://www.gdal.org/frmt_gtiff.html</a></div></div><div class="gmail_extra"><br><br><div class="gmail_quote">On Wed, Mar 5, 2014 at 7:44 AM, 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"><div>Thank you Eric,<br><br></div>I had to chose FME to save the ECW. My third party software supports other formats, but TIFF files are huge, so it is not a viable solution.<br>
</div><div class="gmail_extra">
<br><br><div class="gmail_quote">2014-03-04 17:07 GMT+01:00 Eric Goddard <span dir="ltr"><<a href="mailto:egoddard1010@gmail.com" target="_blank">egoddard1010@gmail.com</a>></span>:<div><div class="h5"><br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">

Hi Asher,<br>
<br>
Sorry, I didn't read the full GDAL page regarding ECW support<br>
(<a href="http://www.gdal.org/frmt_ecw.html" target="_blank">http://www.gdal.org/frmt_ecw.html</a>). ECW is a proprietary format owned<br>
by intergraph. GDAL allows reading and writing of ECW files, but in<br>
order to write ECW files you have to have a licensing key from<br>
Intergraph. On Linux, when configuring the the ECW plugin it asks for<br>
the key, and if the user doesn't have one it is configuring in<br>
read-only mode. I'm assuming you used the OSGeo4Win installer, which I<br>
think configures the ECW support as read only by default. If you do<br>
have a key, I'm not sure how you would go about setting up GDAL ECW<br>
support to recognize it.<br>
<br>
>From the gdal ECW page:<br>
The ECW 4.x SDK from ERDAS is only free for image decompression. To<br>
compress images it is necessary to build with the read/write SDK and<br>
to provide an OEM licensing key at runtime which may be purchased from<br>
ERDAS.<br>
<br>
<br>
Does the third party software you have to use not support any other formats?<br>
<div><div><br>
On Tue, Mar 4, 2014 at 3:41 AM, Asher Kamiraze <<a href="mailto:asher.kamiraze@gmail.com" target="_blank">asher.kamiraze@gmail.com</a>> wrote:<br>
> Eric,<br>
><br>
> I just tried to create a VRT from all ecw images in a folder. Unfortunately,<br>
> it does not work, the command line seems to be rejected when there are too<br>
> many input files. The problem also appear if directly using the gdalbuildvrt<br>
> from the command line. The only solution I found was to build an<br>
> input_file_list with the following command:<br>
><br>
> cd <to_my_ecw_folder><br>
> dir /b *.ecw > listin_ecw.txt<br>
> gdalbuildvrt -input_file_list listin_ecw.txt all_ecw.vrt<br>
><br>
> Then, if I try to save the cropping result as an ECW file, I got the<br>
> following error:<br>
><br>
> 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>
><br>
> The generated command line by QGIs is:<br>
><br>
> gdalwarp -q -cutline "F:\\MY_SHP_PATH\\Commune_Aix-en-Provence.shp"<br>
> -crop_to_cutline -of ECW F:\MY_VRT_PATH\Toutes_dalles_13.vrt<br>
> "F:/MY_OUTPUT_PATH/crop.ecw"<br>
><br>
> It does not seem to be a "\" "/" issue, since if I choose a .vrt output it<br>
> works fine.<br>
><br>
> Any idea on how to solve the problem?<br>
><br>
> I am running QGIS 2.2.0 on 64 bits windows.<br>
><br>
> Regards<br>
><br>
><br>
><br>
> 2014-03-04 1:51 GMT+01:00 Eric Goddard <<a href="mailto:egoddard1010@gmail.com" target="_blank">egoddard1010@gmail.com</a>>:<br>
><br>
>> Yes, you should be able to choose ECW from the files of type drop down in<br>
>> the output file selection dialog and select ECW.<br>
>><br>
>> Eric<br>
>><br>
>><br>
>> On Mon, Mar 3, 2014 at 4:48 PM, Asher Kamiraze <<a href="mailto:asher.kamiraze@gmail.com" target="_blank">asher.kamiraze@gmail.com</a>><br>
>> wrote:<br>
>>><br>
>>> Thanks Eric, sounds really good. Is there a way to save the resulting<br>
>>> file (clipped) as an ECW file? I need to process it later with a 3rd party<br>
>>> software.<br>
>>><br>
>>> Regards<br>
>>><br>
>>><br>
>>> 2014-03-03 23:26 GMT+01:00 Eric Goddard <<a href="mailto:egoddard1010@gmail.com" target="_blank">egoddard1010@gmail.com</a>>:<br>
>>><br>
>>>> Hi asher, if you go to raster -> miscellaneous, there is a menu entry<br>
>>>> called build virtual raster catalog. You can use that to virtually mosaic<br>
>>>> all of your ECW files. This tool creates a new file you can load in as a<br>
>>>> raster that references all of the individual ECW files to display them<br>
>>>> seamlessly in qgis without having to spend the time to actually mosaic all<br>
>>>> of them together. Load the resulting vrt file into qgis using add raster and<br>
>>>> clip the vrt to your polygon layer using raster -> extraction -> clipper.<br>
>>>><br>
>>>> Eric<br>
>>>><br>
>>>> On Mar 3, 2014 3:53 PM, "Asher Kamiraze" <<a href="mailto:asher.kamiraze@gmail.com" target="_blank">asher.kamiraze@gmail.com</a>><br>
>>>> wrote:<br>
>>>>><br>
>>>>> Hi all,<br>
>>>>><br>
>>>>> I have a set of more than 200 ecw rasters that I can easily load in<br>
>>>>> QGIS. I also have a vector polygon layer which bounds an area covering a<br>
>>>>> part of the area covered by the whole set of rasters. What I would like to<br>
>>>>> do is to extract only, the raster which are intersected by the vector<br>
>>>>> boundary. As a final goal, I would like to only mosaic thoses images. I did<br>
>>>>> not found a way to easily do this in QGIS. Any idea on how to achieve this?<br>
>>>>><br>
>>>>> As a workaround, I have opened only the raster intersecting the vector,<br>
>>>>> and would like to mosaic them. However, it does not seem to be a function in<br>
>>>>> QGIS ready to mosaic all opened (or selected) rasters. Any idea on how to<br>
>>>>> automate the process?<br>
>>>>><br>
>>>>> Hope you could help<br>
>>>>><br>
>>>>> Regards<br>
>>>>><br>
>>>>> _______________________________________________<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>
>>><br>
>>><br>
>><br>
><br>
</div></div></blockquote></div></div></div><br></div>
<br>_______________________________________________<br>
Qgis-user mailing list<br>
<a href="mailto:Qgis-user@lists.osgeo.org">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><br></div>