From 40c54b41b021631aec8a6f61f78af021bf23c1ed Mon Sep 17 00:00:00 2001 From: AcuGIS Date: Thu, 9 May 2024 14:01:18 +0000 Subject: [PATCH] Update docs/source/createdb.rst --- docs/source/createdb.rst | 68 +++++++++++++++++----------------------- 1 file changed, 29 insertions(+), 39 deletions(-) diff --git a/docs/source/createdb.rst b/docs/source/createdb.rst index c052038..f98e1a1 100644 --- a/docs/source/createdb.rst +++ b/docs/source/createdb.rst @@ -1,54 +1,44 @@ Create Database ====================== -This section is a Quick Start to connecting your published maps to their original Data Source to make them dynamic. - -You can connect to a PostGIS Data Source or GeoServer Data Source. - -1. Go to Connections -~~~~~~~~~~~~~~~~~~~~~~~~~~ - -On the Connections page, enter the connection details for your PostGIS or Server connection(s) - - .. image:: images/PostGIS-Add-Connection.png +If you do not have an existing PostGIS database, you can create one from your QGIS Project. -2. Go to Maps and click the edit link -~~~~~~~~~~~~~~~~~~~~~~~~~~ +1. Export your layer(s) +------------------------ - .. image:: images/Dynamic-1.png +Right click on layer > Export > Save As > GeoPackage + + .. image:: images/create-db-1.png -3. In Data section click on layer -~~~~~~~~~~~~~~~~~~~~~~~~~~ - .. image:: images/Dynamic-2.png +2. Upload GeoPackages +------------------------- + +Go to Data Sources > Create and upload your GeoPackage(s). + + .. image:: images/create-db-2.png + + +3. Set Layers to Data Source +------------------------------- + +Set your map layer(s) to use your new Data Source + + .. image:: images/select-data.png -4. Select Connection, Schema, and Table -~~~~~~~~~~~~~~~~~~~~~~~~~~ +4. Change QGIS Data Source +------------------------------- + +Optionally, you can now also set your QGIS Project to use your new database as well. + +Just right click on the layer(s) > Change Data Source + +Select the PostGIS data source you created above. - .. image:: images/PostGIS-Select.png + .. image:: images/create-db-3.png - -.. note:: - Optionally, you can set Caching for each layer. Cache can be cleared via the Clear Cache link on the Map page or by disabling Cache. - - -Click the Update button. - -That's it! -~~~~~~~~~~~~~ - -Your map is now connected to your original Data Source and is fully dynamic. - - -.. image:: images/Quick-Start-Login-22.png - - -To test, try editing or udpating some data - - -.. image:: images/Quick-Start-Login-23.png