qwat / QWAT

TEKSI Water module (project QWAT) - QGIS project
https://www.teksi.ch
GNU General Public License v2.0
58 stars 31 forks source link

improve QGIS to handle different layer definition sections (QML export) #209

Open haubourg opened 7 years ago

haubourg commented 7 years ago

Currently all layer properties sections are mixed into one style, with many styles possible for a layer.

This is prone to useability caveats, like switching styles and not having the same form or layer actions, and makes it harder to maintain, if one need to have the same forms but allow differents style switches. Proposal would be to have one default section for forms, actions etc.. and independant style (symbology + labels+ display field) switching. Being able to store several actions - forms should be preserved but triggered with explicity buttons.

https://issues.qgis.org/issues/15733

238

haubourg commented 6 years ago

Discussed in PSC 2017 11 23:

What is expected:

haubourg commented 6 years ago

This feature is meant to adress easier local customization of projects and easier resync with master project

m-kuhn commented 6 years ago

If you are ok with this proposal, let me know and I'll open a PR upstream

haubourg commented 6 years ago

@m-kuhn we first need an estimate for that work. Could you do that?

m-kuhn commented 6 years ago

2 hours?

haubourg commented 6 years ago

with doc, tests and bugfix included? Better count one day ?

haubourg commented 6 years ago

If you agree, GO!

m-kuhn commented 6 years ago

Sounds good to be on the safe side.

I'll check if tests make sense.

m-kuhn commented 6 years ago

Sorry @haubourg the proposal here was only for the screenshot above, not for the full control over what to save. I have mixed this up with #238 .

The full proposal will require 2 - 3 days, sorry for not realizing that these are two different tickets earlier.

haubourg commented 6 years ago

Oh, OK, 2 hours sounded fast yes !

m-kuhn commented 6 years ago

https://github.com/qgis/QGIS/pull/5900

haubourg commented 6 years ago

@ponceta @dsavary Given this is a not something users will discuss, but usefull to GIS administrators, what is the priority of this task for 2018? My opinion is that it is very much needed and as a very high mutualization value for the whole QGIS community. I would then plead to launch that as soon as 3.0 is out.
Opinions?

dsavary commented 6 years ago

@haubourg It is a priority need for us . (Gis admin) To plan as soon as possible ( 2018 )

m-kuhn commented 6 years ago

Highly appreciated also from a qgis community perspective.

haubourg commented 6 years ago

Agreed with the priority here. @ponceta do you give us a GO or do you need QWAT's team approval?

dsavary commented 6 years ago

Is this issue also to fix the bug with QLR export (Layer Definition File) in QGIS 2.18 ? The settings of the form are lost (only for the current style) I create a new issue for this ?

Tested in QGIS 3.0 : the export QLR seems to be working well.

Bug demo gif : export_qlr_lost_form

haubourg commented 6 years ago

Nope, separate issue. The qlr issue is already identified here https://issues.qgis.org/issues/16655

haubourg commented 6 years ago

I just launched a QEP for advanced proposal of export / import of QML parts here https://github.com/qgis/QGIS-Enhancement-Proposals/issues/125

Any comments welcome

haubourg commented 6 years ago

@ponceta @dsavary @kandre are you happy with the current state of the QEP?

dsavary commented 6 years ago

@haubourg very good job. I don't understand all the details about the discussion with Mathias Kuhn... Perhaps, it may be necessary to specify, if the export of sections (symbole, form, ...) is done by default on the current style or the user can choose (before) in the menu one of the styles that he wants to export.