Opened 20 years ago
Last modified 19 years ago
#551 new enhancement
mapserver queries don't incorporate maxFeatures
Reported by: | Owned by: | sdlime | |
---|---|---|---|
Priority: | high | Milestone: | FUTURE |
Component: | MapServer C Library | Version: | 4.1 |
Severity: | minor | Keywords: | |
Cc: |
Description
Here is how things work : - the user does a wfs request - in is translated in mapserver query : the query does not take into account the maxfeatures. - The MAXFEATURES is taken into account when generating the resulting gml file So yes, It ends up doing the query on all the shapes in your case. I think we should modify mapserver low level query functions to be able to pass a maxfeature parameter. Some of the query functions have a mode (single or mulitple), and this notion should be extended to support a maxfeature. Once this is done the wfs interface can take advantage of it.
Change History (6)
comment:2 by , 20 years ago
Cc: | added |
---|
comment:4 by , 20 years ago
Also, if the interface is gonna be changed, it might be worthwhile incorporating both maxFeatures and startPosition. startPosition is now in the Catalog 2.0 specs and will make it to the new WFS specs for sure. This makes it possible to fetch records in sets ("paging"). I do not know if this is technically possible in Mapserver at the moment.
comment:5 by , 20 years ago
Good ideas. It is technically possible, but wouldn't be as efficient because a result set isn't normally cached (although there is a savequery function that will write a query to disk for just such a purpose). At worse you just to the query multiple times and choose the records you need. Steve
Note:
See TracTickets
for help on using tickets.