Hi all,
I have a PostGIS layer with multiple geometries: POINT, MULTIPOINT,
LINESTRING and MULTILINESTRING.
I tried to add a layer in this way:
uri = QgsDataSourceURI()
uri.setConnection ("cartografia", "5432", "schema", "postgres", "pppp")
uri.setSql ("sql=GeometryType('wkb_geometry') IN
('LINESTRING','MULTILINESTRING')")
self.iface.addVectorLayer (uri.uri(), tab, "postgres")
but QGIS complains that it cannot add GEOMETRY types. How can threat this
layer as LINESTRING ?
_______________________________________________
Qgis-developer mailing list
[email protected]
http://lists.osgeo.org/mailman/listinfo/qgis-developer