Cannot import 3D vector into Spatialite datasource (works for GPKG) #33883
Labels
Bug
Either a bug report, or a bug fix. Let's hope for the latter!
Data Provider
Related to specific vector, raster or mesh data providers
QGIS 3.10.1/master on Windows/Linux
The following affects both the QGIS Browser and DB Manager.
Create an empty Spatialite datasource add create a connection to it
Pick a 3D shapefile like https://github.com/qgis/QGIS/files/4060140/zone_omi_dati.Bari.zip (unzip it)
Try import the above vector into the Spatialite datasource by drag & drop in the QGIS browser or DB manager
The results will always be a message like "Failed to import layer! Loading of layer failed" and an empty geometryless table is created inside the Spatialite source.
The same operation using a GPKG datasource works fine.
Notes:
using OGR2OGR a direct import into an existing Spatialite datasource also fails, i.e.
what works is
ogr2ogr -f SQLITE teste1.sqlite zone_omi.shp -update -nlt MULTIPOLYGONZ
or
ogr2ogr -f SQLITE teste1.sqlite zone_omi.shp -update -nlt POLYGONZ
The text was updated successfully, but these errors were encountered: