QWC Data Service

QWC Data Service

Type: object

JSON Schema

Type: stringFormat: uri Default: "https://github.com/qwc-services/qwc-data-service/raw/master/schemas/qwc-data-service.json"

Reference to JSON schema of this config

Service name

Type: const
Specific value: "data"

Config options

Type: object

Type: string

Base dir where attachments are stored

Type: string

Comma separated list of allowed attachment file extensions, i.e. '.png,.jpg'

Type: number

Maximum attachment file size in bytes

Type: string

Hostname of ClamD server listening on TCP port 3310. If set, uploaded files are checked by ClamAV

Type: string

Field suffix where to log the username who last changed an upload field, i.e. __ for the field . If empty, username is not logged.

Type: string

If specified, the timestamp of the last mutation to a record will be logged to the field of the record.

Type: string

If specified, the username of the last user who performed a mutation to a record with be logged to the field of the record.

Type: boolean

Whether to allow null geometries by default

Type: object

Loopup of allowed attachment file extensions per theme, values as comma separated list, i.e. '.png,.jpg'

Type: object

Lookup of maximum attachment file size in bytes per theme

Type: string

The path pattern to use when saving attachments to disk. You can use {random}, {filename}, {ext} and {}, where field refers to the respective field value of the committed feature. Default is '{random}/{filename}'

Resources

Type: object

Datasets

Type: array of object
No Additional Items

Each item of this array must be:

Dataset

Type: object

PostgreSQL metadata and field constraints for a dataset

Type: string

Dataset name

Type: string

DB connection string for read and write access (or read-only access if dbwriteurl is present)

Type: string

Optional DB connection string for write access

Type: string

Type: array of object

Dataset fields with optional constraints

No Additional Items

Each item of this array must be:

Type: object

Type: string

Field name

Type: enum (of string) Default: "text"

Must be one of:

  • "USER-DEFINED"
  • "bigint"
  • "boolean"
  • "character"
  • "character varying"
  • "date"
  • "double precision"
  • "file"
  • "integer"
  • "json"
  • "jsonb"
  • "numeric"
  • "real"
  • "smallint"
  • "text"
  • "time"
  • "timestamp with time zone"
  • "timestamp without time zone"
  • "uuid"

PostGIS geometry metadata

Type: object

Type: enum (of string)

Must be one of:

  • "POINT"
  • "POINTZ"
  • "LINESTRING"
  • "LINESTRINGZ"
  • "POLYGON"
  • "POLYGONZ"
  • "MULTIPOINT"
  • "MULTIPOINTZ"
  • "MULTILINESTRING"
  • "MULTILINESTRINGZ"
  • "MULTIPOLYGON"
  • "MULTIPOLYGONZ"

SRID

Type: integer

Spatial Reference System Identifier (EPSG code)

Allow NULL geometries

Type: boolean Default: false

Allow setting geometry values to NULL