| Ticket Hash: | c047d0dffbaf0b31c99ddc41ad674f724746de76 | |||
| Title: | Purpose of field 'hidden' unclear | |||
| Status: | Closed | Type: | Documentation | |
| Severity: | Cosmetic | Priority: | Immediate | |
| Subsystem: | Resolution: | Overcome_By_Events | ||
| Last Modified: | 2020-08-26 07:19:19 | |||
| Version Found In: | development | |||
| User Comments: | ||||
|
mj10777 added on 2017-11-27 05:21:09:
The purpose of field 'hidden' unclear to me
Topology: *_edge*, *_face*, *_node*, *_seeds*, *_topolayers and *_topofeatures Truly useful, however, only when 'hidden' is included inside vector_layers, so that for a list of geometry layers without administration tables could be done with a:
where as a '(hidden = 0)' would be semi automatic sandro added on 2017-11-27 11:40:36: There is an "hidden" column on the following tables: "geometry_columns_auth", "views_geometry_columns_auth", "virts_geometry_columns_auth" and "vector_layers_auth"; as far as I can remember all the above "*_auth" tables were required by the now definitively abandoned GaiaGis tool. Such tables still continue to be supported only for historical reasons and just not to break backward compatibility; I presume that they are nowadays completely useless and should be consequently ignored at all. ==================================================== The idea to support a quick and simple mechanism intended to identify "forbidden system tables" apparently looking as ordinary Spatial Tables is surely useful. I'm not really convinced that "SELECT * FROM vector_layers WHERE hidden = 0" could be the best way to implement such a feature: - it will require to change the layout of several tables - and it will depend on manual updates ... a too much fragile design. I suppose that introducing an SQL Function returning TRUE or FALSE should be more effective and simpler to be implemented, something like: SELECT IsReservedTable( 'some_table' ); It should be then straightforward for QGIS, OGR/GDAL and so on filtering all "reserved" tables. Such an implementation will obviously be fully automatic (just depending on internal logic) and will surely be easier to maintain in future releases. mj10777 added on 2017-11-27 12:12:42: The problem with such a solution would be
Preferable would be a single query to gather the list One possibility could be adding a readonly for TABLEs in geometry_columns
sandro added on 2020-08-26 07:19:19: too old to be still considered | ||||