From 1fd0b0cf18bd3466737ec7dbe0969e5628bde1f7 Mon Sep 17 00:00:00 2001 From: Florian Jenn Date: Wed, 21 Jun 2023 14:38:40 +0200 Subject: [PATCH] =?UTF-8?q?Add=20icons=20for=20=E2=80=9CM=E2=80=9D=20(line?= =?UTF-8?q?ar=20referencing)=20geometry=20types?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit MULTILINESTRINGM etc. --- pg_metadata/tools.py | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/pg_metadata/tools.py b/pg_metadata/tools.py index fff2e161..cfe01b94 100644 --- a/pg_metadata/tools.py +++ b/pg_metadata/tools.py @@ -14,13 +14,13 @@ def icon_for_geometry_type(geometry_type: str) -> QIcon(): if geometry_type == NULL: return QgsLayerItem.iconTable() - elif geometry_type in ('POINT', 'MULTIPOINT'): + elif geometry_type in ('POINT', 'POINTM', 'MULTIPOINT'): return QgsLayerItem.iconPoint() - elif geometry_type in ('LINESTRING', 'MULTILINESTRING'): + elif geometry_type in ('LINESTRING', 'LINESTRINGM', 'MULTILINESTRING', 'MULTILINESTRINGM'): return QgsLayerItem.iconLine() - elif geometry_type in ('POLYGON', 'MULTIPOLYGON'): + elif geometry_type in ('POLYGON', 'POLYGONM', 'MULTIPOLYGON', 'MULTIPOLYGONM'): return QgsLayerItem.iconPolygon() elif geometry_type == 'RASTER':