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
504 stars 389 forks source link

Filtering error with demo service layer #4346

Closed francoxyz closed 4 years ago

francoxyz commented 4 years ago

Description

An error occurs when the spatial filter is applied in layers with demo service. This issue is probably related to geosolutions-it/MapStore2#4306

filtercs

In case of Bug (otherwise remove this paragraph)

Browser Affected (use this site: https://www.whatsmybrowser.org/ for non expert users)

Browser Version Affected

Steps to reproduce

Expected Result

Current Result

Other useful information (optional):

This error occurs only for layers with demo service

tdipisa commented 4 years ago

Recently we have introduced the support to introduce the map SRID in spatial CQL filter for GetMap requests.

https://demo.geo-solutions.it/geoserver/wms?SERVICE=WMS&VERSION=1.3.0&REQUEST=GetMap&FORMAT=image/png8&TRANSPARENT=true&LAYERS=topp:states&SRS=EPSG:3857&CRS=EPSG:3857&TILED=true&layers=topp:states&CQL_FILTER=(INTERSECTS(the_geom **,SRID=3857;** Polygon((-11447209.355987996 5070526.708325452, -11447209.355987996 3881778.044434391, -10018754.171394624 3881778.044434391, -10018754.171394624 5070526.708325452, -11447209.355987996 5070526.708325452))))&WIDTH=256&HEIGHT=256&BBOX=-12523442.714243278,4383204.9499851465,-12210356.646387195,4696291.017841228

The SRID in CQL filters is supported only from GeoServer v2.13.x. Thsi issue does not affect newer version like our gs-stable instance. This issue can be closed.