Re: [gdal-dev] NITF Int16 image size limit

2021-04-07 Thread ni hao
AM To: Even Rouault ; gdal-dev@lists.osgeo.org Subject: Re: [gdal-dev] NITF Int16 image size limit Hi Even, It was CSA using their own software. They said that it was fine access the last 2000 lines. But I could not confirm. From: Even Rouault Sent: April 7

Re: [gdal-dev] NITF Int16 image size limit

2021-04-07 Thread ni hao
lists.osgeo.org> <mailto:gdal-dev@lists.osgeo.org> Subject: Re: [gdal-dev] NITF Int16 image size limit Hi, Actually the error message doesn't look like there's a uint32 overflow as it displays a file offset that is beyond the 4 GB limit. Did you check that your file size is at

Re: [gdal-dev] NITF Int16 image size limit

2021-04-07 Thread Even Rouault
=   NITF_OSTAID=CSA   NITF_PJUST=R   NITF_PVTYPE=INT   NITF_STYPE=BF01   NITF_TGTID= *From:* Even Rouault *Sent:* April 7, 2021 5:23 AM *To:* ni hao ; gdal-dev@lists.osgeo.org *Subject:* Re: [gdal-dev] NITF Int16 image size limit

Re: [gdal-dev] NITF Int16 image size limit

2021-04-07 Thread ni hao
NITF_PVTYPE=INT NITF_STYPE=BF01 NITF_TGTID= From: Even Rouault Sent: April 7, 2021 5:23 AM To: ni hao ; gdal-dev@lists.osgeo.org Subject: Re: [gdal-dev] NITF Int16 image size limit Hi, Actually the error message doesn't look like there's a uint32 over

Re: [gdal-dev] NITF Int16 image size limit

2021-04-07 Thread Even Rouault
m 4324329780 and 2**32 = 4294967296 *From:* br...@frogmouth.net *Sent:* April 6, 2021 8:17 PM *To:* Even Rouault ; ni hao *Cc:* gdal-dev@lists.osgeo.org *Subject:* Re: [gdal-dev] NITF Int16 image size limit Also if you can show the headers (e.g. from gdalinfo), that might provide indication

Re: [gdal-dev] NITF Int16 image size limit

2021-04-06 Thread bradh
2:46 PM To: ni hao ; gdal-dev@lists.osgeo.org Subject: Re: [gdal-dev] NITF Int16 image size limit   Shawn, This sounds more like a unwanted integer overflow somewhere in the NITF driver.  Is this with a recent GDAL ? If so, please file a bug at https://github.com/OSGeo/gdal/issues/new with all the

Re: [gdal-dev] NITF Int16 image size limit

2021-04-06 Thread ni hao
eo.org Subject: Re: [gdal-dev] NITF Int16 image size limit Also if you can show the headers (e.g. from gdalinfo), that might provide indication of exactly which value is the issue. Brad On 7 Apr. 2021 04:00, Even Rouault wrote: Please keep the mailing list copied (I re-added it) This is not

Re: [gdal-dev] NITF Int16 image size limit

2021-04-06 Thread bradh
ni hao a écrit : Hi Even, The version is 2.4.4. From: Even Rouault Sent: April 6, 2021 2:46 PM To: ni hao ; gdal-dev@lists.osgeo.org Subject: Re: [gdal-dev] NITF Int16 i

Re: [gdal-dev] NITF Int16 image size limit

2021-04-06 Thread Even Rouault
021 à 19:51, ni hao a écrit : Hi Even, The version is 2.4.4. *From:* Even Rouault *Sent:* April 6, 2021 2:46 PM *To:* ni hao ; gdal-dev@lists.osgeo.org *Subject:* Re: [gdal-dev] NITF Int16 image size limit Shawn, This s

Re: [gdal-dev] NITF Int16 image size limit

2021-04-06 Thread Even Rouault
Shawn, This sounds more like a unwanted integer overflow somewhere in the NITF driver.  Is this with a recent GDAL ? If so, please file a bug at https://github.com/OSGeo/gdal/issues/new with all the details needed. A link to the dataset would be ideal, but otherwise please provide in the tick

[gdal-dev] NITF Int16 image size limit

2021-04-06 Thread ni hao
Hi list, I encountered problem ingesting a large NITF Int16 image with GDAL: NITF 2-band image in Int16 format, 4.3 GB. It has 19690 lines x 61180 pixels. The upper 90% of the image looks fine. But the last 2000 lines fail to load by GDAL. That coincides with the 32-bit boundary. Note