Version postgresql DB from qgis and work offline on spatialite working copies
Clone or download
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Permalink
Failed to load latest commit information.
docs
test
versioningDB
.gitignore
.travis.yml
LICENSE
README.md
__init__.py
archiving.svg
branch.svg
checkout.svg
checkout_pg.svg
checkout_pg_local.svg
commit.svg
commit_msg.ui
help.svg
historize.svg
merge.svg
metadata.txt
package.py
plugin.py
revision_dialog.ui
update.svg
view.svg

README.md

Versioning

Build and install the qgis plugin

cd
git clone https://github.com/Oslandia/qgis-versioning.git
cd qgis-versioning
./package.py # compresses all files into qgis_versioning.zip
cd .qgis2/python/plugins/
mkdir qgis-versioning
cd qgis-versioning
# unzip contents of directory *qgis_versioning* found in qgis_versioning.zip

If you have admin acces to a local postgres/postis server, you can run the regression tests:

export PYTHONPATH=$PWD
./test.py # As of version 0.4; was *make test* in prior versions

Use the plugin in qgis

Check that the plugin 'qgis-versioning' is activated in the plugin manager or install the versioning plugin directly in QGIS (Menu : Plugins = Manage plugins : Versioning).

Load posgis layers from a scheme you want to version.

Group postgis layers together. Select the group and click on the 'historize' button in the plugin toolbar (make sure the toolbar is displayed). The layers will be replaced by their view in the head revision

Click on the group and then on the 'checkout' button. Choose a file to save your layers locally.

Modify your layers.

Click on the 'commit' icon.

Documentation

For more information on this plugin, you can go on its plugin documentation site: http://qgis-versioning.readthedocs.io/en/latest/. You can also contribute to the source code by sending pull request or open issues if you have any comments or bug to report.

See also this article describing why the plugin has been built and how : GIS Open Source versioning tool for a multi-user Distributed Environment Cet article est aussi disponible en français : http://www.gogeomatics.ca/magazine/outil-de-versionnement-a-code-source-ouvert-partie-1.htm

Credits

This plugin has been developed by Oslandia (http://www.oslandia.com).

Oslandia provides support and assistance for QGIS and associated tools, including this plugin.

This work has been funded by European funds. Thanks to the GIS Office of Apavil, Valcea County (Romania)

This work has been also developed by eHealth Africa (http://ehealthafrica.org) for SpatiaLite 4.x support, filter selection for SpatiaLite file, diff mode and user identification improvements.

License

This work is free software and licenced under the GNU GPL version 2 or any later version. See LICENSE file.