[Qgis-developer] ogrLayerName in processing/tools/vector.py
Mark Johnson
mj10777 at googlemail.com
Mon Oct 17 07:31:51 PDT 2016
Sorry, I misread the request.
In this case, if I have now understood correctly, you are opening the
source before retrieving the layer.
That would then be everything up to the first '|'.
For a file-base source the full-filename with path.
For a Database-System such as PostGis the Connection-String to connect to
the Database (with user/password-information).
---
After the connection has been made use GetName or GetLayer as needed from
the information supplied after the first '|' to retrieve the layer.
When the Layer-Name is unique, GetName should be used
- for drivers such as GML and KML, where the Layer-Name may not be unique,
Getlayer should be used
Mark
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.osgeo.org/pipermail/qgis-developer/attachments/20161017/6f8cbf11/attachment.html>
More information about the Qgis-developer
mailing list