[Qgis-user] How to convert qml style file from version 3.28.6 to 3.16.14

2024-01-08 Thread Rigola C Jaume INFORMACIO DE BASE via QGIS-User
For reasons that are not relevant to this discussion I have two versions of 
QGIS installed on my Desktop (3.16.14-Hannover & 3.28.6-Firenze).

I have realised that when a project is saved at 3.28.6-Firenze version, the 
symbology styles are lost if opened with QGIS 3.16.14-Hannover. I've browsed 
for solutions, and I read that that's an issue since version 3.22, but I 
couldn't find a way to solve it.

Does anyone know how to save the layer stlyles on 3.28.6-Firenze  so they can 
be recovered on 3.16.14-Hannover? (Maybe a version conversor, or a QML file 
conversor)

Many thanks in advance,

Jaume

___
QGIS-User mailing list
QGIS-User@lists.osgeo.org
List info: https://lists.osgeo.org/mailman/listinfo/qgis-user
Unsubscribe: https://lists.osgeo.org/mailman/listinfo/qgis-user


Re: [Qgis-user] How to convert qml style file from version 3.28.6 to 3.16.14

2024-01-08 Thread Richard McDonnell via QGIS-User
Hi Jaume,
I'm making the assumption that your styling is saved in the Project File and 
not as a Style for the Layer itself.
Might I suggest that you create a default style for each layer, this can easily 
be done by going to the Layer Properties and clicking on the Style button on 
the bottom Left and selecting Save as Default. This will result in a default 
style for the Layer so it doesn't matter what version of QGIS you use, or 
indeed what project you load the layer into, it will use the default style. You 
can also manually do this, by saving the style with the same name as the 
dataset.

The same can be done for all layers, Vector or Raster. It will even do it for 
PostGIS Layers, saving the style in a new table called style in the public 
schema in your Database.

I hope the above helps.
Kind Regards,

Richard




--
Richard McDonnell MSc GIS, FME Certified Professional
FRM Data Management

--
Oifig na nOibreacha Poibl?
Office of Public Works

Sr?id Jonathan Swift, Baile ?tha Troim, Co na M?, C15 NX36
Jonathan Swift Street, Trim, Co Meath, C15 NX36
--
M +353 87 688 5964 T +353 46 942 2409
https://gov.ie/opw

--
To send me files larger than 30MB, please use the link below 
https://filetransfer.opw.ie/filedrop/richard.mcdonn...@opw.ie

Email Disclaimer: 
https://www.gov.ie/en/organisation-information/439daf-email-disclaimer/

--
MSc GIS, FME Certified Professional

--
Oifig na nOibreacha Poibl?
Office of Public Works

Sr?id Jonathan Swift, Baile ?tha Troim, Co na M?, C15 NX36
Jonathan Swift Street, Trim, Co Meath, C15 NX36
--
M +353 87 688 5964 T +353 46 942 2409
https://https://gov.ie/opw

--
Email Disclaimer: 
https://www.gov.ie/en/organisation-information/439daf-email-disclaimer/
From: QGIS-User  On Behalf Of Rigola C Jaume 
INFORMACIO DE BASE via QGIS-User
Sent: 08 January 2024 13:13
To: 'qgis-user@lists.osgeo.org' 
Subject: [Qgis-user] How to convert qml style file from version 3.28.6 to 
3.16.14

For reasons that are not relevant to this discussion I have two versions of 
QGIS installed on my Desktop (3.16.14-Hannover & 3.28.6-Firenze).

I have realised that when a project is saved at 3.28.6-Firenze version, the 
symbology styles are lost if opened with QGIS 3.16.14-Hannover. I've browsed 
for solutions, and I read that that's an issue since version 3.22, but I 
couldn't find a way to solve it.

Does anyone know how to save the layer stlyles on 3.28.6-Firenze  so they can 
be recovered on 3.16.14-Hannover? (Maybe a version conversor, or a QML file 
conversor)

Many thanks in advance,

Jaume


___
QGIS-User mailing list
QGIS-User@lists.osgeo.org
List info: https://lists.osgeo.org/mailman/listinfo/qgis-user
Unsubscribe: https://lists.osgeo.org/mailman/listinfo/qgis-user


Re: [Qgis-user] How to convert qml style file from version

2024-01-08 Thread Alister Hood via QGIS-User
I wasn't aware that you can work around the backward compatibility problem
by saving style files, but if that works you might find a processing
algorithm to save default style could save you a lot of time.  The
geoproc.com processing algorithms plugin has one, as well as another for
saving and loading multiple styles.
And I posted another algorithm to save default style at:
https://github.com/qgis/QGIS/issues/41471#issuecomment-1588467276

Date: Mon, 8 Jan 2024 15:16:31 +
> From: Richard McDonnell 
> To: Rigola C Jaume INFORMACIO DE BASE 
> Cc: "qgis-user@lists.osgeo.org" 
> Subject: Re: [Qgis-user] How to convert qml style file from version
> 3.28.6 to 3.16.14
> Message-ID:
> <
> db9p189mb20515fd46de4be71fb18dbaa99...@db9p189mb2051.eurp189.prod.outlook.com
> >
>
> Content-Type: text/plain; charset="us-ascii"
>
> Hi Jaume,
> I'm making the assumption that your styling is saved in the Project File
> and not as a Style for the Layer itself.
> Might I suggest that you create a default style for each layer, this can
> easily be done by going to the Layer Properties and clicking on the Style
> button on the bottom Left and selecting Save as Default. This will result
> in a default style for the Layer so it doesn't matter what version of QGIS
> you use, or indeed what project you load the layer into, it will use the
> default style. You can also manually do this, by saving the style with the
> same name as the dataset.
>
> The same can be done for all layers, Vector or Raster. It will even do it
> for PostGIS Layers, saving the style in a new table called style in the
> public schema in your Database.
>
> I hope the above helps.
> Kind Regards,
>
> Richard
>
>
>
>
> --
> Richard McDonnell MSc GIS, FME Certified Professional
> FRM Data Management
>
> --
> Oifig na nOibreacha Poibl?
> Office of Public Works
>
> Sr?id Jonathan Swift, Baile ?tha Troim, Co na M?, C15 NX36
> Jonathan Swift Street, Trim, Co Meath, C15 NX36
> --
> M +353 87 688 5964 T +353 46 942 2409
> https://gov.ie/opw
>
> --
> To send me files larger than 30MB, please use the link below
> https://filetransfer.opw.ie/filedrop/richard.mcdonn...@opw.ie
>
> Email Disclaimer:
> https://www.gov.ie/en/organisation-information/439daf-email-disclaimer/
>
> --
> MSc GIS, FME Certified Professional
>
> --
> Oifig na nOibreacha Poibl?
> Office of Public Works
>
> Sr?id Jonathan Swift, Baile ?tha Troim, Co na M?, C15 NX36
> Jonathan Swift Street, Trim, Co Meath, C15 NX36
> --
> M +353 87 688 5964 T +353 46 942 2409
> https://https://gov.ie/opw
>
> --
> Email Disclaimer:
> https://www.gov.ie/en/organisation-information/439daf-email-disclaimer/<
> https://www.opw.ie/en/disclaimer/>
> From: QGIS-User  On Behalf Of Rigola C
> Jaume INFORMACIO DE BASE via QGIS-User
> Sent: 08 January 2024 13:13
> To: 'qgis-user@lists.osgeo.org' 
> Subject: [Qgis-user] How to convert qml style file from version 3.28.6 to
> 3.16.14
>
> For reasons that are not relevant to this discussion I have two versions
> of QGIS installed on my Desktop (3.16.14-Hannover & 3.28.6-Firenze).
>
> I have realised that when a project is saved at 3.28.6-Firenze version,
> the symbology styles are lost if opened with QGIS 3.16.14-Hannover. I've
> browsed for solutions, and I read that that's an issue since version 3.22,
> but I couldn't find a way to solve it.
>
> Does anyone know how to save the layer stlyles on 3.28.6-Firenze  so they
> can be recovered on 3.16.14-Hannover? (Maybe a version conversor, or a QML
> file conversor)
>
> Many thanks in advance,
>
> Jaume
>
___
QGIS-User mailing list
QGIS-User@lists.osgeo.org
List info: https://lists.osgeo.org/mailman/listinfo/qgis-user
Unsubscribe: https://lists.osgeo.org/mailman/listinfo/qgis-user