INSPIRE-MIF / gp-geopackage-encodings

Good practice for GeoPackage encodings of INSPIRE datasets
7 stars 4 forks source link

[END] Schema extension #16

Open heidivanparys opened 3 years ago

heidivanparys commented 3 years ago

The INSPIRE models are well described with definitions on all model elements. I assume the same is true for models that extend the INSPIRE model. I think it would be good if those definitions would be available in the GeoPackage files as well.

For features/tables, the definition should be put in gpkg_contents.description. For properties/columns, the Schema extension should be used, and the definition should be put in gpkg_data_columns.description. If enum constraints are used, the definition should be put in gpkg_data_column_constraints.description.

From the specification:

The schema extension provides a means to describe the columns of tables in a GeoPackage with more detail than can be captured by the SQL table definition directly. The information provided by this extension can be used by applications to, for instance, present data contained in a GeoPackage in a more user-friendly fashion or implement data validation logic.

So the use of this extension is not limited to the description of constraints (range, enums, ...). It can be a means to describe the data without necessarily having to refer the user to the data specification/data model to read all the definitions.

thorsten-reitz commented 3 years ago

Results of the discussion on 30.06.2021: