Opened 20 years ago

Last modified 19 years ago

#551 new enhancement

mapserver queries don't incorporate maxFeatures

Reported by: bartvde@… 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:1 by sdlime, 20 years ago

Cc: morissette@… added
maxfeatures is one of those holdover parameters from the shapefile only days. 
It's only supported for drawing shapefiles (that I know of). It's a needed 
parameter, but I'm not sure if the existing parameter should be used of if 
something else should be added. I may renter this bug as a more general issue.

Steve 

comment:2 by assefa, 20 years ago

Cc: assefa@… added

comment:3 by assefa, 20 years ago

*** Bug 552 has been marked as a duplicate of this bug. ***

comment:4 by bartvde@…, 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 sdlime, 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

comment:6 by bartvde@…, 19 years ago

Milestone: FUTURE
Setting target to future.
Note: See TracTickets for help on using tickets.