diff --git a/format-specs/requirements/requirement-cm.adoc b/format-specs/requirements/requirement-cm.adoc new file mode 100644 index 0000000..f47e1d6 --- /dev/null +++ b/format-specs/requirements/requirement-cm.adoc @@ -0,0 +1,6 @@ +[requirement] +==== +[%metadata] +identifier:: /req/core/columnmetadata +part:: Each geometry column in the dataset SHALL have an entry in the "columns" object, and the key of the object MUST have the same name as the geometry column in the dataset. +==== \ No newline at end of file diff --git a/format-specs/requirements/requirement-fm.adoc b/format-specs/requirements/requirement-fm.adoc new file mode 100644 index 0000000..b320089 --- /dev/null +++ b/format-specs/requirements/requirement-fm.adoc @@ -0,0 +1,7 @@ +[requirement] +==== +[%metadata] +identifier:: /req/core/filemetadata +part:: A GeoParquet file SHALL contain an appropriate value in the "version" key in the file metadata to indicate its version. +part:: The "primary_column" key SHALL be present in the file metadata, and its value MUST be a string that matches one of the column metadata keys. +==== \ No newline at end of file diff --git a/format-specs/requirements/requirement001.adoc b/format-specs/requirements/requirement001.adoc index 4efd1a8..ceaa4fc 100644 --- a/format-specs/requirements/requirement001.adoc +++ b/format-specs/requirements/requirement001.adoc @@ -2,6 +2,8 @@ ==== [%metadata] identifier:: /req/core/geometry-columns -part:: Geometry columns SHALL be stored using the BYTE_ARRAY parquet type. -part:: Geometries SHALL be encoded as https://en.wikipedia.org/wiki/Well-known_text_representation_of_geometry#Well-known_binary[Well Known Binary (WKB)]. +part:: Each column metadata object MUST include a valid "encoding" string. +part:: For this version of the GeoParquet specification the value of the encoding string MUST be "WKB". +part:: Geometry columns with "WKB" as the encoding SHALL be stored using the BYTE_ARRAY parquet type. +part:: Geometries in geometry columns with "WKB" as the encoding SHALL be encoded as https://en.wikipedia.org/wiki/Well-known_text_representation_of_geometry#Well-known_binary[Well Known Binary (WKB)]. ==== diff --git a/format-specs/requirements/requirements009.adoc b/format-specs/requirements/requirements009.adoc new file mode 100644 index 0000000..f5395a1 --- /dev/null +++ b/format-specs/requirements/requirements009.adoc @@ -0,0 +1,8 @@ +[requirement] +==== +[%metadata] +identifier:: /req/core/geoemtrytypes +part:: Every geometry column metadata object must include a "geometry_types" list. +part:: All geometry types that are present in the file MUST be included in the "geometry_types" metadata, if the geometry_types list is not empty. +part:: If the geometry types are not known then the geometry_types list MUST be empty. +====