Josh Marcus wrote:
Hey there,

I was wondering if I could get some help or advice on using the FEATURE_COUNT (or MAXFEATURES) parameter with a WMS call. I'm using Mapserver 4.99.

My output type is text/html, which I'm using to generate JSON. The data layer is a postgresql/postgis database. In general, it's working fine -- except that I want to limit the response to a maximum number of features. Passing in a FEATURE_COUNT cgi parameter seems to have no effect at all. Interestingly, passing in MAXFEATURES (with any value) limits the output to a single feature.


FEATURE_COUNT had no effect with INFO_FORMAT=text/html in 5.0 and older. This was fixed in v5.2, so you'll have to upgrade to 5.2 or patch your local install. All the details in ticket #1686:
  http://trac.osgeo.org/mapserver/ticket/1686

Daniel
--
Daniel Morissette
http://www.mapgears.com/
_______________________________________________
mapserver-users mailing list
[email protected]
http://lists.osgeo.org/mailman/listinfo/mapserver-users

Reply via email to