[Gdal-dev] GDALWarp and JP2ECW

Frank Warmerdam warmerdam at pobox.com
Tue May 30 14:49:29 EDT 2006


Murphy, David wrote:
> Hello-
> 
>  
> 
> I’m trying to mosaic an NITF (VQ) CADRG dataset into a J2K file using 
> GDALWarp via the JP2ECW driver.  On the file creation, I’m getting an 
> error message “Destination band 1 appears to be read-only”.  Any ideas 
> on a possible cause?

Dave,

I'm afraid you will first need to mosaic into a "randomly writable" format,
such as TIFF (if it isn't more than 4GB) or Imagine (driver name is HFA) for
large files.  Then use gdal_translate to convert that to JPEG2000.

The gdalwarp program processes the input images in chunks and so can only
work with output formats that support essentially random updates.  Most
compressed formats, including jpeg2000, only support a very serial write
strategy and so generally can only be written by copying from an input
file.

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