GIS portal and Administration part of Extended QGIS Web Client
Branch: master
Clone or download

README.md

GIS portal and Administration part of Extended QGIS Web Client

Built with Codeigniter and Bootstrap.

Client part of EQWC is gisapp

Users

  • start page
  • registration
  • single login, browse projects with permission
  • profile page, set own language

Visit Demo for users by Level2

Administrators

Administrator is every user with admin=true in database.

  • view/create/edit/delete clients/projects/layers
  • set base or overlay layers for project (with order)
  • view/edit/delete users
  • delegate users to project
  • activate available plugins for project
  • upload/download QGIS Project file for QGIS Server

admin1

Setup

You go through this after you setup gisapp!

This code relies on database from gisapp. Make sure you are running latest database version!

  1. Checkout into web root to have gisportal folder beside gisapp folder (EQWC)

    cd /var/www/html/
    git clone https://github.com/uprel/gisportal.git
    
  2. Setup database connection in application/config/database.php

  3. Setup base_site, default language and other EQWC settings at bottom of application/config/config.php

  4. Edit header_logo.png in assets/img folder.

  5. Enable integration with gisportal in gisapp/client_common/settings.js

  6. To preserve session information from gisapp to gisportal you have to edit php.ini and change line

    session.name = PHPSESSID
    to
    session.name = sess_
    

    To match default session time from gisportal (7200 sec) edit line

    session.gc_maxlifetime = 1440
    to
    session.gc_maxlifetime = 7200
    

    This means that you login to gisportal and then browse all public projects or projects you have permission without new login.

Email service

If you entered correct gmail info at the bottom of config.php you enabled email service using Google SMTP server. That means you don't need to setup own mail server. This service can be used to sending emails from gisapp or gisportal.

Test mail - localhost example

Email service is currently used with new User Feedback control in gisapp and with Editor plugin. It is planned to be used with gisportal (for sending emails to users) and for other tasks in gisapp.

If you have problems sending email check this settings for your Google account: Google-account-configuration

Shortening URL

Now your gisportal URL looks like this:

http://localhost/gisportal/index.php/login

Read Shortening URL on Wiki to remove "/gisportal/index.php", like this:

http://localhost/login

You can test this on provided Demo link above!

Translations

  1. Check if your language exists in system folder.
  2. If not get it from Codeigniter Translations
  3. Create folder with language name in application/language folder.
  4. Copy gisportal_lang.php from any other languages to new language folder and translate contents.
  5. Add new language in config/config.php at the bottom: $config['available_languages']. Here you can also remove unwanted languages.
  6. If you wish you can change default language in application/config/config.php.
  7. Get your language also for Bootstrap Table plugin and copy file to /assets/js/locale/ folder. Rename it to only contain language code, as other files in the folder (remove country code).

Styling top menu (navbar)

You can change black background to default gray by changing

navbar-inverse
to
navbar-default

in /application/views/templates/header.php

Or add lines below to /assets/css/style.css:

.navbar-inverse {
    background-color: #222;
    border-color: #080808;
}

And change colors as you wish.

Contributing

Support this project by DONATING.

You are also welcome to contribute to the project by testing, requesting new features, translating, submitting code, ... Read this tutorial about making changes to repositories.

Thank you!

Credits

Thanks to all translators, donators and special thanks to following companies for supporting this project:

  • GEL Consulting group, USA
  • Geonord, Norway
  • Swescan, Sweden

Support

Contact us for:

  • support
  • custom development

Uroš Preložnik, http://level2.si

Copyright

Gisportal (c) 2017 - 2018, Level2 Uroš Preložnik s.p.