3liz / qgis-pgmetadata-plugin

QGIS Plugin to manage some metadata from PostgreSQL layer
GNU General Public License v2.0
12 stars 10 forks source link

Enhancement: separator for min and max scale numbers #135

Open effjot opened 1 year ago

effjot commented 1 year ago

The format of the minimum and maximum scale fields is hard-coded as a slash in v_dataset, e.g. “1/1000”. Could we make this a configurable option? In German for example, scales are written with a colon (1:1000).

The selected locale is available in the query v_dataset, so we could add some code there, or we misuse the glossary table for a “scale number separator” item.

Edit: adding a thousands separator would be nice, too. I guess that this can be provided by the system locale / number formatting.

effjot commented 7 months ago

Do you have suggestions for this? For our internal application, I had added a glossary term scale_fraction which contains the fixed part (“1 :“ or “1 /”) and used in the v_dataset view.