grass
grass copied to clipboard
wxGUI/datacalog: distinguish vector map layer type by icon
Describe the solution you'd like
Distinguish vector map layer type by icon (quick and clear visual orientation in vector map layers in the data catalog tree):
-
3D vector map layer ('vector3d.png' icon). Modified original vector map layer icon with 3D char.
-
Vector map layer (geometry) is stored in the db, but db connection is refused, db service isn't running ('vector_db_disconnect.png' icon). Modified original vector map layer icon with DB char (DB -> Database), and x char (x -> connection is refused).
-
Link external vector map layer, but source path changed/deleted ('vector_link_without_src.png' icon). Modified original vector map layer icon with LK char (LK -> Link), and x char (x -> source path changed/deleted).
Source files (*.xcf format):
Disadvantage of the current implementation of this solution
Slowing down of loading the catalog data tree.
It's up to the discussion to see if such functionality is needed and useful or not.
I am not sure vector_db_disconnect and vector_link_without_src make too much sense, it seems like very specific and uncommon case. Showing 3D/2D makes sense, and if we decide to show that, we could also add the geometry type (points, lines, areas, mixed). But I am concerned about loading, so not sure whether to recommend certain version of this at all.
I am not sure vector_db_disconnect and vector_link_without_src make too much sense, it seems like very specific and uncommon case.
At first I thought only of distinguishing these two types 2D and 3D. However, the problem is with vector map layers that have a stored topology in the database and if the database service is not available, it is not possible to obtain information about whether the vector map layer is 3D or not (topology information coor file which hold info about 2D/3D, is stored in db). That's why I distinguished the vector layer with icons by vector_db_disconnect
and vector_link_without_src
type (however 3D information is available for the link vector map layer even if the source is changed or removed, but it is also appropriate inform the user that the resource has changed or deleted and that was the reason why I also distinguished this type).