rasterix icon indicating copy to clipboard operation
rasterix copied to clipboard

Add ECW support

Open otofoto opened this issue 3 years ago • 3 comments

Looking for ECW/JP2 unlimited read/write support(ECW SDK 3.3)

otofoto avatar Oct 07 '21 13:10 otofoto

Support for ECW/JP2 is included in GDAL (see here ). It looks like all is needed is to recompile linking a version of GDAL with the JP2ECW driver.

sergiomonteleone avatar Oct 07 '21 13:10 sergiomonteleone

Seems recompiling is not enough.

I added ECW driver from here - Gisinternals ECW plugin

copied gdal_ECW_JP2ECW.dll to rasterix-0.1.3-win64\gdalplugins and libecwj2.dll to rasterix-0.1.3-win64\

Now ECW appears as format for read and I am able to open ECW files but only JP2 appears for save.

image

While GDAL reports both formats as writable with this plugin and I am able to save ecw with gdal_translate: release-1911-x64-gdal-2-3-0-mapserver-7-0-7>gdalinfo --formats Supported Formats: ECW -raster- (rw): ERDAS Compressed Wavelets (SDK 3.x) JP2ECW -raster,vector- (rw+v): ERDAS JPEG2000 (SDK 3.x)

Also set ECW_LARGE_OK variable but it didn't help.

edit:save to jp2 doesn't seem to work either

otofoto avatar Oct 08 '21 17:10 otofoto

Any idea what else is missing? Does ECW write requires some additional parameters which are not passed to writer?

otofoto avatar Oct 27 '21 19:10 otofoto