Skip to content

Commit

Permalink
Merge pull request #160 from effjot/PR-icon-m-z-types
Browse files Browse the repository at this point in the history
Add icons for “M” (linear referencing) geometry types
  • Loading branch information
Gustry authored Jan 8, 2024
2 parents e490bbe + 1fd0b0c commit 622761b
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 622761b

Please sign in to comment.