[Gdal-dev] JP2KAK

Frank Warmerdam warmerdam at pobox.com
Wed Jun 28 09:05:25 EDT 2006


Mark Overmeer wrote:
> Hi,
> 
> using FWTools 1.0.0a7 linux precompiled binaries
> GDAL 1.3.1.0, FWTools 1.0.0a7, released 2005/11/10
> 
> I start gdal_translate with one tif which contains three gdal_merge'd
> tiff bands:
> 
>    gdal_translate -of JP2ECW my.tif my.jp2
> 
> output:
> 
>    Input file size is 4980, 4200
>    0...10...20...30...40...50...60...70...80...90...100 - done.
>    Warning 1: Kakadu Warning:
>    Profile violation detected (code-stream is technically illegal).
>    Profile-0 code-streams must have nominally square code-block dimensions,
>    measuring 32x32 or 64x64.  You should set "Sprofile" to 1 or 2.
> 
> two things:
>    1) why is Kakadu warning me?  I select JP2ECW

Mark,

The JPEG2000 file was written with the JP2ECW driver but when writing
is complete it is reopened with the generic GDALOpen() which ends up using
the first registered JPEG2000 driver which turns out to be Kakadu.

>    2) how can I resolve the warning

I'm not sure if this is a serious warning.  You might want to try
generating your file with the extra option -co PROFILE=BASELINE_1 and
see if that helps.  I suspect that is similar to the Sprofile=1 Kakadu
option.  If the problem persists you might want to take it up on the
ECW SDK forums at ermapper.com.

Best regards,
-- 
---------------------------------------+--------------------------------------
I set the clouds in motion - turn up   | Frank Warmerdam, warmerdam at pobox.com
light and sound - activate the windows | http://pobox.com/~warmerdam
and watch the world go round - Rush    | President OSGF, http://osgeo.org




More information about the Gdal-dev mailing list