camptocamp / cgxp

22 stars 22 forks source link

Add maxFeatures param to query builder requests #1060

Closed asaunier closed 8 years ago

asaunier commented 8 years ago

Config parameters enable_limit_featurecollection and maxfeatures have been removed in GMF 1.6. See how it worked in 1.5: https://github.com/camptocamp/c2cgeoportal/blob/1.5/c2cgeoportal/views/mapserverproxy.py#L237-L242

As a result it is no longer possible to restrict the number of features returned by a WFS request from the query builder to mapserver (even though it is still possible to set a MAXFEATURES attribute in LAYER). This PR adds maxFeatures in the WFS requests, as it is already done in the GetFeature plugin: https://github.com/camptocamp/cgxp/blob/master/core/src/script/CGXP/plugins/GetFeature.js#L541

sbrunner commented 8 years ago

Looks good, merge :-)