Skip to content

Commit c9eceb1

Browse files
committed
update RFC5
1 parent 01ba1a3 commit c9eceb1

File tree

1 file changed

+4
-0
lines changed
  • docs/development/rfc

1 file changed

+4
-0
lines changed

docs/development/rfc/5.md

+4
Original file line numberDiff line numberDiff line change
@@ -30,6 +30,8 @@ limits:
3030
defaultitems: 10 # applies to vector data
3131
maxitems: 500 # applies to vector data
3232
maxdistance: [x, y] # applies to all datasets
33+
units: m # as per UCUM https://ucum.org/ucum#section-Tables-of-Terminal-Symbols
34+
on_surpass: error # one of error, throttle
3335
```
3436
3537
The `limits` setting will be applied as follows:
@@ -43,6 +45,8 @@ The `limits` setting will be applied as follows:
4345

4446
An `evaluate_limit` function will be added to the `pygeoapi` module for use by `pygeoapi.api` accordingly.
4547

48+
If `limits.on_surpass` is `error`, then pygeoapi will throw HTTP 413
49+
4650
### Backwards Compatibility Issues
4751

4852
The `limits` setting fully replaces `server.limit` and represents a compatibility break. The new functionality will not be backported to other branches.

0 commit comments

Comments
 (0)