On Wed, 17 Jan 2018 06:34:14 -0800 (PST), 'mj10777' via SpatiaLite
Users wrote:
> On Wednesday, 17 January 2018 14:29:56 UTC+1, Tara wrote:
>
>> In my attach file you can see that inside the 'Metadata' folder and
>> 'internal Data folder there are some files.
>
there are at least three different kinds of Spatial Databases
aka "formats" based on SQLite:
a) SpatiaLite
b) FDO/OGR
c) GeoPackage aka GPKG
all them have similar metatables ("geometry_columns" and
"spatial_ref_sys") but such tables have different layouts
for each specific format.
they so remarkably different that we can use each specific
layout as a "fingerprint" useful to precisely identify
which format is adopted by a given DB-file.
when spatialite_gui opens an existing DB-file it will
always check if it adopts the FDO/OGR or GPKG format,
and in this case will automatically enter the appropriate
"wrapping" mode, showing a message panel like the one
exemplified in the attached figure.
and more or less the same is for the spatialite CLI tool.
I'm unable to see any reference to this message box in
the Tara's posts, and it's really hard to imagine that
a so striking message could pass unnoticed.
so I can only suppose that this specific DB-file isn't
a genuine FDO/OGR ... it looks more likely to be just a
broken DB-file presenting inconsistent metadata tables.
spatialite_gui already notices the user in a very
evident way when a valid FDO/OGR or GPKG DB-file
is going to be connected.
the suggested patch seems to be redundant and
not strictly required (and will surely not
work in the case of malformed DB-files, as the
one we are apparently discussing about).
bye Sandro