<div dir="ltr">>> <span style="font-size:12.8px">what are your thoughts on</span><br style="font-size:12.8px"><a href="http://osgeo-org.1560.x6.nabble.com/Future-of-spatialite-provider-td5311979.html" rel="noreferrer" target="_blank" style="font-size:12.8px">http://osgeo-org.1560.x6.<wbr>nabble.com/Future-of-<wbr>spatialite-provider-td5311979.<wbr>html</a><br style="font-size:12.8px"><span style="font-size:12.8px">?</span><div><span style="font-size:12.8px"><br></span></div><div><span style="font-size:12.8px">For </span><font color="#000000" face="Verdana, Geneva, Helvetica, Arial, sans-serif"><span style="font-size:13.44px">gpkg: should remain solely with OGR.</span></font></div><div><span style="color:rgb(0,0,0);font-family:Verdana,Geneva,Helvetica,Arial,sans-serif;font-size:13.44px"><br></span></div><div><font color="#000000" face="Verdana, Geneva, Helvetica, Arial, sans-serif"><span style="font-size:13.44px">For VectorLayers (SpatialTables and SpatialViews) is more problematic, since OGR does not support writable SpatialViews, which I use heavily.</span></font></div><div><font color="#000000" face="Verdana, Geneva, Helvetica, Arial, sans-serif"><span style="font-size:13.44px"><br></span></font></div><div><font color="#000000" face="Verdana, Geneva, Helvetica, Arial, sans-serif"><span style="font-size:13.44px">So that would be a -1 for me for removing QgsSpatiaLiteProvider.</span></font></div><div><font color="#000000" face="Verdana, Geneva, Helvetica, Arial, sans-serif"><span style="font-size:13.44px"><br></span></font></div><div><font color="#000000" face="Verdana, Geneva, Helvetica, Arial, sans-serif"><span style="font-size:13.44px">With the upcoming Spatialite 4.5.0, with the new RasterLite2 and Topology support, an adapted </span></font><span style="color:rgb(0,0,0);font-family:Verdana,Geneva,Helvetica,Arial,sans-serif;font-size:13.44px">QgsSpatiaLiteProvider can provide more than the present </span><span style="color:rgb(0,0,0);font-family:Verdana,Geneva,Helvetica,Arial,sans-serif;font-size:13.44px">VectorLayers support.</span></div><div><span style="color:rgb(0,0,0);font-family:Verdana,Geneva,Helvetica,Arial,sans-serif;font-size:13.44px"><br></span></div><div><span style="color:rgb(0,0,0);font-family:Verdana,Geneva,Helvetica,Arial,sans-serif;font-size:13.44px">Since with RasterLite2 one Database will contain both Vector and Raster Layers and new Dialog logic is needed when selecting Layers to load.</span></div><div><font color="#000000" face="Verdana, Geneva, Helvetica, Arial, sans-serif"><span style="font-size:13.44px">The intention is to create a Dialog that will be similar to that used in spatialite_gui, where Vector and Raster Layers are separated.</span></font></div><div><font color="#000000" face="Verdana, Geneva, Helvetica, Arial, sans-serif"><span style="font-size:13.44px">Also the 'hiding' of the Administration tables (that also contain geometries) is needed to avoid confusion.</span></font></div><div><font color="#000000" face="Verdana, Geneva, Helvetica, Arial, sans-serif"><span style="font-size:13.44px"><br></span></font></div><div><font color="#000000" face="Verdana, Geneva, Helvetica, Arial, sans-serif"><span style="font-size:13.44px">Since </span></font><span style="color:rgb(0,0,0);font-family:Verdana,Geneva,Helvetica,Arial,sans-serif;font-size:13.44px">RasterLite2 is not only designed to store and show Rasters, but also to combine the Raster-Data with Vector-Data (with</span><span style="font-size:13.44px;color:rgb(0,0,0);font-family:Verdana,Geneva,Helvetica,Arial,sans-serif"> </span><font color="#000000" face="Verdana, Geneva, Helvetica, Arial, sans-serif"><span style="font-size:13.44px">SLD/SE styles), an adapted QgsSpatiaLiteProvider would be more able to utilized to full functionality than (possibly) GDAL/OGR. </span></font></div><div><font color="#000000" face="Verdana, Geneva, Helvetica, Arial, sans-serif"><span style="font-size:13.44px"><br></span></font></div><div><font color="#000000" face="Verdana, Geneva, Helvetica, Arial, sans-serif"><span style="font-size:13.44px">This assumes that the </span></font><span style="color:rgb(0,0,0);font-family:Verdana,Geneva,Helvetica,Arial,sans-serif;font-size:13.44px">QgsSpatiaLiteProvider is properly maintained and that changes be made with </span><font color="#000000" face="Verdana, Geneva, Helvetica, Arial, sans-serif"><span style="font-size:13.44px">coordination and discussion with the spatialite project (which in the past has not been done).</span></font></div><div><font color="#000000" face="Verdana, Geneva, Helvetica, Arial, sans-serif"><span style="font-size:13.44px"><br></span></font></div><div><font color="#000000" face="Verdana, Geneva, Helvetica, Arial, sans-serif"><span style="font-size:13.44px">So for QGIS3, I would say, that an option should be built in so that the User can chose whether the spatialite or Gdal/Ogr provider should be used in Drag and Drop </span></font><span style="color:rgb(0,0,0);font-family:Verdana,Geneva,Helvetica,Arial,sans-serif;font-size:13.44px">actions </span><span style="font-size:13.44px;color:rgb(0,0,0);font-family:Verdana,Geneva,Helvetica,Arial,sans-serif">(or other types of file selections). </span><span style="font-size:13.44px;color:rgb(0,0,0);font-family:Verdana,Geneva,Helvetica,Arial,sans-serif">  </span></div><div><span style="font-size:13.44px;color:rgb(0,0,0);font-family:Verdana,Geneva,Helvetica,Arial,sans-serif">The present </span><font color="#000000" face="Verdana, Geneva, Helvetica, Arial, sans-serif"><span style="font-size:13.44px">QgsSqliteHandle class can very swiftly determine if a selected file is supported by the QgsSpatiaLiteProvider or not (and could be dealt with in QgisApp::handleDropUriList).</span></font></div><div><font color="#000000" face="Verdana, Geneva, Helvetica, Arial, sans-serif"><span style="font-size:13.44px"><br></span></font></div><div><font color="#000000" face="Verdana, Geneva, Helvetica, Arial, sans-serif"><span style="font-size:13.44px">Mark</span></font></div><div><span style="color:rgb(0,0,0);font-family:Verdana,Geneva,Helvetica,Arial,sans-serif;font-size:13.44px"><br></span></div><div><span style="color:rgb(0,0,0);font-family:Verdana,Geneva,Helvetica,Arial,sans-serif;font-size:13.44px"><br></span></div></div>