[Qgis-developer] QgsMapLayer.source() for a WFS now returns a different string

Even Rouault even.rouault at spatialys.com
Wed Jul 20 06:45:24 PDT 2016


Le mercredi 20 juillet 2016 15:21:57, Tom Chadwin a écrit :
> Even Rouault-2 wrote
> 
> > You can use QgsDataSourceURI.param("url") to retrieve the url parameter.
> > You
> > 'll need to augment it with SERVICE, VERSION and REQUEST parameters to
> > form a
> > valid GetFeature request.
> 
> Many apologies, but how do I retrieve the QgsDataSourceURI of a layer? I'm
> not managing to get it to work.

Something like QgsDataSourceURI(layer.provider().dataSourceUri())

> 
> 
> 
> --
> View this message in context:
> http://osgeo-org.1560.x6.nabble.com/QgsMapLayer-source-for-a-WFS-now-retur
> ns-a-different-string-tp5277278p5277347.html Sent from the Quantum GIS -
> Developer mailing list archive at Nabble.com.
> _______________________________________________
> Qgis-developer mailing list
> Qgis-developer at lists.osgeo.org
> List info: http://lists.osgeo.org/mailman/listinfo/qgis-developer
> Unsubscribe: http://lists.osgeo.org/mailman/listinfo/qgis-developer

-- 
Spatialys - Geospatial professional services
http://www.spatialys.com


More information about the Qgis-developer mailing list