-
-
Notifications
You must be signed in to change notification settings - Fork 405
WFS 2.0 paging problem with Postgis and BBOX #6181
Copy link
Copy link
Closed
Labels
Milestone
Description
MapServer ver 7.6.1
Mapserver requests features from Postgis with a query similar to this:
select "id"::text,ST_AsText("geometry") as geom,"id"::text from table
where
"geometry" && ST_GeomFromText('POLYGON((415885.464144915 4936233.565163,415885.464144915 4938751.56294925,419080.0342134 4938751.56294925,419080.0342134 4936233.565163,415885.464144915 4936233.565163))',32632)
limit 1001 offset 2000;
The use of && for better performace will only checking if the bounding boxes of geometry intersects.
docs/overlaps_geometry_box2df.html
In the file mapquery.c#L1252
a more restrictive check is then performed, for exmple msIntersectPolygons
which in same case can exclude some geometries returned from db breaking the paging mechanism.
In the images you can see a case of a geometry returned by Postgis but excluded from Mapserver check,
which breaks the feature count for the pagination calculation.
Reactions are currently unavailable

