From 89036f4e51255247e5a02a9b2d4a729f5b46a2ef Mon Sep 17 00:00:00 2001 From: Matthias Mohr Date: Mon, 5 Dec 2022 18:29:23 +0100 Subject: [PATCH] Require minimum length of 1 for primary_geometry #129 (#153) * Require minimum length of 1 for primary_geometry #129 * Update format-specs/geoparquet.md Co-authored-by: Chris Holmes --- format-specs/geoparquet.md | 6 +++--- format-specs/schema.json | 1 + 2 files changed, 4 insertions(+), 3 deletions(-) diff --git a/format-specs/geoparquet.md b/format-specs/geoparquet.md index 226901f..f61215e 100644 --- a/format-specs/geoparquet.md +++ b/format-specs/geoparquet.md @@ -37,9 +37,9 @@ All file-level metadata should be included under the "geo" key in the parquet me | Field Name | Type | Description | | ------------------ | ------ | -------------------------------------------------------------------- | -| version | string | **REQUIRED** The version of the GeoParquet metadata standard used when writing. | -| primary_column | string | **REQUIRED** The name of the "primary" geometry column. | -| columns | object | **REQUIRED** Metadata about geometry columns, with each key is the name of a geometry column in the table. | +| version | string | **REQUIRED** The version of the GeoParquet metadata standard used when writing. | +| primary_column | string | **REQUIRED** The name of the "primary" geometry column. | +| columns | object | **REQUIRED** Metadata about geometry columns. Each key is the name of a geometry column in the table. | At this level, additional implementation-specific fields (e.g. library name) are allowed, and thus readers should be robust in ignoring those. diff --git a/format-specs/schema.json b/format-specs/schema.json index 4a19765..b965334 100644 --- a/format-specs/schema.json +++ b/format-specs/schema.json @@ -11,6 +11,7 @@ }, "primary_column": { "type": "string", + "minLength": 1, "description": "The name of the 'primary' geometry column." }, "columns": {