[Lizmap-de] Vektorlayer Styles in Postgis speichern: Zusatzfrage

peter.berger at bluewin.ch peter.berger at bluewin.ch
Mo Apr 7 00:59:17 PDT 2025


Hallo Wolfgang

 

Die Erweiterung ist aus 2018 und hilft eh nicht weiter. 

 

Liebe Grüsse

 

Peter

 

Habe eine E-Mail an die QGIS Verteilliste geschrieben. Hoffe es kommt dann mal was zurück.

 

Liebe Grüsse

 

Peter

 

Von:      peter.berger at bluewin.ch

Gesendet:          Montag, 7. April 2025 08:45

An:        qgis-user at lists.osgeo.org

Betreff: Storing and Retrieving Vector Layers with Styles to Postgres DB

 

There are serveral steps necessary to store from QGIS a vector layer with his style in a postgres DB. For a 

big amout of layers this is impracticaI.

 

Therfore I would do this in one step from QGIS. Is this in any way possible?

 

Peter Berger

Brunnwiesenstrasse 62

8049 Zürich

Schweiz

mobile +41 79 301 71 54

 

The several step procedure:

*  Load the layer: Import the layer from a vector file into QGIS.

*  Rename (if necessary): Give the layer an appropriate name.

*  Transfer the layer to Postgres: Drag the layer into the PostgreSQL database. You will find it there with 

the specific name.

*  Load the layer from Postgres: Import it back from the PostgreSQL database into QGIS.

*  Assign the style: Copy the style from the original layer and assign it to the Postgres layer loaded in 

QGIS.

*  Export the style: Export the style of the Postgres layer. You will now find an option to save the style 

with the exact name of the layer in the PostgreSQL database.

*  Delete old layers and reload: Delete all associated layers and reload the layer from the PostgreSQL 

database.

 

Von: Wolfgang Meinolf <wmeinolf at telecomconsult.de> 
Gesendet: Montag, 7. April 2025 09:09
An: peter.berger at bluewin.ch
Cc: lizmap-de at lists.osgeo.org
Betreff: Re: [Lizmap-de] Vektorlayer Styles in Postgis speichern: Zusatzfrage

 

Moin Peter,

Hab grad mal folgendes gegoogelt:






 <https://github.com/PnGuadeloupe/db-style-manager> PnGuadeloupe/db-style-manager: Improve the workflow for managing styles in PostgreSQL

 <https://github.com/PnGuadeloupe/db-style-manager> github.com

 

Vielleicht hilft dir das. 

Beste Grüße 

Wolfgang 

 

 

Wolfgang Meinolf

 

Send from my Phone

+49 151 1142 7451





Am 07.04.2025 um 08:19 schrieb peter.berger--- via Lizmap-de <lizmap-de at lists.osgeo.org <mailto:lizmap-de at lists.osgeo.org> >:



Morgen zusammen

 

Ich verwende eine Vektorkarte mit über 60 Layern. Auch diese würde ich gerne mit den Stylen in der Postgres DB speichern. 

 

Hat jemand einen schnelleren Weg als bereits beschrieben?

 

Liebe Grüsse

 

Peter

 

 

-- 
Lizmap-de mailing list
Lizmap-de at lists.osgeo.org <mailto:Lizmap-de at lists.osgeo.org> 
https://lists.osgeo.org/mailman/listinfo/lizmap-de

-------------- nächster Teil --------------
Ein Dateianhang mit HTML-Daten wurde abgetrennt...
URL: <http://lists.osgeo.org/pipermail/lizmap-de/attachments/20250407/06b09ab9/attachment-0001.htm>
-------------- nächster Teil --------------
Ein Dateianhang mit Binärdaten wurde abgetrennt...
Dateiname   : image001.png
Dateityp    : image/png
Dateigröße  : 133493 bytes
Beschreibung: nicht verfügbar
URL         : <http://lists.osgeo.org/pipermail/lizmap-de/attachments/20250407/06b09ab9/attachment-0001.png>


Mehr Informationen über die Mailingliste Lizmap-de