Skip to content

Commit

Permalink
Add icons for “M” (linear referencing) geometry types
Browse files Browse the repository at this point in the history
MULTILINESTRINGM etc.
  • Loading branch information
effjot committed Dec 22, 2023
1 parent e490bbe commit 1fd0b0c
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions pg_metadata/tools.py
Original file line number Diff line number Diff line change
Expand Up @@ -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':
Expand Down

0 comments on commit 1fd0b0c

Please sign in to comment.