WFS max number of features

1150
2
01-25-2023 01:41 AM
TomDiBu
New Contributor

Hello,

I want to limit the max number of feature in my WFS service, like described here: https://enterprise.arcgis.com/en/server/latest/publish-services/windows/available-wfs-service-proper...

 

My question is: if both property are set (Enable maximum number of features and

Maximum number of features), the server will eventually not return all available features. But can the user query this in capabilities document? There are some property or metadata, so that the user knows, that potentially not all features will be returned?

Best regards, Tom

0 Kudos
2 Replies
RaymondHuang_Sg
New Contributor III

Hi Tom,

It seems there is a almost always a default max value set for WFS to respond to GetFeature methods so users/developers should be made aware. The default max is 1000 for ArcGIS Server and if you do set the Maximum number of features property to be some other number and you wish to allow it to be discovered via GetCapabilities, it seems you may have to use the option to use an external capabilities file.

As stated at the bottom of this page (https://enterprise.arcgis.com/en/server/latest/publish-services/windows/available-wfs-service-proper...), to control the maximum number of features returned by the service, set the DefaultMaxFeatures property. The DefaultMaxFeatures property is only supported with WFS 1.1.0, so if you are using external capabilities files, you only need to set this property in the file referencing the 1.1.0 properties.

In an external capabilities file, the DefaultMaxFeatures property is defined in the metadata section of WFSServer 1.1.0 file as follows:

<ows:Constraint name="DefaultMaxFeatures">
 <ows:Value>200</ows:Value>
</ows:Constraint>

Is it what you may be looking for?

Cheers,
Raymond
0 Kudos
TomDiBu
New Contributor

Thank you for you answer!

It seems, that this is only supported in WFS 1.1.0

Does this mean, that the metadata are missing in WFS 1.0.0 and 2.0.0 but the limit will work, or that there is no possibility to limit the max number of features in WFS 1.0.0 and 2.0.0?

 

 

0 Kudos