[Qgis-user] dataProvider().dataSourceUri() returns [url]|layerid=0
Philipp Ringli
philipp.ringli at gmail.com
Thu Feb 18 23:58:36 PST 2016
Good morning!
When trying to get the file's location from a vector layer likes this:
layer.dataProvider().dataSourceUri()
I get this:
/path/to/file/layer.shp|layerid=0
Why is there a pipe after the url?
Cheers
Philipp
Qgis 2.12.1
OS X 10.11.3
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.osgeo.org/pipermail/qgis-user/attachments/20160219/29a89b34/attachment.html>
More information about the Qgis-user
mailing list