Skip to main content
Question

Can the OGC GeoPackage Writer write metadata?

  • March 7, 2024
  • 3 replies
  • 125 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+20
  • Influencer
  • 144 replies
  • March 8, 2024

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
  • 116 replies
  • March 10, 2024

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+20
  • Influencer
  • 144 replies
  • March 11, 2024

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.