[MapServer-users] LAYER TOLERANCE increases requested OGC API bbox

Kilian Glaus kilian.glaus at hotmail.com
Tue Jun 16 02:42:38 PDT 2026


Hello everybody

If I have a defined TOLERANCE on the LAYER level of a mapfile, the requested bbox of an OGC API request is increased linear with the size of TOLERANCE. Is this intended or a bug?
The problem occurs with another EPSG like 4326
When I do a WFS request with the same bbox, the TOLERANCE is ignored.

Request: `/ogcapi/collections/prozessraum_rutschung/items?f=json&bbox=2678483.5005230373,1286876.7365089145,2680778.0675097415,1287676.7148341944&bbox-crs=http://www.opengis.net/def/crs/EPSG/0/2056`

Request without TOLERANCE
Processed BBOX: POLYGON((2678472.83748642 1286845.70388825,2678472.83748642 1287707.7538654,2680789.0451681 1287707.7538654,2680789.0451681 1286845.70388825,2678472.83748642 1286845.70388825))

Request with TOLERANCE 4
Processed BBOX: POLYGON((2670889.86292488 1275708.25617677,2670889.86292488 1298857.60050378,2688405.20300468 1298857.60050378,2688405.20300468 1275708.25617677,2670889.86292488 1275708.25617677))

Request with TOLERANCE 8
Processed BBOX: POLYGON((2663334.74802645 1264580.34909246,2663334.74802645 1310016.9403732,2696049.18633325 1310016.9403732,2696049.18633325 1264580.34909246,2663334.74802645 1264580.34909246))

Best regards
Kilian

-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.osgeo.org/pipermail/mapserver-users/attachments/20260616/2ce45ee1/attachment.htm>


More information about the MapServer-users mailing list