Closed effjot closed 7 months ago
Hum, the geometry is a string, because we get it from ... d.geometry_type, ... FROM pgmetadata.export_datasets_as_flat_table('{locale}') d
, not sure it's worth it to build the QgsMapLayer to use QgsIconUtils.
return QgsIconUtils.iconForWkbType(QgsWkbTypes.parseType(geometry_type))
should do the trick, but I haven’t tested it fully yet.
Thanks for checking. I haven't tried, but just to keep notes : https://github.com/3liz/qgis-pgmetadata-plugin/pull/161
Show geometry icons in locator search results for geometry types with “M” coordinate, e.g. LINESTRINGM.