Hi Brent, thanks for your hint. I already tried this. Since now Cross Database references (the tables are in different databases) aren’t allowed, so this solutions doesn’t work now.and we have to change the PostGIS settings for this solution. Or are there other possibilities?
Werner Von: Brent Wood <[email protected]> Gesendet: Dienstag, 19. August 2025 09:21 An: [email protected]; Isenmann, Werner (RPF) <[email protected]> Betreff: EXTERN: Re: Virtual Layer not working correct when opening QGIS project Phishing-Gefahr: Vorsicht bei Links und Anhängen in externen E-Mails! Hi, You could try creating a view in the PostGIS database to do the join instead of QGIS, then just open the view in QGIS? Brent Wood Principal Technician, Fisheries NIWA DDI: +64 (4) 3860529 ________________________________ From: QGIS-User <[email protected]> on behalf of Isenmann, Werner (RPF) via QGIS-User <[email protected]> Sent: Tuesday, 19 August 2025 18:37 To: [email protected] <[email protected]> Subject: [Qgis-user] Virtual Layer not working correct when opening QGIS project Hello, in a QGIS project I have a PostGIS polygon layer where I joined two tables (from PostgrSQL DB). Then I created a virtual layer, containing all the attributes of the polygon layer and all the attributes of the joined tables. This works well so far. When I close the QGIS project an open it again, the virtual layer attribute table first doesn’t show the joined attributes. They only appear, when I save the virtual layer again with the same select statement. Does anyone have any tips on how to ensure that the virtual layer permanently retains the joined attributes? Thanks in advance, Werner --- Werner Isenmann Regierungspräsidium Freiburg Referat 91 – Geowissenschaftliches Landesservicezentrum Albertstraße 5 D-79104 Freiburg i. Br. Phone: (+49) 761 208-3008 E-Mail: [email protected]<mailto:[email protected]> Brent Wood Principal Technician - GIS and Spatial Data Management +64-4-386-0529 301 Evans Bay Parade Hataitai Wellington New Zealand Earth Sciences New Zealand [Das Bild wurde vom Absender entfernt. Earth Sciences New Zealand]<https://earthsciences.nz> The Institute of Geological and Nuclear Sciences Limited and the National Institute of Water and Atmospheric Research Limited joined to become the New Zealand Institute for Earth Science Limited. We are known as Earth Sciences New Zealand. For more information on the Earth Sciences transition click here<https://niwa.co.nz/about-niwa/science-sector-reforms>. Notice: This email may contain information which is confidential and/or subject to copyright, and may not be used, published or redistributed without the prior written consent of Earth Sciences New Zealand. If you are not the intended recipient, please immediately notify the sender and delete the email and any attachments. Any opinion or views expressed in this email are those of the individual sender and may not represent those of Earth Sciences New Zealand. For information about how we process data and monitor communications please see our privacy policy<https://niwa.co.nz/about-niwa/privacy-policy>.
_______________________________________________ QGIS-User mailing list [email protected] List info: https://lists.osgeo.org/mailman/listinfo/qgis-user Unsubscribe: https://lists.osgeo.org/mailman/listinfo/qgis-user
