wiki:GSoC/2016/WebGrass

Version 25 (modified by mayank, 8 years ago) ( diff )

--

GSoC 2016 WebGrass

Title: WebGrass
Student Name: Mayank Agrawal, International Institute of Information Technology in India
Organization: OSGeo - Open Source Geospatial Foundation
Mentor Names: Massimo Di Stefano, rashadkm
GSoC proposal: view proposal
Link to code: https://github.com/mayank33/webgrass/tree/gsoc2016 https://github.com/mayank33/webgrass/tree/auth

Brief description

This idea will focus on the development of web based GUI for the Grass “WebGrass” where people can use Grass modules through a web browser without actually installing GRASS. GRASS will be running on a server. The user interface will be built using wt web toolkit. Wt provides C++ API for developing web widgets. Wt is a page based framework. This means the web application written in Wt has are close to be alike desktop application. Wt’s Singal slot mechanism inspired from Qt allows to connect events from Wt widget to javascript calls. Also this can be the first step in making a Enterprise wide FOSS4G tool where GRASS is running on the server and user can use it with any client, processing being done on the server. In future, a cloud based application deployment can be done.

State before GSoC

GRASS as a software is available but as a web app, its not yet developed. The requirement for this is, as if one wants to use the Grass software, it should be installed on the system. But if web app is available then just open a browser and starts working.

State after GSoC

A web based software is ready, where people can load data from their own repositories and apply different modules of Grass on them like the desktop app. People who are not known to open source can use it as a web service hosted on epinux.com:8989 . This will help in getting new people introduced to the open source software as it is very easy to use. This project can be used as a stepping stone for a unified software where all the functions of different GIS software's can be implemented at one place. Things which needs to be improved is rendering of the layers. Right now, inbuilt Grass commands are being used for layer creation. This requires a proper method for the creation of the layers which can be rendered easily.

Overview

  • Authorization module for user to login ( A Basic authentication service will be implemented which will store session id )
  • Mapset location wizard
  • Openlayers based map canvas
  • Menu bar as grass desktop have
  • Toolbar with
    1. Pan
    2. Query
    3. Zoom in-out- to box- to layer- to region
    4. Save to img mapcanvas
    5. Save display extent to region

Project plan

Project plan
Date Goals status
Before 23 April Setup a personal wiki for weekly updates and project discussions.
23 Apr-23 May Community bonding period. Work on the initial code written by Rashad at LSI lab. This code was written for a Proof of concept and not for any production use. Even though the implementation is done with the ultimate goal in mind. Based on the existing code define a simple uml diagram. This will finally be uploaded to grass wiki.
23 May-26 May Understanding Command line parsing for different modules of the GRASS.
26 May- 9 June Implement a wt based interface for GRASS’s g.parser. This include all kinds of wt widgets. No signal slot connection will be done this week. By end of this week the parser will be tested on a grass modules. Like r.average,r.buffer,v.buffer,v.build
9 June - 19 June Authorization system integration. Testing of the implementation.
19 June- 2 July Understanding current Mapset Location Wizard and its implementation.
25 June - 27 June Midterm evaluations
27 June - 2 July Remaining implementation of Mapset Location WIzard and testing its implementation.
2 July - 6 July Implement a initial version of map canvas using openlayers by WObject::doJavascript() calls for testing maps.
6 July - 15 July WebGRASS menubar implementation. This will be the exact replica of the desktop grass gis taken from menudata.xml.
5 July - 23 July Implement some of the action in menubar and keep but deactivate those needs extra care.
23 July - 27 July Testing the integration of the developed UI with the backend libraries .
27 July - 4 Aug Implementation of the Security Concerns listed above.
4 Aug - 11 Aug Final testing. Solving bugs and issues raised.
11 Aug - 18 Aug Deployment of the solution on the server.Most probably it will be deployed on the LSI server.Other grass developer can have a look at this and report issues if there any.
18 Aug - 23 Aug Final Evaluations

Development

Weekly reports

Bounding period

Setting up the environment. Installing Ubuntu, GRASS GIS. Check Readme. Getting familiar with the github and trac. Discussion and decision on the layout and design of webgrass. Understanding the wt. First Location and Mapset wizard creation Pull Request. Full wizard creation along with dynamic updation of files.

Week 1

  • The first page of the MainUI of the Grass with all the submenus and menus.
  • parsing of the xml file for the menu.
  • restructuring the xml file for better understanding.
  • removing small errors like wrong paths given at different resources, routing of the pages
  • comments added

Pull Req 1 Pull req 2

Status - Location and Mapset wizard is done fully. Actual Grass Main Menu UI is done.

Week 2

  • Updated the startup page to be like the grass software. Changes made so that its structure doesn't changes on resizing the window and across different browser, it looks same.
  • Grass layer manager options (icons and buttons) added with proper GUI effects.
  • Resources updated for new icons.
  • Had discussions with the mentors for layertree and display

Pull Req

Status - Grass Layer Manager UI done.

Startup page MainUI

Week 3

  • MainUI updated.
  • Layertree Manager UI
  • Display UI.
  • Code modularity.

Pull Req

Display and Layertree-1

Week 4

  • parsing of the xml files
  • Creation of new window.
  • working UI of module windows.
  • calling and clicking of modules.

Commit

MuduleUI after selection

Week 5

  • parsing of the xml for proper UI (changes)
  • creation of proper tabs
  • code optimization for faster processing
  • different modules files updation

Pull Req

Week 6

  • Checking whether file is available and giving notification
  • Footer
  • Creating a map for the different options in tab and creation of widgets from them
  • Proper parsing taking into consideration of all the options
  • creation of widgets which can be accesed later with id
  • Identify the type of option and creating proper widget

Commit

Week 7

  • Better parsing structure for the UI creation and getting the input from the user.
  • Creation of whole grass command from the user input. full command creation is done.
  • execution of grass commands from the app. simple one are working but need to look for the others. (some commands were planned for this week but couldn't complete)
  • tried setting grass env from app. it is done but changes required to work on all platforms.
  • Code restructured in more modular way for easiness of development in future.

Pull Req ModuleUI2

Week 8

  • Restructuring of the code for better optimization and less memory consumption for faster processing.
  • Issue of disappearing of the contents sloved
  • creation of whole command
  • some commands working

Pull Req

Week 9

  • working on the login system (not complete)
  • database setup done

Commit

Week 10

  • login (authorization) done
  • commands are running and output is coming on terminal
  • setting up of the env

Pull Req

Week 11

  • output tab made like the grass desktop
  • run mechanism changed
  • flags are handled in command
  • commands are running properly
  • commands line output coming in the output tab
  • existence if file checking is made more efficient

Commits

Week 12

  • Selection tab for the "Add Raster" and "Add Vector"
  • Listing of the respective(raster or vector) layers
  • creation of the layer from the data when layer is selected
  • Input/output/processing of raster data
  • display of raster data
  • Input/output/processing of vector data

Commits First page Second Page ModuleUI

Attachments (10)

Download all attachments as: .zip

Note: See TracWiki for help on using the wiki.