Re: [gdal-dev] GDAL WMTS detecting errors

2024-08-28 Thread Michał Kowalczuk via gdal-dev
In other words, is there a way to remove http content from CPL error message? śr., 28 sie 2024 o 18:04 Michał Kowalczuk napisał(a): > Sorry, my bad! > I missed to check output CPL Error from GdalRasterIO 🤦 > > You mentioned about *ZeroBlockHttpCodes *property. Can I set it > programmatically, as

Re: [gdal-dev] GDAL WMTS detecting errors

2024-08-28 Thread Michał Kowalczuk via gdal-dev
Sorry, my bad! I missed to check output CPL Error from GdalRasterIO 🤦 You mentioned about *ZeroBlockHttpCodes *property. Can I set it programmatically, as a configuration option? As always great thank you! śr., 28 sie 2024 o 17:51 Even Rouault napisał(a): > > Le 28/08/2024 à 17:41, Michał Kowa

Re: [gdal-dev] GDAL WMTS detecting errors

2024-08-28 Thread Even Rouault via gdal-dev
Le 28/08/2024 à 17:41, Michał Kowalczuk a écrit : Yes, but if you use C API function GdalRasterDatasetIO you don’t get error. I noticed this error only in gdal logger. How I can catch this error at runtime in code? Really? That looks doubtful to me, because I don't see how gdal_translate would

Re: [gdal-dev] GDAL WMTS detecting errors

2024-08-28 Thread Michał Kowalczuk via gdal-dev
Yes, but if you use C API function GdalRasterDatasetIO you don’t get error. I noticed this error only in gdal logger. How I can catch this error at runtime in code? W dniu śr., 28.08.2024 o 17:38 Even Rouault napisał(a): > > Le 28/08/2024 à 17:26, Michał Kowalczuk a écrit : > > First produces c

Re: [gdal-dev] GDAL WMTS detecting errors

2024-08-28 Thread Even Rouault via gdal-dev
Le 28/08/2024 à 17:26, Michał Kowalczuk a écrit : First produces correct output /gdal_translate -srcwin 33492026 20550638 8019970 4412002 -outsize 1576 867 "WMTS:https://basemap.nationalmap.gov/arcgis/rest/services/USGSImageryOnly/MapServer/WMTS/1.0.0/WMTSCapabilities.xml,layer=USGSImageryOnly

Re: [gdal-dev] GDAL WMTS detecting errors

2024-08-28 Thread Michał Kowalczuk via gdal-dev
First produces correct output *gdal_translate -srcwin 33492026 20550638 8019970 4412002 -outsize 1576 867 "WMTS:https://basemap.nationalmap.gov/arcgis/rest/services/USGSImageryOnly/MapServer/WMTS/1.0.0/WMTSCapabilities.xml,layer=USGSImageryOnly,tilematrixset=GoogleMapsCompatible

Re: [gdal-dev] GDAL WMTS detecting errors

2024-08-28 Thread Even Rouault via gdal-dev
If you could provide a gdal_translate command line reproducing the issue (likely using -srcwin + -outsize or -srcwin + -ovr to select the appropriate tile), that would make investigation easier Le 28/08/2024 à 16:52, Michał Kowalczuk via gdal-dev a écrit : Dear GDAL friends, any thoughts on th

Re: [gdal-dev] GDAL WMTS detecting errors

2024-08-28 Thread Michał Kowalczuk via gdal-dev
Dear GDAL friends, any thoughts on this issue? Regards, Michał wt., 27 sie 2024 o 17:40 Michał Kowalczuk napisał(a): > Hi! > I'm wondering if the last issue 10348 was fully solved. > Try use the following WMTS server and to zoom to level 9-10, e.g. small > island in the Mediterranean > > > http