<div dir="ltr">Hi there.<div><br></div><div>I have encountered the same issue but even on earlier Qgis versions. I am actually on 3.18, and some of my sql virtual layers are broken on opening. Not all, but some of them.</div><div>I personally think that it may be the data structure more than a software problem. The virtual layers I use are done by sql requests on gpkg files that are already using sql virtual layers in joined fields. Maybe there is something in the execution queue hierarchy that fails somewhere. Like B cannot calculate if A is not already done.</div><div><br></div><div>However, I got the impression that the problem only arises when the virtual layer is modified and relaunched.<br></div><div><br></div></div><br><div class="gmail_quote"><div dir="ltr" class="gmail_attr">Le mer. 7 juil. 2021 à 01:02, Tony Shepherd (FarmMaps NZ) <<a href="mailto:tony@farmmaps.nz">tony@farmmaps.nz</a>> a écrit :<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 lang="EN-NZ" style="overflow-wrap: break-word;"><div class="gmail-m_-1853364284041885625WordSection1"><p class="MsoNormal">Hi All<u></u><u></u></p><p class="MsoNormal"><u></u> <u></u></p><p class="MsoNormal">Has anybody had any issues with project files saved in V3.18 opening incorrectly in V3.20?<u></u><u></u></p><p class="MsoNormal"><u></u> <u></u></p><p class="MsoNormal">Specifically, I am having 3 annoying issues….<u></u><u></u></p><p class="MsoNormal"><u></u> <u></u></p><ol style="margin-top:0cm" start="1" type="1"><li class="gmail-m_-1853364284041885625MsoListParagraph" style="margin-left:0cm">Any manually shifted labels no longer appear in the correct place in 3.20.  As a double-check to make sure I am not going mad, I open the project in 3.18, labels are perfectly placed. Open the same file in 3.20 and any labels that have been manually shifted now all appear offset to where they used to display.  At a glance, I’d say the offset is constant (ie a bit west and a bit north of where they show in 3.18). Any default positioned (ie not manually shifted) labels still look fine.<u></u><u></u></li><li class="gmail-m_-1853364284041885625MsoListParagraph" style="margin-left:0cm">I have several virtual layers in my project file, essentially combining two layers together using SQL.  When opening the project file in 3.20, QGIS stops on-error saying it can’t find the layer(s).  If I then choose to continue and keep the “broken” layer in the session, then right-click and edit the virtual layer, press test it passes the test and then I can then add it back as a layer.  So it was never eally broken at all as all I had to do was press test? All the correct data appears in the virtual layer edit dialog box, so it’s not broken or missing..  I’d hate to have to go through all 20 project files individually to fix this one!<u></u><u></u></li><li class="gmail-m_-1853364284041885625MsoListParagraph" style="margin-left:0cm">If any layer I use has masking enabled, when displaying on the layout window it seems that all vector layers are now offset from raster layers. So as a test I turn off masking, go back to the layout and press refresh, and it all looks fine again.  Re-enable masking, go back to layout and press refresh, then again the vector and raster no longer align.  It looks like only when masking is enabled.<u></u><u></u></li></ol><p class="MsoNormal"><u></u> <u></u></p><p class="MsoNormal">Has anybody else experienced this?<u></u><u></u></p><p class="MsoNormal">This behaviour does not happen in 3.18.<u></u><u></u></p><p class="MsoNormal"><u></u> <u></u></p><p class="MsoNormal">You may wonder if the CRS has anything to do with it, I’m using predominately ESPG2193 (NZTM 2000) and Google raster and also some local coordinate system rasters (seems to not matter in my case). <u></u><u></u></p><p class="MsoNormal"><u></u> <u></u></p><p class="MsoNormal">Big wraps to the 3.20 team for making it possible to move the leader line start and end nodes!  This is a great feature!<u></u><u></u></p><p class="MsoNormal"><u></u> <u></u></p><p class="MsoNormal"><span>Cheers<u></u><u></u></span></p><p class="MsoNormal"><span>Tony<u></u><u></u></span></p><p class="MsoNormal"><span><u></u> <u></u></span></p><p class="MsoNormal"><b><span style="color:rgb(64,64,64)">Tony Shepherd</span></b><span style="color:rgb(89,89,89)">  </span><b><span>|</span></b><span style="color:rgb(89,89,89)">  GeoSpatial / Mapping Manager<u></u><u></u></span></p><p class="MsoNormal"><span style="color:rgb(89,89,89)">Ph 027 435 6193  </span><b><span>|</span></b><span style="color:rgb(89,89,89)">  E <a href="mailto:tony@farmmaps.nz" target="_blank"><span style="color:rgb(5,99,193)">tony@farmmaps.nz</span></a><u></u><u></u></span></p><p class="MsoNormal"><span style="color:rgb(89,89,89)">FarmMaps NZ, 3 Kerwood Place, Gore 9740<u></u><u></u></span></p><p class="MsoNormal"><span style="color:rgb(89,89,89)"><u></u> <u></u></span></p><p class="MsoNormal"><span style="color:rgb(89,89,89)"><img border="0" width="160" height="75" style="width: 1.6666in; height: 0.7812in;" id="gmail-m_-1853364284041885625_x0000_i1027" src="cid:17aaf59b14b4ce8e91" alt="FM_logo1_small (Custom)"><u></u><u></u></span></p><p class="MsoNormal"><span style="color:rgb(123,123,123)"><u></u> <u></u></span></p><p class="MsoNormal"><b><span style="font-family:Arial,sans-serif;color:rgb(123,123,123)"><u></u> <u></u></span></b></p><p class="MsoNormal"><a href="http://tonyshepherd8.wixsite.com/home" target="_blank"><b><span style="font-family:Arial,sans-serif;color:windowtext;text-decoration:none"><img border="0" width="157" height="34" style="width: 1.6354in; height: 0.3541in;" id="gmail-m_-1853364284041885625Picture_x0020_1" src="cid:17aaf59b14b5b16b22"></span></b></a><a href="https://www.wunderground.com/personal-weather-station/dashboard?ID=ISTLGORE2" target="_blank"><b><span style="font-family:Arial,sans-serif;color:windowtext;text-decoration:none"><img border="0" width="170" height="37" style="width: 1.7708in; height: 0.3854in;" id="gmail-m_-1853364284041885625Picture_x0020_3" src="cid:17aaf59b14b692e333"></span></b></a><b><span style="font-family:Arial,sans-serif"><u></u><u></u></span></b></p><p class="MsoNormal"><u></u> <u></u></p></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>-- <br><div dir="ltr" class="gmail_signature"><div dir="ltr"><div><div dir="ltr"><div dir="ltr"><div dir="ltr"><img src="https://drive.google.com/a/larbre-ingenierie.fr/uc?id=1CG1n3A7qMnI0Phy5Vz4U-hFqVNito-gE&export=download" width="200" height="123"><img src="https://docs.google.com/uc?export=download&id=18aYttwreyBDjiY8D3EoWPWFB2qc7aJXY&revid=0B5ko4smtDGDsT2x0NDNiUlltSjJRd0VOdnIrYmpjdTRTYXU4PQ" width="200" height="102"><br></div></div></div></div></div></div>