Hello Gerald,
thank you! I set the variable and I see in the log file the following message

"15:41:27 INFO Server[93]: - QGIS_SERVER_API_WFS3_MAX_LIMIT / '/qgis/server_api_wfs3_max_limit' (Maximum value for "limit" in a features request, defaults to 10000): '1000' (read from ENVIRONMENT_VARIABLE) "

So, it should work, but the WFS requests are still returning all features...How can I debug this?

Best regards, Tommaso


On Tuesday 17 January 2023 15:30:55 (+01:00), Gerald Kogler via QGIS-User wrote:


> Hi Tom,

> > I think QGIS_SERVER_API_WFS3_MAX_LIMIT is what you are looking for: https://docs.qgis.org/3.22/en/docs/server_manual/config.html#environment-variables




> For sure you always can limit it also from the request using MAXFEATURES, which is a standard OGC WFS parameter: https://docs.qgis.org/3.22/en/docs/server_manual/services/wfs.html#wfs-getfeature-maxfeatures




> hope that helps

> Gerald

> > >
> On 17/1/23 15:22, Tom via QGIS-User wrote:

> > Hello,

> > I want to limit the number of WFS features serve by Qgis Server.

> > In Geoserver one can configure this in "Maximum number of features"

> > There is such a option in Qgis Server?

> > Best regards, Tommaso

> > _______________________________________________

> > QGIS-User mailing list

> > [email protected]

> > List info: https://lists.osgeo.org/mailman/listinfo/qgis-user

> > Unsubscribe: https://lists.osgeo.org/mailman/listinfo/qgis-user

>
> _______________________________________________

> QGIS-User mailing list

> [email protected]

> List info: https://lists.osgeo.org/mailman/listinfo/qgis-user

> Unsubscribe: https://lists.osgeo.org/mailman/listinfo/qgis-user

>
--
Sent with Vivaldi Mail. Download Vivaldi for free at vivaldi.com
_______________________________________________
QGIS-User mailing list
[email protected]
List info: https://lists.osgeo.org/mailman/listinfo/qgis-user
Unsubscribe: https://lists.osgeo.org/mailman/listinfo/qgis-user

Reply via email to