Update docs/source/createdb.rst
This commit is contained in:
parent
143926bf35
commit
40c54b41b0
docs/source
|
@ -1,54 +1,44 @@
|
||||||
Create Database
|
Create Database
|
||||||
======================
|
======================
|
||||||
|
|
||||||
This section is a Quick Start to connecting your published maps to their original Data Source to make them dynamic.
|
If you do not have an existing PostGIS database, you can create one from your QGIS Project.
|
||||||
|
|
||||||
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
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
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
|
|
||||||
|
|
Loading…
Reference in New Issue