feature filtering by size
Cameron Shorter
cshorter at optusnet.com.au
Mon Aug 16 13:21:31 PDT 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