On Tue, Oct 18, 2016 at 11:55:21AM +0200, Mark Johnson wrote:
> >
> > The problem, as Germán found out, is that the URI passed as parameter
> > is not necessarely an OGR provider URI, but a generic QGIS uri, from
> > any provider, so it cannot always be opened via ogr.Open.
> 
> Yes, ogr-sysntax must be used.
> 
> # -- Spatialite provider
> 
> # dbname='/tmp/x.sqlite' table="t" (geometry) sql='
> 
> would need to call 'GetLayerByName'

But the above is NOT an ogrDataSource
Please see with current master_2 branch if the test work for you
with both GDAL 1 and GDAL 2:

Running the automated test is done via:

  ctest -V -R ProcessingToolsTest

Manual tests imply importing layers to postgis (via processing).

They pass here with GDAL 2


--strk;
_______________________________________________
Qgis-developer mailing list
Qgis-developer@lists.osgeo.org
List info: http://lists.osgeo.org/mailman/listinfo/qgis-developer
Unsubscribe: http://lists.osgeo.org/mailman/listinfo/qgis-developer

Reply via email to