Skip to content

Commit

Permalink
add doc
Browse files Browse the repository at this point in the history
  • Loading branch information
sharkAndshark committed Sep 21, 2023
1 parent 373c357 commit 5b13924
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 5 deletions.
6 changes: 6 additions & 0 deletions docs/src/config-file.md
Original file line number Diff line number Diff line change
Expand Up @@ -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}'
Expand Down
5 changes: 0 additions & 5 deletions martin/src/pg/config.rs
Original file line number Diff line number Diff line change
Expand Up @@ -73,24 +73,19 @@ pub struct PgCfgPublishType {
#[serde(skip_serializing_if = "Option::is_none")]
#[serde(alias = "from_schema")]
pub from_schemas: Option<OneOrMany<String>>,

#[serde(skip_serializing_if = "Option::is_none")]
#[serde(alias = "id_format")]
pub source_id_format: Option<String>,

/// 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<OneOrMany<String>>,

#[serde(skip_serializing_if = "Option::is_none")]
pub clip_geom: Option<bool>,

#[serde(skip_serializing_if = "Option::is_none")]
pub buffer: Option<u32>,

#[serde(skip_serializing_if = "Option::is_none")]
pub extent: Option<u32>,
}
Expand Down

0 comments on commit 5b13924

Please sign in to comment.