You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
max_files: 5# maximum number of join source files to persist (omit to disable auto-cleanup)
86
+
max_days: 10# maximum number of days to keep join source files (omit to disable auto-cleanup)
87
+
80
88
# optional OGC API - Processes asynchronous job management configuration
81
89
manager:
82
90
name: TinyDB # plugin name (see pygeoapi.plugin for supported process_manager's)
@@ -386,6 +394,43 @@ Examples:
386
394
curl https://example.org/collections/foo # user can access resource normally
387
395
388
396
397
+
.. _OGC API - Joins:
398
+
399
+
OGC API - Joins
400
+
---------------
401
+
402
+
To enable `OGC API - Joins <https://ogcapi.ogc.org/joins/>`_ support, all you have to do is add a `joins` key to the `server` section of your configuration file:
403
+
404
+
.. code-block:: yaml
405
+
server:
406
+
joins:
407
+
408
+
This is all you need to activate the OGC API - Joins endpoints for feature collections and allow you to upload CSV files,
409
+
which will be processed and stored as join sources (`.json`) in the configured temporary directory of the server (e.g. `/tmp` on Linux or `C:\Windows\Temp` on Windows).
410
+
411
+
If you wish to store the join source files in a *specific* directory, you can specify a `source_dir` parameter:
412
+
413
+
.. code-block:: yaml
414
+
server:
415
+
joins:
416
+
source_dir: /path/to/join/sources
417
+
418
+
Automatic cleanup
419
+
^^^^^^^^^^^^^^^^^
420
+
421
+
Without any further configuration, the amount of join source files could grow indefinitely.
422
+
To control the number of files and/or days they are stored, you can set the following parameters:
423
+
424
+
- `max_files`
425
+
- `max_days`
426
+
427
+
Both parameters can be set to an integer. If omitted, no cleanup rule will be set.
428
+
Note that the settings are *not* mutually exclusive: you can also set both options.
429
+
430
+
The automatic cleanup is a lazy process and does not run as a scheduled background task: the process will only run
431
+
when a new join source file is uploaded or when pygeoapi initializes (if OGC API - Joins is enabled).
0 commit comments