All Projects → qwat → QWAT

qwat / QWAT

Licence: GPL-2.0 license
TEKSI Water module (project QWAT) - QGIS project

Programming Languages

QML
638 projects
python
139335 projects - #7 most used programming language
Makefile
30231 projects

Projects that are alternatives of or similar to QWAT

gismanager
Publish Your GIS Data(Vector Data) to PostGIS and Geoserver
Stars: ✭ 45 (-13.46%)
Mutual labels:  gis, postgis
xyz-qgis-plugin
Plugin for QGIS to connect to the HERE XYZ Hub API
Stars: ✭ 22 (-57.69%)
Mutual labels:  gis, qgis
UMapControl
轻量级跨平台瓦片地图库
Stars: ✭ 35 (-32.69%)
Mutual labels:  gis, qgis
cloud-tileserver
Serve mapbox vectortiles via AWS stack
Stars: ✭ 48 (-7.69%)
Mutual labels:  gis, postgis
QGIS-visualization-workshop
QGIS visualization workshop materials.
Stars: ✭ 46 (-11.54%)
Mutual labels:  gis, qgis
school-navigator
Navigate the Durham, NC public school system
Stars: ✭ 25 (-51.92%)
Mutual labels:  gis, postgis
DEMto3D-QGIS-Plugin
Extensión GIS para impresión 3D de MDE
Stars: ✭ 33 (-36.54%)
Mutual labels:  gis, qgis
mergin-db-sync
A tool for two-way synchronization between Mergin and a PostGIS database
Stars: ✭ 29 (-44.23%)
Mutual labels:  gis, postgis
Tegola
Tegola is a Mapbox Vector Tile server written in Go
Stars: ✭ 754 (+1350%)
Mutual labels:  gis, postgis
Spatial
Neo4j Spatial is a library of utilities for Neo4j that faciliates the enabling of spatial operations on data. In particular you can add spatial indexes to already located data, and perform spatial operations on the data like searching for data within specified regions or within a specified distance of a point of interest. In addition classes are provided to expose the data to geotools and thereby to geotools enabled applications like geoserver and uDig.
Stars: ✭ 695 (+1236.54%)
Mutual labels:  gis, postgis
ilong
轻量级跨平台瓦片地图库,大部分算法来自QMapControl,就想练手的。。。因为需要轻量级跨平台的,所以只能先用SQLite数据库。。。
Stars: ✭ 24 (-53.85%)
Mutual labels:  gis, qgis
Geography for hackers
Geography for Hackers - Teaching all how to hack geography, use GIS, and think spatially
Stars: ✭ 25 (-51.92%)
Mutual labels:  gis, postgis
geologic-symbols-qgis
Geologic symbols library and development for QGIS
Stars: ✭ 63 (+21.15%)
Mutual labels:  gis, qgis
speckle-qgis
QGIS Connector for Speckle 2.0
Stars: ✭ 17 (-67.31%)
Mutual labels:  gis, qgis
twkb
A small GO parser for the TWKB format
Stars: ✭ 17 (-67.31%)
Mutual labels:  gis, postgis
postile
Project migrated to: https://gitlab.com/Oslandia/postile
Stars: ✭ 67 (+28.85%)
Mutual labels:  gis, postgis
mini-map-maker
A tool for automatically generating 3D printable STLs from freely available lidar scan data.
Stars: ✭ 51 (-1.92%)
Mutual labels:  gis, qgis
Geotrek-admin
Paths management for National Parks and Tourism organizations
Stars: ✭ 103 (+98.08%)
Mutual labels:  gis, postgis
input
Survey made easy (Android/iOS/Windows app)
Stars: ✭ 189 (+263.46%)
Mutual labels:  gis, qgis
Postgis
PostGIS spatial database extension to PostgreSQL [mirror]
Stars: ✭ 925 (+1678.85%)
Mutual labels:  gis, postgis

210910-teksi-drink-logos-en-01_96pp.png

TEKSI drinking water module (Project QWAT)

Open source water distribution network module based on QGIS / Postgis

Documentation

Hosted version here: https://qwat.github.io/docs/

The documentation has its own repository at https://github.com/qwat/docs

Requirements

Server side software components are:

Supported and tested versions are PostgreSQL 10 and Postgis 2.5.

The exact required hardware configuration is very dependant on the data sizes. However, water network data tend not to be huge volumes, and the minimal required configuration is very low.

A comfortable configuration would be the following:

  • 4x Core Intel
  • >= 8GB RAM
  • SSD Storage (40GB+) with Raid capabilities for data redundancy

We recommend using Linux as Operating System when running PostgreSQL, for performance and stability.

Install

Assuming you have installed a postgresql server, there are two ways to set up the QWAT database: - The first way is to create an empty database with init_qwat.sh. - The second way is to create a database from the sample dump using pg_restore.

First way. Create an empty database with init_qwat.sh

Get the repositories. In a shell:

git clone https://github.com/qwat/qwat
cd qwat

Update data-model submodule:

git submodule update --init --recursive

In order to create the database model you need to create a postgresql database. Do to this you may execute for example:

psql -U postgres -c 'create database qwat'

You can choose whatever name for the database and whatever user as its owner. The script that is used to create the database model looks for the .pg_service.conf file in the users home directory or in the directory specified by the PGSYSCONFDIR or PGSERVICEFILE variables.

Assuming you named your database qwat, edit the .pg_service.conf file and make it look like:

[qwat]
#enter your database ip
host=127.0.0.1
#database name
dbname=qwat
port=5432
user=postgres
#you can also add your password if you like
password=YourPassword

Now go to the data-model directory and run the ./init_qwat.sh script:

cd data-model
./init_qwat.sh -p qwat -s 21781 -d -r

The script has the following options:

  • -p PG service to connect to the database.
  • -s or --srid PostGIS SRID. Default to 21781 (ch1903)
  • -d or --drop-schema drop schemas (cascaded) if they exist
  • -r or --create-roles create roles in the database

Optionally, you can restore a sample dataset. For that you need to download the data sample dump and restore it into the QWAT database:

QWAT_VERSION=`cat system/CURRENT_VERSION.txt`
wget -q -O qwat_dump.backup "https://github.com/qwat/qwat-data-model/releases/download/$QWAT_VERSION/qwat_v"$QWAT_VERSION"_data_only_sample.backup"
pg_restore -U postgres --dbname qwat -e --no-owner --verbose --jobs=3 --disable-triggers --port 5432 qwat_dump.backup

Second way. Create a database from the sample dump using pg_restore

QWAT can be tested by downloading the QGS project repository here and restoring the latest data_and_structure_sample.backup in PostgreSQL.

In your shell:

# Create the database and the extensions
psql -U postgres -c 'create database qwat;'
psql -U postgres -d qwat -c 'create extension postgis;'
psql -U postgres -d qwat -c 'create extension hstore;'

# Create the roles for QWAT
psql -c 'CREATE ROLE qwat_viewer NOSUPERUSER INHERIT NOCREATEDB NOCREATEROLE NOREPLICATION;' -U postgres
psql -c 'CREATE ROLE qwat_user NOSUPERUSER INHERIT NOCREATEDB NOCREATEROLE NOREPLICATION;' -U postgres
psql -c 'CREATE ROLE qwat_manager NOSUPERUSER INHERIT NOCREATEDB NOCREATEROLE NOREPLICATION;' -U postgres
psql -c 'CREATE ROLE qwat_sysadmin NOSUPERUSER INHERIT NOCREATEDB NOCREATEROLE NOREPLICATION;' -U postgres

# And restore it into your QWAT database
pg_restore -U postgres --dbname qwat -e --no-owner --verbose --jobs=3 --disable-triggers --port 5432 qwat_dump.backup

Open the project

After your model gets created, in QGIS you should be able now to connect to the database by creating a new connection with Name=qwat, Service=qwat, SSL mode=prefer.

If that works then open the qgis-projetct/qwat.qgs project in QGIS.

Credits

see CREDITS

License

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

You can get the LICENSE here .

Note that the project description data, including the texts, logos, images, and/or trademarks, for each open source project belongs to its rightful owner. If you wish to add or remove any projects, please contact us at [email protected].