Skip to main content
Question

Can the OGC GeoPackage Writer write metadata?

  • Mar 7, 2024 11:44 PM UTC
  • 3 replies
  • 201 views

nicholas
Contributor
Forum|alt.badge.img+14

Can the OGC GeoPackage Writer write metadata to the gpkg file?
Particularly metadata that conforms to the ISO 19139 standard

The geopackage file would be holding a vector dataset, like roads or parcel boundaries

3 replies

joepk
Influencer
Forum|alt.badge.img+22
  • Influencer
  • Mar 8, 2024 9:13 AM UTC

I don't think the OGC Geopackage writer can write metadata. You can however use the SQLite Non-Spatial writer to write metadata, since a gpkg is an SQLite database. Check out this documentation on gpkg metadata: https://www.geopackage.org/guidance/extensions/metadata.html#gpkg_metadata


nicholas
Contributor
Forum|alt.badge.img+14
  • Author
  • Contributor
  • Mar 10, 2024 9:31 PM UTC

Looking at that document, the entire metadata document is a single value in one row of a table!

I suppose that this is also how metadata is stored in a fileGDB? I don’t know the internals of fileGDB, but FME grabs the metadata as geodb_metadata_string, which is extremely long

 


joepk
Influencer
Forum|alt.badge.img+22
  • Influencer
  • Mar 11, 2024 8:09 AM UTC

geodb_metadata_string is an XML representation of the metadata of your FGDB. This goes in the ‘metadata’ column, you can specify XML in the ‘mime_type’ column.