Giter Site home page Giter Site logo

qwat's Introduction

qWat: QGIS Water Module

INSTALL
-------

In your shell:

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

If you haven't added your ssh key to github, then you need to tell git to access the data-model submodule through https.
Edit the .gitmodules file in the qWat folder and replace the url value from [email protected]:qwat/qwat-data-model.git to https://github.com/qwat/qwat-data-model.git

 git submodule init
 git submodule update

In order to create the database model you need to:

 - create a postgresql database
 - install the postgis extension

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.
Assuming you named your database qwat, edit the ~/.pg_service.conf file and make it look like:

 # Qwat service name
 [qwat]
 #enter your database ip
 host=192.168.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

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

If that works then open the qwat.qgs project in QGIS.

qwat's People

Contributors

3nids avatar tudorbarascu avatar

Watchers

James Cloos avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.