qgis / qgis4.0_api

Tracker for QGIS 4.0 API related issues and developer discussion
3 stars 1 forks source link

Use QgsFeatureSource/Sink wherever possible (instead of QgsVectorLayer) #80

Open nyalldawson opened 6 years ago

nyalldawson commented 6 years ago

There's lots of times in the API (including throughout most of the analysis library) where API methods require use of QgsVectorLayer for inputs and outputs. They then only use the layer for a getFeatures call or for other basic getters like crs/extent/fields.

These should be updated to use the more versatile QgsFeatureSource and QgsFeatureSink interfaces.

m-kuhn commented 6 years ago

+1