feature filtering by size

Cameron Shorter cshorter at optusnet.com.au
Mon Aug 16 16:21:31 EDT 1999


These extra features are great.  It would be great if this utility, as
well as the other utilities was covered in the documentation.

Cameron.

Stephen Lime wrote:
> 
> There's one way to do that now. It takes a quite different approach. There
> is a keyword called "MAXFEATURES" that allows you to define the maximum
> number of features shown for a given layer. So if set to 50 only the first 50
> shapes that are in bounds are actually drawn. Now, this only makes sense
> if you're data is somehow sorted. There is a routine I wrote in the shapelib
> directory called sortshp that will sort a shapefile in ascending or decending
> order based on a numeric field. So with your lakes data if you sort based on
> area in descending order, and draw say only 25 at a time you might get the
> desired effect. There are benefits to this approach over a filter:



More information about the mapserver-users mailing list