[gdal-dev] Kakadu Jpeg2000 driver
Livneh Yehiyam
yehil at rafael.co.il
Wed Nov 9 01:01:09 EST 2011
Tamas,
Did you have a chance to check this problem? If so do you consider this a bug, or am I using it wrong?
Thanks
Yehiyam
From: Livneh Yehiyam
Sent: Sunday, November 06, 2011 11:25 AM
To: 'Tamas Szekeres'
Cc: gdal-dev
Subject: RE: [gdal-dev] Kakadu Jpeg2000 driver
Hi Tamas
To replicate you can use the GDALReadDirect c# sample with the test data file:
http://download.osgeo.org/gdal/data/jpeg2000/utm.jp2
The command I use is:
GDALReadDirect utm.jp2 overview0.png 0
Thanks
Yehiyam
From: Tamas Szekeres [mailto:szekerest at gmail.com]
Sent: Wednesday, November 02, 2011 8:42 PM
To: Livneh Yehiyam
Cc: gdal-dev
Subject: Re: [gdal-dev] Kakadu Jpeg2000 driver
This sounds like a driver specific problem. Do you have some test data to reproduce this?
Best regards,
Tamas
2011/11/2 Livneh Yehiyam <yehil at rafael.co.il<mailto:yehil at rafael.co.il>>
Hi
I'm trying to use the Kakadu Jpeg2000 (JP2KAK) driver to read raster data.
I'm working on windows7 64 bit with gdal source version 1.8.1
I've compiled the Kakadu SDK version v6.0 (v6_0-00828N), and compiled Gdal with the driver enabled. I'm using the c# binding.
I can open the dataset, and everything looks ok (size, number of overviews, band count etc.).
When I read data from one of the bands at the base resolution (lets say it is 512x512) I get the correct data.
Band mainBand = dataset.GetRasterBand(1);
mainBand.ReadRaster(0,0,512,512,buffer,512,512,DataType.GDT_Byte,4,2048);
If I get one of the overview bands:
Band overviewBand = mainBand.GetOverview(0);
And I try to read the entire band (lets say it is 256x256):
overviewBand.ReadRaster(0,0,256,256,buffer,256,256,DataType.GDT_Byte,4,1024);
What I get in the buffer are the first 256x256 pixels of the mainBand.
This is contrary to the behavior I'm used to get when reading GTiff files, or even JPEG2000 with the JP2ECW driver.
Is this behavior by design, or is there another way to achieve what I want.
Thanks
Yehiyam
________________________________
This message (including any attachments) issued by RAFAEL- ADVANCED DEFENSE SYSTEMS LTD. (hereinafter "RAFAEL") contains confidential information intended for a specific individual and purpose, may constitute information that is privileged or confidential or otherwise protected from disclosure. If you are not the intended recipient, you should contact us immediately and thereafter delete this message from your system. You are hereby notified that any disclosure, copying, dissemination, distribution or forwarding of this message, or the taking of any action based on it, is strictly prohibited. If you have received this e-mail in error, please notify us immediately by e-mail mailto:lawraf at rafael.co.il<mailto:lawraf at rafael.co.il> and completely delete or destroy any and all electronic or other copies of the original message and any attachments thereof.
________________________________
_______________________________________________
gdal-dev mailing list
gdal-dev at lists.osgeo.org<mailto:gdal-dev at lists.osgeo.org>
http://lists.osgeo.org/mailman/listinfo/gdal-dev
**********************************************************************************************
This message (including any attachments) issued by RAFAEL- ADVANCED DEFENSE SYSTEMS LTD.
(hereinafter "RAFAEL") contains confidential information intended for a specific individual and purpose, may
constitute information that is privileged or confidential or otherwise protected from disclosure. If you are not
the intended recipient, you should contact us immediately and thereafter delete this message from your
system. You are hereby notified that any disclosure, copying, dissemination, distribution or forwarding of this
message, or the taking of any action based on it, is strictly prohibited. If you have received this e-mail in error,
please notify us immediately by e-mail mailto:lawraf at rafael.co.il and completely delete or destroy any and all
electronic or other copies of the original message and any attachments thereof.
**********************************************************************************************
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.osgeo.org/pipermail/gdal-dev/attachments/20111109/2c68711b/attachment-0001.html
More information about the gdal-dev
mailing list