<div dir="ltr"><div dir="ltr">Hi Christian,<div><br></div><div>It is logical not to be able to copy and paste style if the mesh datasets are not the same. It is consistent with the other parts of QGIS, for example, you can not copy and paste style from a point layer to a line layer.</div><div>My suggestion is to save the color ramp from hydro_as-2d (2nd layer in your layer tree) > Submersion and apply it to hydro_as-2d (1st layer in your layer tree) > Submersion.</div><div><br></div><div>It might be useful to file an enhancement ticket, so that if a mesh dataset name matches, the style can be used for that specific dataset.</div><div><br></div><div>Also, worth upgrading to more recent versions of QGIS.</div><div><br></div><div>Kind regards</div><div>Saber</div></div><br><div class="gmail_quote"><div dir="ltr" class="gmail_attr">On Tue, 14 Mar 2023 at 17:48, Christian Naujoks via QGIS-User <<a href="mailto:qgis-user@lists.osgeo.org">qgis-user@lists.osgeo.org</a>> wrote:<br></div><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex"><div style="text-align:left;direction:ltr"><div>Hi,</div><div><br></div><div>I use mesh layers to represent floodplains and flow depths.</div><div><br></div><div><br></div><div>Question to the QgsMeshLayer users and QGIS developers - Core enhancement (QgsMeshLayer)</div><div><br></div><div>Problem: Copying a MeshLayer style from an available dataset to another layer.</div><div><br></div><div>A style can be transferred from one layer to a second layer by two different methods: Under the layer properties, the Style menu at the bottom of the dialog or Copy Style in the layer properties combo box (right mouse click).</div><div><br></div><div><br></div><div>Misbehavior: A style can only be copied if the dataset is in the same position in the destination layer as in the source layer.</div><div><br></div><div>Example files:  <a href="https://www.namotec.de/asku/example.qgis.3.18.3-Zuerich%20(copy%20paste%20QgsMeshLayer%20Style).7z" target="_blank">https://www.namotec.de/asku/example.qgis.3.18.3-Zuerich%20(copy%20paste%20QgsMeshLayer%20Style).7z</a></div><div><br></div><div><br></div><div>A dataset is displayed in the sequence (Source of Layer Properties, Mesh Layer) as it is read in from the solution file. It is not possible to move the position in the sequence.</div><div><br></div><div><a href="https://docs.qgis.org/3.22/en/docs/user_manual/working_with_mesh/mesh_properties.html?highlight=mesh#id21" target="_blank">https://docs.qgis.org/3.22/en/docs/user_manual/working_with_mesh/mesh_properties.html?highlight=mesh#id21</a></div><div><br></div><div><br></div><div>Is there a solution to this problem?</div><div><br></div><div>Regards,</div><div>Christian Naujoks</div><div><br></div><div><br></div><div><br></div><div><br></div><div>QGIS version:</div><div>3.18.3-Zürich</div><div>QGIS code revision</div><div>735cc85be9</div><div>Compiled against Qt</div><div>5.11.3</div><div>Running against Qt</div><div>5.11.3</div><div>Compiled against GDAL/OGR</div><div>2.4.0</div><div>Running against GDAL/OGR</div><div>2.4.0</div><div>Compiled against GEOS</div><div>3.7.1-CAPI-1.11.1</div><div>Running against GEOS</div><div>3.7.1-CAPI-1.11.1 27a5e771</div><div>Compiled against SQLite</div><div>3.27.2</div><div>Running against SQLite</div><div>3.27.2</div><div>Compiled against PDAL</div><div>1.8.0</div><div>Running against PDAL</div><div>1.8.0 (git-version: Release)</div><div>PostgreSQL Client Version</div><div>11.11 (Debian 11.11-0+deb10u1)</div><div>SpatiaLite Version</div><div>4.3.0a</div><div>QWT Version</div><div>6.1.4</div><div>QScintilla2 Version</div><div>2.10.4</div><div>Compiled against PROJ</div><div>5.2.0</div><div>Running against PROJ</div><div>Rel. 5.2.0, September 15th, 2018</div><div>OS Version</div><div>LMDE 4 (debbie)</div><div>Active python plugins</div><div>lockzoom; </div><div>zoom_level; </div><div>qgis2web; </div><div>OSMDownloader; </div><div>db_manager; </div><div>MetaSearch; </div><div>processing</div><div><br></div><div><br></div><div><br></div><div><br></div><div></div></div>
_______________________________________________<br>
QGIS-User mailing list<br>
<a href="mailto:QGIS-User@lists.osgeo.org" target="_blank">QGIS-User@lists.osgeo.org</a><br>
List info: <a href="https://lists.osgeo.org/mailman/listinfo/qgis-user" rel="noreferrer" target="_blank">https://lists.osgeo.org/mailman/listinfo/qgis-user</a><br>
Unsubscribe: <a href="https://lists.osgeo.org/mailman/listinfo/qgis-user" rel="noreferrer" target="_blank">https://lists.osgeo.org/mailman/listinfo/qgis-user</a><br>
</blockquote></div><br clear="all"><div><br></div><span class="gmail_signature_prefix">-- </span><br><div dir="ltr" class="gmail_signature"><div dir="ltr"><div><div dir="ltr"><div><div dir="ltr"><div><div dir="ltr"><div><div dir="ltr">Saber Razmjooei<br></div><div><a href="http://www.lutraconsulting.co.uk" target="_blank">www.lutraconsulting.co.uk</a><br><br></div></div></div></div></div></div></div></div></div></div></div>