CrunchyData / pg_featureserv

Lightweight RESTful Geospatial Feature Server for PostGIS in Go
Apache License 2.0
459 stars 91 forks source link

Only returns max 1000 features #171

Closed tiboego closed 3 weeks ago

tiboego commented 3 weeks ago

Hi I'm running pg-featureserv as docker image in Azure. I have a problem with the numbers of features returned by the server.

Even though I have set a max limit of 10.000: https://[featureserv.azurewebsites.net/collections/dtu.llyn_parkering_plads/items.json?limit=10000](https://featureserv.azurewebsites.net/collections/dtu.llyn_parkering_plads/items.json?limit=10000)

Is it possible to set the LimitMax and LimitDefault in Enviroment Viriables ?

JakobMiksch commented 3 weeks ago

you can change these settings using environment variables and the config file https://github.com/CrunchyData/pg_featureserv/blob/a52f518950ed70f08e18d01d0a7ad2200dca709c/config/pg_featureserv.toml.example#L71-L75

tiboego commented 3 weeks ago

Great. Is it possible to overwrite config file with "LimitDefault" and "LimitMax" directly as Enviroment variables?

JakobMiksch commented 3 weeks ago

yes, that should be possible. It is described in the README. Here is the relevant paragraph:

Other parameters in the configuration file can be over-ridden in the environment. Prepend the upper-cased parameter name with PGFSsection to set the value.

tiboego commented 3 weeks ago

Great thanks!

JakobMiksch commented 3 weeks ago

@tiboego if your problem is solved, you can close the issue ;-)