geosolutions-it / MapStore2

The solution to create and share maps, dashboards, geostories with 3D support on the web. And it is open-source too!
https://mapstore.geosolutionsgroup.com/
Other
495 stars 382 forks source link

WMTS out of bounds for projection EPSG:4026 #9247

Open offtherailz opened 1 year ago

offtherailz commented 1 year ago

Description

See

How to reproduce

Expected Result WMTS layer is visible on map

Current Result

<ExceptionReport xmlns="http://www.opengis.net/ows/1.1" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" version="1.1.0" 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 -2 is out of range, min: 0 max:1</ExceptionText>
</Exception>
</ExceptionReport>
Browser info (use this site: https://www.whatsmybrowser.org/ for non expert users) | Browser Affected | Version | |---|---| |Internet Explorer| | |Edge| | |Chrome| | |Firefox| | |Safari| |

Other useful information

Sample map connected to local GeoServer configured as the bug suggested. map.zip

localConfig.json to use localConfig.zip

WMTS configugation download

aaime commented 1 year ago

Pointing out an obvious bit: trying to use a global layer, like the rain one, with a projection that is meant for local usage (UTM) makes little sense to start with. Most of the layer data is outside of the area where the projection was meant to be used, and in fact, large part of it lays in areas where the math of the projection stops making sense.

itingeocad commented 1 year ago

There is a small clarification. The layers we publish were originally made and published in the local projection 4026, WMS is published in Mapstore2 correctly, there are problems only with the display of WMTS on Mapstore2 maps in the 4026 projection.

You can use these data to test adding: WMTS https://geodata.gov.md/geoserver/gwc/service/wmts, and WMS http://geodata.gov.md/geoserver/gwc/service/wms