PK G@FJ3,S: : qgis_versioning/push_pull.svg
PK G@FJ qgis_versioning/metadata.txt# This file contains metadata for your plugin.
# Mandatory items:
[general]
name=versioning
qgisMinimumVersion=2.0
description=postgis database versioning
version=0.5
author=Oslandia
email=infos@oslandia.com
about=A tool to manage data history, branches, and to work offline with your PostGIS-stored data and QGIS.
homepage=https://github.com/Oslandia/qgis-versioning
tracker=https://github.com/Oslandia/qgis-versioning/issues
repository=https://github.com/Oslandia/qgis-versioning.git
icon=historize.svg
category=Database
PK G@FJ碙覚k k qgis_versioning/README.mdVersioning
==========
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.
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.
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)
Support for spatialite 4.x was contributed by eHealth Africa (http://ehealthafrica.org).
License
=======
This work is free software and licenced under the GNU GPL version 2 or any later version.
See LICENSE file.
PK G@FJ/r跣 " qgis_versioning/revision_dialog.ui
view_dlg0075141800Revisions selectionfalsefalseCheck to go to diff mode for any two revisionsCompare selected revisionsSelect one [many] for single [multiple] revisions. Fetching may take time.truetruefalsefalsefalseQt::HorizontalQDialogButtonBox::Cancel|QDialogButtonBox::OkbuttonBoxaccepted()view_dlgaccept()248254157274buttonBoxrejected()view_dlgreject()316260286274
PK G@FJ鄥_廔 廔 qgis_versioning/checkout.svg
PK G@FJ奰闩.5 .5 qgis_versioning/checkout_pg.svg
PK G@FJ| qgis_versioning/package.py#!/usr/bin/python
# coding=UTF-8
import os
import zipfile
import tempfile
import shutil
__current_dir = os.path.abspath(os.path.dirname(__file__))
out = os.path.join(__current_dir,"qgis_versioning.zip")
files = ["README.md", "LICENSE", "metadata.txt"]
for file_ in os.listdir(__current_dir):
if file_[-4:]==".svg" or file_[-3:]==".py" or file_[-3:]==".ui":
files.append(file_)
tmpdir = os.path.join(tempfile.gettempdir(), "qgis_versioning")
if os.path.isdir(tmpdir):
for file_ in os.listdir(tmpdir):
os.remove(os.path.join(tmpdir, file_))
else:
os.mkdir(tmpdir)
for file_ in files:
shutil.copy(os.path.join(__current_dir, file_),
os.path.join(tmpdir, file_))
os.chdir(tempfile.gettempdir())
with zipfile.ZipFile(out, 'w') as package:
for root, dirs, files in os.walk("qgis_versioning"):
for file_ in files:
print root+"/"+file_
package.write(os.path.join(root, file_))
print "->", out
PK G@FJ)琿<