Hi David,
ElementaryGeometries (in all its related flavors) can never
work if the input table is not correctly registered into
the "geometry_columns" metadata-table.
So any eventual format conversion affecting just the BLOB
Geometries will always be completely useless. What is
strictly needed is populating a "genuine" SpatiaLite
GeoTable.
So there is only a way allowing to successfully call
ElementaryGeometries:
1. create a "genuine spatialite" table
2. populate this table by importing your initial GPKG data
3. export back the result returned by ElementaryGeometries()
into a GPKG own table.
please note: SpatiaLite is _not_ intended to be a library
indifferently supporting its own native binary format or
the alternative GPKG format.
the main goal of SpatiaLite simply is supporting its own
native stuff; soption, but it is and will always remain
an "alien" format clearly distinct from the native one,
and not necessarily supported if not by the most simpler
and unsophisticated functions.
bye Sandro