Description
rel: https://www.mail-archive.com/mapserver-users@lists.osgeo.org/msg29255.html
Mapserver-Version: 8.6.4 (built)
An ogc api request with a bbox (e.g. /ogcapi/collections/testlayer/items?f=json&bbox=2678483.5005230373,1286876.7365089145,2680778.0675097415,1287676.7148341944&bbox-crs=http://www.opengis.net/def/crs/EPSG/0/2056) returns too many features if a tolerance is set on layer level. The internal bbox seems to be influenced by the set tolerance.
A WFS Get Feature request with the same bbox returns always the correct features even if a tolerance is set.
Example layer snippet with tolerance
LAYER
NAME "testlayer"
STATUS on
TYPE polygon
TOLERANCE 1.0
CLASS
...
END
METADATA
...
END
END
Bbox comparison
Bbox from request
2678483.5005230373,1286876.7365089145,2680778.0675097415,1287676.7148341944
Processed mapserver bbox with no tolerance set
POLYGON((2678472.83748642 1286845.70388825,2678472.83748642 1287707.7538654,2680789.0451681 1287707.7538654,2680789.0451681 1286845.70388825,2678472.83748642 1286845.70388825))
Processed mapserver bbox with tolerance 1.0
POLYGON((2676574.1869551 1284060.01431243,2676574.1869551 1290494.75905954,2682690.77180027 1290494.75905954,2682690.77180027 1284060.01431243,2676574.1869551 1284060.01431243))
Processed mapserver bbox with tolerance 2.0
POLYGON((2674677.27748998 1281274.92032104,2674677.27748998 1293282.35864635,2684594.23876274 1293282.35864635,2684594.23876274 1281274.92032104,2674677.27748998 1281274.92032104))


Description
rel: https://www.mail-archive.com/mapserver-users@lists.osgeo.org/msg29255.html
Mapserver-Version: 8.6.4 (built)
An ogc api request with a bbox (e.g.
/ogcapi/collections/testlayer/items?f=json&bbox=2678483.5005230373,1286876.7365089145,2680778.0675097415,1287676.7148341944&bbox-crs=http://www.opengis.net/def/crs/EPSG/0/2056) returns too many features if a tolerance is set on layer level. The internal bbox seems to be influenced by the set tolerance.A WFS Get Feature request with the same bbox returns always the correct features even if a tolerance is set.
Example layer snippet with tolerance
Bbox comparison
Bbox from request
2678483.5005230373,1286876.7365089145,2680778.0675097415,1287676.7148341944Processed mapserver bbox with no tolerance set
POLYGON((2678472.83748642 1286845.70388825,2678472.83748642 1287707.7538654,2680789.0451681 1287707.7538654,2680789.0451681 1286845.70388825,2678472.83748642 1286845.70388825))Processed mapserver bbox with tolerance 1.0
POLYGON((2676574.1869551 1284060.01431243,2676574.1869551 1290494.75905954,2682690.77180027 1290494.75905954,2682690.77180027 1284060.01431243,2676574.1869551 1284060.01431243))Processed mapserver bbox with tolerance 2.0
POLYGON((2674677.27748998 1281274.92032104,2674677.27748998 1293282.35864635,2684594.23876274 1293282.35864635,2684594.23876274 1281274.92032104,2674677.27748998 1281274.92032104))