[Qgis-developer] Multiple geometry columns per layer

Matthias Kuhn matthias.kuhn at gmx.ch
Fri Nov 30 08:49:29 PST 2012

> So right now we have QgsFeature that contains ID, attributes and a 
> geometry. I think we should keep that as-is because this is what is 
> usually expected from a layer.
And the users would be forced to deal with yet another pretty strong API 
change besides the API changes you plan to commit.

> In order to support multiple geometries per feature, we could possibly 
> allow QgsGeometry class as another attribute type (next to int, double 
> and QString). So providers like postgis that support multiple geometry 
> columns could return additional geometries wrapped as attributes in 
> QVariant. Would that work for you?
This would work perfectly well. I'm wondering how much work it would 
mean to get this.


More information about the Qgis-developer mailing list