Open catmorales opened 8 months ago
perhaps linked to #660
We have the same issue with COG layers
@catmorales The GetFeatureInfo requests on the WMTS layer fails with the following exception:
<?xml version="1.0" encoding="UTF-8"?>
<ExceptionReport version="1.1.0" xmlns="http://www.opengis.net/ows/1.1"
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
xsi:schemaLocation="http://www.opengis.net/ows/1.1 http://geowebcache.org/schema/ows/1.1.0/owsExceptionReport.xsd">
<Exception exceptionCode="TileOutOfRange" locator="TILECOLUMN">
<ExceptionText>Column 536 is out of range, min: 505 max:510</ExceptionText>
</Exception>
</ExceptionReport>
I don't know why at the moment, this error doesn't always appear. It seems to depend on the order in which the GFI responses arrive, meaning that if the GFI response for a WMST layer is the first MS does not seems to be able to handle the exception raised by the server. This should be investigated to properly understand the reason since we are not experiencing problems like that on our end therefore it would be the case to take a look also at the tilematrix set definition of involved WMTS layers you have.
We have the same issue with COG layers
In any case I don't see any connection with COG layers, to be honest, and main reasons are:
The reason why you have this impression is probably because, together with COG layers in TOC, you have also added one or more WMTS layer.
The app crash issue occurs when WMTS responds with TileOutOfRange
exception from the response and when the GFI format is HTML
, the catch processed output is sent as object instead of text/html string. Due to this HTMLViewer fails to perform string operation and ends with an exception.
However, this doesn't happen with TEXT or PROPERTIES as format
Modify the GFI wmts exception response based on infoformat
. As mentioned above the current error response is an object instead modify the output to return no features were found
. Something like this should handle the exception and show other GFI results that has output
return ['text/plain', 'text/html'].includes(params.infoformat) ? {data: 'no features were found'} : { data: { features: []}};
Describe the bug Since the 2023.02.00-georchestra release, when adding a WMTS in the TOC, the getfeature info request doesn't work and mapstore crashes.
To Reproduce Steps to reproduce the behavior:
Expected behavior the feature info popup open with the attributes information of vector layers as usual
Screenshots ej with cadastre wmts layer but it is the same with orthophoto2021 wmts layer
Desktop (please complete the following information):
Additional context We didn't have this problem with the 2022 releases. We use a standalone geowebcache. The original data is in EPSG 3948 but published on geoserver in different EPSG 3857, 4326 and 2154. The mapstore map is in EPSG 3857.