[prev in list] [next in list] [prev in thread] [next in thread] 

List:       qgis-user
Subject:    Re: [Qgis-user] Qgis Server: Configuring max number of WFS features served by the server
From:       Tom via QGIS-User <qgis-user () lists ! osgeo ! org>
Date:       2023-01-19 16:09:58
Message-ID: 1674144182071.3369411265.413221526 () googlemail ! com
[Download RAW message or body]

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

 > > QGIS-User@lists.osgeo.org

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

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

 > 

 > _______________________________________________

 > QGIS-User mailing list

 > QGIS-User@lists.osgeo.org

 > 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
QGIS-User@lists.osgeo.org
List info: https://lists.osgeo.org/mailman/listinfo/qgis-user
Unsubscribe: https://lists.osgeo.org/mailman/listinfo/qgis-user
[prev in list] [next in list] [prev in thread] [next in thread] 

Configure | About | News | Add a list | Sponsored by KoreLogic