<div dir="ltr">In other words, is there a way to remove http content from CPL error message?</div><br><div class="gmail_quote"><div dir="ltr" class="gmail_attr">śr., 28 sie 2024 o 18:04 Michał Kowalczuk <<a href="mailto:michkowalczuk@gmail.com">michkowalczuk@gmail.com</a>> napisał(a):<br></div><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex"><div dir="ltr">Sorry, my bad!<div>I missed to check output CPL Error from GdalRasterIO 🤦</div><div><br></div><div>You mentioned about <b>ZeroBlockHttpCodes </b>property. Can I set it programmatically, as a configuration option?</div><div><br></div><div>As always great thank you!</div></div><br><div class="gmail_quote"><div dir="ltr" class="gmail_attr">śr., 28 sie 2024 o 17:51 Even Rouault <<a href="mailto:even.rouault@spatialys.com" target="_blank">even.rouault@spatialys.com</a>> napisał(a):<br></div><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex"><u></u>
<div>
<p><br>
</p>
<div>Le 28/08/2024 à 17:41, Michał Kowalczuk
a écrit :<br>
</div>
<blockquote type="cite">
<div dir="auto">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?</div>
</blockquote>
Really? That looks doubtful to me, because I don't see how
gdal_translate would return in error otherwise, but I may miss some
subtlety obviously. Can you demonstrate that with a self-contained
reproducer?<br>
<blockquote type="cite">
<div dir="auto"><br>
</div>
<div dir="auto"><br>
</div>
<div>
<div class="gmail_quote">
<div dir="ltr" class="gmail_attr">W dniu śr., 28.08.2024 o
17:38 Even Rouault <<a href="mailto:even.rouault@spatialys.com" target="_blank">even.rouault@spatialys.com</a>>
napisał(a):<br>
</div>
<blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex">
<div>
<p><br>
</p>
<div>Le 28/08/2024 à 17:26, Michał Kowalczuk a écrit :<br>
</div>
<blockquote type="cite">
<div dir="ltr">First produces correct output
<div><i>gdal_translate -srcwin 33492026 20550638
8019970 4412002 -outsize 1576 867 "WMTS:<a href="https://basemap.nationalmap.gov/arcgis/rest/services/USGSImageryOnly/MapServer/WMTS/1.0.0/WMTSCapabilities.xml,layer=USGSImageryOnly,tilematrixset=GoogleMapsCompatible" target="_blank">https://basemap.nationalmap.gov/arcgis/rest/services/USGSImageryOnly/MapServer/WMTS/1.0.0/WMTSCapabilities.xml,layer=USGSImageryOnly,tilematrixset=GoogleMapsCompatible</a>"
tile_ok.png<br>
</i></div>
<div><br>
</div>
<div>The following for higher level fails:</div>
<div><i>gdal_translate -srcwin 36228140 21140450
191172 105168 -outsize 1576 867 "WMTS:<a href="https://basemap.nationalmap.gov/arcgis/rest/services/USGSImageryOnly/MapServer/WMTS/1.0.0/WMTSCapabilities.xml,layer=USGSImageryOnly,tilematrixset=GoogleMapsCompatible" target="_blank">https://basemap.nationalmap.gov/arcgis/rest/services/USGSImageryOnly/MapServer/WMTS/1.0.0/WMTSCapabilities.xml,layer=USGSImageryOnly,tilematrixset=GoogleMapsCompatible</a>"
tile_error.png</i></div>
</div>
</blockquote>
<p><i>yes, and ? gdal_translate returns in error as
expected due to the missing tiles. If you want HTTP
400 to be silently ignored, you can do:</i></p>
<p><i>gdal_translate
"WMTS:<a href="https://basemap.nationalmap.gov/arcgis/rest/services/USGSImageryOnly/MapServer/WMTS/1.0.0/WMTSCapabilities.xml,layer=USGSImageryOnly,tilematrixset=GoogleMapsCompatible" target="_blank">https://basemap.nationalmap.gov/arcgis/rest/services/USGSImageryOnly/MapServer/WMTS/1.0.0/WMTSCapabilities.xml,layer=USGSImageryOnly,tilematrixset=GoogleMapsCompatible</a>"
tmp.wmts -of wmts</i></p>
<p><i>and edit tmp.wtms to add 400 in
<ZeroBlockHttpCodes><br>
</i></p>
</div>
<div>
<blockquote type="cite">
<div dir="ltr">
<div><br>
<br>
</div>
</div>
<br>
<div class="gmail_quote">
<div dir="ltr" class="gmail_attr">śr., 28 sie 2024 o
17:07 Even Rouault <<a href="mailto:even.rouault@spatialys.com" target="_blank">even.rouault@spatialys.com</a>>
napisał(a):<br>
</div>
<blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex">
<div>
<p>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<br>
</p>
<div>Le 28/08/2024 à 16:52, Michał Kowalczuk via
gdal-dev a écrit :<br>
</div>
<blockquote type="cite">
<div dir="ltr">Dear GDAL friends,
<div>any thoughts on this issue?</div>
<div><br>
</div>
<div>Regards,</div>
<div>Michał</div>
</div>
<br>
<div class="gmail_quote">
<div dir="ltr" class="gmail_attr">wt., 27 sie
2024 o 17:40 Michał Kowalczuk <<a href="mailto:michkowalczuk@gmail.com" target="_blank">michkowalczuk@gmail.com</a>>
napisał(a):<br>
</div>
<blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex">
<div dir="ltr">
<div>Hi!</div>
I'm wondering if the last issue 10348 was
fully solved.
<div>Try use the following WMTS server and
to zoom to level 9-10, e.g. small island
in the Mediterranean
<div>
<p style="margin:0px"><a href="https://basemap.nationalmap.gov/arcgis/rest/services/USGSImageryOnly/MapServer/WMTS/1.0.0/WMTSCapabilities.xml" target="_blank"><span style="font-family:arial,"sans-serif";color:rgb(114,159,207)">https://basemap.nationalmap.gov/arcgis/rest/services/USGSImageryOnly/MapServer/WMTS/1.0.0/WMTSCapabilities.xml</span></a></p>
<p style="margin:0px">For a sample
tile </p>
<p style="margin:0px"><a href="https://basemap.nationalmap.gov/arcgis/rest/services/USGSImageryOnly/MapServer/WMTS/tile/1.0.0/USGSImageryOnly/default/GoogleMapsCompatible/10/392/514" target="_blank">https://basemap.nationalmap.gov/arcgis/rest/services/USGSImageryOnly/MapServer/WMTS/tile/1.0.0/USGSImageryOnly/default/GoogleMapsCompatible/10/392/514</a></p>
<p style="margin:0px">arcgis server
returns error code 400.</p>
<p style="margin:0px"><br>
</p>
<p style="margin:0px">GDALRasterIO
passes so I do not know if there was
an error inside. Only logger gives
some information, but how to detect
such a situation?</p>
<p style="margin:0px">A sample logger
file attached</p>
<br>
Kind regards,</div>
</div>
<div>Michał</div>
</div>
</blockquote>
</div>
<br>
<fieldset></fieldset>
<pre>_______________________________________________
gdal-dev mailing list
<a href="mailto:gdal-dev@lists.osgeo.org" target="_blank">gdal-dev@lists.osgeo.org</a>
<a href="https://lists.osgeo.org/mailman/listinfo/gdal-dev" target="_blank">https://lists.osgeo.org/mailman/listinfo/gdal-dev</a>
</pre>
</blockquote>
<pre cols="72">--
<a href="http://www.spatialys.com" target="_blank">http://www.spatialys.com</a>
My software is free, but my time generally not.</pre>
</div>
</blockquote>
</div>
</blockquote>
<pre cols="72">--
<a href="http://www.spatialys.com" target="_blank">http://www.spatialys.com</a>
My software is free, but my time generally not.</pre>
</div>
</blockquote>
</div>
</div>
</blockquote>
<pre cols="72">--
<a href="http://www.spatialys.com" target="_blank">http://www.spatialys.com</a>
My software is free, but my time generally not.</pre>
</div>
</blockquote></div>
</blockquote></div>