RE: [gdal-dev] Memory access violation with GDALGetRandomRasterSample and NITF/JPEG2000

2010-03-04 Thread Shaw, Jonathan-P29740
Frank, Thank you very much! Disabling the JP2ECW driver works and allows the JP2MrSID driver to process my map. I appreciate your quick and helpful responses. Thanks, Jonathan ___ gdal-dev mailing list gdal-dev@lists.osgeo.org http://lists.osgeo.org/m

Re: [gdal-dev] Memory access violation with GDALGetRandomRasterSample and NITF/JPEG2000

2010-03-04 Thread Frank Warmerdam
Shaw, Jonathan-P29740 wrote: Is this a known problem for NITF or JPEG2000 files? Is there a way to see which JPEG2000 driver is used and to switch it to the other one? Any other suggestions? Jonathan, The gdalinfo command should report the driver used for a file. It's the first piece of infor

[gdal-dev] Memory access violation with GDALGetRandomRasterSample and NITF/JPEG2000

2010-03-04 Thread Shaw, Jonathan-P29740
I am using GDALGetRandomRasterSample() to determine scale values for 16-bit per band map sources that I'm processing. What I've found is that for my NITF files that use JPEG2000 subimages, GDALGetRandomRasterSample() takes a long time to run and consumes a lot of memory (~800 MB RAM for a 540 MB NI