Opened 20 years ago

Last modified 20 years ago

#881 new enhancement

MAXFEATURES only applies to Shape files

Reported by: refractions Owned by: sdlime
Priority: high Milestone:
Component: MapServer C Library Version: unspecified
Severity: minor Keywords:
Cc:

Description

As seen in the source code, the MAXFEATURES map file directive is only processed
by Shape file layers. For other types, it just silently does nothing, which can
be confusing. It would be good to expand MAXFEATURES to other layer types, or to
provide some other means of creating the same "show/label the X most 'important'
features" effects.

Change History (1)

comment:1 by sdlime, 20 years ago

A good idea. Although I've done my part and would prefer the various driver 
authors fix their code. For shapefiles this is implemented in the shapefile 
specific driver. Other driver implementations could/should simply work the 
MAXFEATURES value into their code. For example, I would imagine that the 
database drivers could easily alter their SQL code to limit the number of 
features returned. The OGR driver would probably have to implement a counter 
like the shapefile driver.

Steve
Note: See TracTickets for help on using tickets.