[gdal-dev] Wrongly identified SQLITE_BLOB as geomtry
jratike80
jukka.rahkonen at maanmittauslaitos.fi
Mon Oct 24 04:42:13 PDT 2016
How did you create the database? It is a spatial db for Spatialite as well
because it contains also field GEOMETRY which is registered in
geometry_columns.
DLL of the "timeseries" table is
CREATE TABLE 'timeseries' ( ogc_fid INTEGER PRIMARY KEY, 'data' BLOB, 'end'
VARCHAR, 'start' VARCHAR, 'station_id' INTEGER, 'timestep' INTEGER, 'type'
VARCHAR, "GEOMETRY" GEOMETRY)
Ogrinfo -al -so finds these attributes:
FID Column = ogc_fid
Geometry Column 1 = data
Geometry Column 2 = GEOMETRY
end: String (0.0)
start: String (0.0)
station_id: Integer (0.0)
timestep: Integer (0.0)
type: String (0.0)
If I drop column "GEOMETRY" with spatialite-gui which also removes the line
from geometry_columns the table is not more a spatial table for GDAL
ogrinfo binary_blob.sqlite -al -so
INFO: Open of `binary_blob.sqlite'
using driver `SQLite' successful.
Is your aim to have both the geometry and some blob fields? Is the problem
in here:
Geometry Column 1 = data
Geometry Column 2 = GEOMETRY
So, field "data" is somehow reported to be a geometry even it is not
registered in the geometry_columns. That does feel a bit odd.
--
View this message in context: http://osgeo-org.1560.x6.nabble.com/gdal-dev-Wrongly-identified-SQLITE-BLOB-as-geomtry-tp5292220p5292285.html
Sent from the GDAL - Dev mailing list archive at Nabble.com.
More information about the gdal-dev
mailing list