From 5b1392472007e30572007fab0bb19d3add65137c Mon Sep 17 00:00:00 2001 From: sharkAndshark Date: Thu, 21 Sep 2023 13:20:40 +0800 Subject: [PATCH] add doc --- docs/src/config-file.md | 6 ++++++ martin/src/pg/config.rs | 5 ----- 2 files changed, 6 insertions(+), 5 deletions(-) diff --git a/docs/src/config-file.md b/docs/src/config-file.md index c10bc97c2..8fe58a638 100644 --- a/docs/src/config-file.md +++ b/docs/src/config-file.md @@ -71,6 +71,12 @@ postgres: # If a table has no column with this name, `id_column` will not be set for that table. # If a list of strings is given, the first found column will be treated as a feature ID. id_columns: feature_id + # Boolean to control if geometries should be clipped or encoded as is, optional, default to true + clip_geom: true + # Buffer distance in tile coordinate space to optionally clip geometries, optional, default to 64 + buffer: 64 + # Tile extent in tile coordinate space, optional, default to 4096 + extent: 4096 functions: # Optionally set how source ID should be generated based on the function's name and schema source_id_format: '{schema}.{function}' diff --git a/martin/src/pg/config.rs b/martin/src/pg/config.rs index 936e89134..8d4207538 100644 --- a/martin/src/pg/config.rs +++ b/martin/src/pg/config.rs @@ -73,24 +73,19 @@ pub struct PgCfgPublishType { #[serde(skip_serializing_if = "Option::is_none")] #[serde(alias = "from_schema")] pub from_schemas: Option>, - #[serde(skip_serializing_if = "Option::is_none")] #[serde(alias = "id_format")] pub source_id_format: Option, - /// A table column to use as the feature ID /// If a table has no column with this name, `id_column` will not be set for that table. /// If a list of strings is given, the first found column will be treated as a feature ID. #[serde(skip_serializing_if = "Option::is_none")] #[serde(alias = "id_column")] pub id_columns: Option>, - #[serde(skip_serializing_if = "Option::is_none")] pub clip_geom: Option, - #[serde(skip_serializing_if = "Option::is_none")] pub buffer: Option, - #[serde(skip_serializing_if = "Option::is_none")] pub extent: Option, }