Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Updates to OGC requirements #247

Draft
wants to merge 4 commits into
base: ogc-template
Choose a base branch
from
Draft
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 6 additions & 0 deletions format-specs/requirements/requirement-cm.adoc
Original file line number Diff line number Diff line change
@@ -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.
====
7 changes: 7 additions & 0 deletions format-specs/requirements/requirement-fm.adoc
Original file line number Diff line number Diff line change
@@ -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.
====
6 changes: 4 additions & 2 deletions format-specs/requirements/requirement001.adoc
Original file line number Diff line number Diff line change
Expand Up @@ -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)].
====
8 changes: 8 additions & 0 deletions format-specs/requirements/requirements009.adoc
Original file line number Diff line number Diff line change
@@ -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.
====
Loading