When I do a WFS GetFeature request on 2 layers with a limit some times the number of results is lower than expected.
It's like that MapServer query the first layer, and if he is OK with the number of getting features, event if it didn't raise the limit, he didn't query the second layer...
Returns me 3 results on MapServer 7.6 but 5 on MapServer 7.4.
Layers definition:
LAYER
NAME "post_office"
EXTENT 2473743 1074095 2839000 1306400
TYPE POINT
STATUS ON
TEMPLATE fooOnlyForWMSGetFeatureInfo # For GetFeatureInfo
CONNECTIONTYPE postgis
PROCESSING "CLOSE_CONNECTION=DEFER" # For performance
CONNECTION "host=${PGHOST_SLAVE} port=${PGPORT_SLAVE} user=${PGUSER} password=${PGPASSWORD} dbname=${OSM_PGDATABASE}"
DATA "geom FROM (
SELECT
regexp_replace(format(\'%s\', name), \'^$\', osm_id::text) AS display_name,
name,osm_id,access,aerialway,amenity,barrier,bicycle,brand,building,covered,denomination,ele,foot,highway,
layer,leisure,man_made,motorcar,\"natural\", operator, population, power, place, railway, ref, religion,
shop, sport, surface, tourism, waterway, wood, way AS geom
FROM planet_osm_point
WHERE amenity = 'post_office'
) AS foo USING unique osm_id USING srid=2056"
LABELITEM "name"
PROJECTION
"init=epsg:2056"
END
TOLERANCE 10
TOLERANCEUNITS pixels
CLASS
NAME "Office de poste"
KEYIMAGE symbols/postal.png
STYLE
SYMBOL "postal"
SIZE 30
END
LABEL
SIZE 12
OFFSET 0 10
COLOR 128 128 0
OUTLINECOLOR 255 255 255
OUTLINEWIDTH 2
PARTIALS FALSE
MAXSCALEDENOM 150000
END
END
METADATA
"wms_title" "post_office"
"gml_include_items" "all"
"gml_types" "auto"
"gml_featureid" "osm_id"
"gml_geom_type" "point"
"gml_geometries" "geom"
END
END
LAYER
NAME "fuel"
EXTENT 2473743 1074095 2839000 1306400
TYPE POINT
STATUS ON
TEMPLATE fooOnlyForWMSGetFeatureInfo # For GetFeatureInfo
CONNECTIONTYPE postgis
PROCESSING "CLOSE_CONNECTION=DEFER" # For performance
CONNECTION "host=${PGHOST_SLAVE} port=${PGPORT_SLAVE} user=${PGUSER} password=${PGPASSWORD} dbname=${OSM_PGDATABASE}"
DATA "geom FROM (
SELECT
regexp_replace(format(\'%s\', name), \'^$\', osm_id::text) AS display_name,
name,osm_id,access,aerialway,amenity,barrier,bicycle,brand,building,covered,denomination,ele,
foot,highway,layer,leisure,man_made,motorcar,\"natural\", operator, population, power, place,
railway, ref, religion, shop, sport, surface, tourism, waterway, wood, way AS geom
FROM planet_osm_point
WHERE amenity = 'fuel'
) AS foo USING unique osm_id USING srid=2056"
LABELITEM "name"
PROJECTION
"init=epsg:2056"
END
TOLERANCE 10
TOLERANCEUNITS pixels
CLASS
NAME "Station service"
KEYIMAGE symbols/fillingstation.png
STYLE
SYMBOL "fillingstation"
SIZE 30
END
LABEL
SIZE 12
OFFSET 0 10
COLOR 157 112 80
OUTLINECOLOR 255 255 255
OUTLINEWIDTH 2
PARTIALS FALSE
MAXSCALEDENOM 150000
END
END
METADATA
"wms_title" "fuel"
"gml_include_items" "all"
"gml_types" "auto"
"gml_featureid" "osm_id"
"gml_geom_type" "point"
"gml_geometries" "geom"
END
END
Expected behavior and actual behavior.
When I do a WFS GetFeature request on 2 layers with a limit some times the number of results is lower than expected.
It's like that MapServer query the first layer, and if he is OK with the number of getting features, event if it didn't raise the limit, he didn't query the second layer...
Steps to reproduce the problem.
The following request
Returns me 3 results on MapServer 7.6 but 5 on MapServer 7.4.
Layers definition:
Operating system
Ubuntu 20.04 64 bit
MapServer version and installation method
7.6.2