[GRASS-dev] [SoC]Week-1 WebGrass

Hi everyone,

I am Mayank Agrawal and I am working on webgrass.

my report for the week 1

What did you get done this week?

  • 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

see Commits .
Results hosted here .

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

What do you plan on doing next week?
Next week, I will start implementing Grass Layer Manager. I will work on icons and buttons using grass icons. assigning size to the gui components so that they work properly during resize, scale etc.

Are you blocked on anything?
Not rite now. Had some issues during coding, which were solved by the mentors.

Mayank Agrawal
Lab for Spatial Informatics
IIIT Hyderabad
Hyderabad

Hi,

2016-05-29 22:29 GMT+02:00 Mayank Agrawal <mayankagrawal333@gmail.com>:

Results hosted here .

localhost ? :wink: Martin

--
Martin Landa
http://geo.fsv.cvut.cz/gwiki/Landa
http://gismentors.cz/mentors/landa

On 29 May 2016 at 22:29, Mayank Agrawal <mayankagrawal333@gmail.com> wrote:

Hi everyone,

Hi Mayank,

I am Mayank Agrawal and I am working on webgrass.

my report for the week 1

What did you get done this week?

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

see Commits .
Results hosted here .

please use plain text, otherwise during answer we will lost the links

I tried to compile webgrass but it doesn't work for me, Could you
extend the README file with dependencies, right now I'm stopped during
configuration

CMAKE_BUILD_TYPE
CMAKE_INSTALL_PREFIX /usr/local
Wt_DBOPOSTGRES_DEBUG_LIBRARY /usr/lib/libwtdbopostgres.so
Wt_DBOPOSTGRES_LIBRARY /usr/lib/libwtdbopostgres.so
Wt_DBOSQLITE3_DEBUG_LIBRARY Wt_DBOSQLITE3_DEBUG_LIBRARY-NOTFOUND
Wt_DBOSQLITE3_LIBRARY Wt_DBOSQLITE3_LIBRARY-NOTFOUND
Wt_DBO_DEBUG_LIBRARY /usr/lib/libwtdbo.so
Wt_DBO_LIBRARY /usr/lib/libwtdbo.so
Wt_DEBUG_LIBRARY /usr/lib/libwt.so
Wt_EXT_DEBUG_LIBRARY Wt_EXT_DEBUG_LIBRARY-NOTFOUND
Wt_EXT_LIBRARY Wt_EXT_LIBRARY-NOTFOUND
Wt_FCGI_DEBUG_LIBRARY Wt_FCGI_DEBUG_LIBRARY-NOTFOUND
Wt_FCGI_LIBRARY Wt_FCGI_LIBRARY-NOTFOUND
Wt_HTTP_DEBUG_LIBRARY /usr/lib/libwthttp.so
Wt_HTTP_LIBRARY /usr/lib/libwthttp.so
Wt_INCLUDE_DIR /usr/include
Wt_LIBRARY /usr/lib/libwt.so

Mayank Agrawal
Lab for Spatial Informatics
IIIT Hyderabad
Hyderabad

--
ciao
Luca

www.lucadelu.org

Readme-

in the webgrass folder https://github.com/rashadkm/webgrass

mkdir build
cd build
cmake …
make
sudo ./wgrass.wt --http-address=0.0.0.0 --http-port=8080 --docroot …/

These are the dependencies which will be required beforehand. Install them one by one.

  1. libwt-dev - C++ library and application server for web applications [development]

  2. libwtdbo-dev - Wt::Dbo ORM library for Wt [development]

  3. libwtdbofirebird-dev - Firebird backend for Wt::Dbo [development]

  4. libwtdbomysql-dev - MySQL/MariaDB backend for Wt::Dbo [development]

  5. libwtdbopostgres-dev - PostgreSQL backend for Wt::Dbo [development]

  6. libwtdbosqlite-dev - sqlite3 backend for Wt::Dbo [development]

  7. libwtext-dev - additional widgets for Wt, based on ExtJS 2.0.x [development]

  8. libwtfcgi-dev - FastCGI connector library for Wt [development]

  9. libwthttp-dev - HTTP(S) connector library for Wt [development]

  10. libwttest-dev - test connector library for Wt [development]

  11. libpugixml-dev

After this, do let me know with the error.

···

On Mon, May 30, 2016 at 12:40 PM, Luca Delucchi <lucadeluge@gmail.com> wrote:

On 29 May 2016 at 22:29, Mayank Agrawal <mayankagrawal333@gmail.com> wrote:

Hi everyone,

Hi Mayank,

I am Mayank Agrawal and I am working on webgrass.

my report for the week 1

What did you get done this week?

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

see Commits .
Results hosted here .

please use plain text, otherwise during answer we will lost the links

I tried to compile webgrass but it doesn’t work for me, Could you
extend the README file with dependencies, right now I’m stopped during
configuration

CMAKE_BUILD_TYPE
CMAKE_INSTALL_PREFIX /usr/local
Wt_DBOPOSTGRES_DEBUG_LIBRARY /usr/lib/libwtdbopostgres.so
Wt_DBOPOSTGRES_LIBRARY /usr/lib/libwtdbopostgres.so
Wt_DBOSQLITE3_DEBUG_LIBRARY Wt_DBOSQLITE3_DEBUG_LIBRARY-NOTFOUND
Wt_DBOSQLITE3_LIBRARY Wt_DBOSQLITE3_LIBRARY-NOTFOUND
Wt_DBO_DEBUG_LIBRARY /usr/lib/libwtdbo.so
Wt_DBO_LIBRARY /usr/lib/libwtdbo.so
Wt_DEBUG_LIBRARY /usr/lib/libwt.so
Wt_EXT_DEBUG_LIBRARY Wt_EXT_DEBUG_LIBRARY-NOTFOUND
Wt_EXT_LIBRARY Wt_EXT_LIBRARY-NOTFOUND
Wt_FCGI_DEBUG_LIBRARY Wt_FCGI_DEBUG_LIBRARY-NOTFOUND
Wt_FCGI_LIBRARY Wt_FCGI_LIBRARY-NOTFOUND
Wt_HTTP_DEBUG_LIBRARY /usr/lib/libwthttp.so
Wt_HTTP_LIBRARY /usr/lib/libwthttp.so
Wt_INCLUDE_DIR /usr/include
Wt_LIBRARY /usr/lib/libwt.so

Mayank Agrawal
Lab for Spatial Informatics
IIIT Hyderabad
Hyderabad


ciao
Luca

www.lucadelu.org

On 30 May 2016 at 11:09, Mayank Agrawal <mayankagrawal333@gmail.com> wrote:

Readme-

in the webgrass folder https://github.com/rashadkm/webgrass

mkdir build
cd build
cmake ..
make
sudo ./wgrass.wt --http-address=0.0.0.0 --http-port=8080 --docroot ../

I read it already, but it was not enough

These are the dependencies which will be required beforehand. Install them one by one.

libwt-dev - C++ library and application server for web applications [development]
libwtdbo-dev - Wt::Dbo ORM library for Wt [development]
libwtdbofirebird-dev - Firebird backend for Wt::Dbo [development]
libwtdbomysql-dev - MySQL/MariaDB backend for Wt::Dbo [development]
libwtdbopostgres-dev - PostgreSQL backend for Wt::Dbo [development]
libwtdbosqlite-dev - sqlite3 backend for Wt::Dbo [development]
libwtext-dev - additional widgets for Wt, based on ExtJS 2.0.x [development]
libwtfcgi-dev - FastCGI connector library for Wt [development]
libwthttp-dev - HTTP(S) connector library for Wt [development]
libwttest-dev - test connector library for Wt [development]
libpugixml-dev

please add this in the readme file

After this, do let me know with the error.

no error, now I'm able to run it but I cannot modify the grassdata
directory, is it normal?

--
ciao
Luca

www.lucadelu.org

Hello Luca,

Thanks for testing.

···

On Mon, May 30, 2016 at 12:14 PM, Luca Delucchi <lucadeluge@gmail.com> wrote:

On 30 May 2016 at 11:09, Mayank Agrawal <mayankagrawal333@gmail.com> wrote:

Readme-

in the webgrass folder https://github.com/rashadkm/webgrass

mkdir build
cd build
cmake …
make
sudo ./wgrass.wt --http-address=0.0.0.0 --http-port=8080 --docroot …/

I read it already, but it was not enough

These are the dependencies which will be required beforehand. Install them one by one.

libwt-dev - C++ library and application server for web applications [development]
libwtdbo-dev - Wt::Dbo ORM library for Wt [development]
libwtdbofirebird-dev - Firebird backend for Wt::Dbo [development]
libwtdbomysql-dev - MySQL/MariaDB backend for Wt::Dbo [development]
libwtdbopostgres-dev - PostgreSQL backend for Wt::Dbo [development]
libwtdbosqlite-dev - sqlite3 backend for Wt::Dbo [development]
libwtext-dev - additional widgets for Wt, based on ExtJS 2.0.x [development]
libwtfcgi-dev - FastCGI connector library for Wt [development]
libwthttp-dev - HTTP(S) connector library for Wt [development]
libwttest-dev - test connector library for Wt [development]
libpugixml-dev

please add this in the readme file

After this, do let me know with the error.

no error, now I’m able to run it but I cannot modify the grassdata
directory, is it normal?

Yes and No!

Yes it is expected that there is not user specific location-mapset upload ready now.

But it is not normal that it will stay like that forever. I am the one who asked mayank to fix it that way for now. Because unless we have the authentication system ready where each user has access to some directory on server that can have his/her own grass database. This stays normal.

Remember authentication is in the to be done part of proposal.

I will push a cmake configuration that downloads sample grass7 dataset. So you can test it easily.


ciao
Luca

www.lucadelu.org


grass-dev mailing list
grass-dev@lists.osgeo.org
http://lists.osgeo.org/mailman/listinfo/grass-dev

Regards,
Rashad

On 30 May 2016 at 13:36, Rashad Kanavath <mohammedrashadkm@gmail.com> wrote:

Hello Luca,

Hi,

Thanks for testing.

On Mon, May 30, 2016 at 12:14 PM, Luca Delucchi <lucadeluge@gmail.com>
wrote:

On 30 May 2016 at 11:09, Mayank Agrawal <mayankagrawal333@gmail.com>
wrote:
>
> Readme-
>
> in the webgrass folder https://github.com/rashadkm/webgrass
>
> mkdir build
> cd build
> cmake ..
> make
> sudo ./wgrass.wt --http-address=0.0.0.0 --http-port=8080 --docroot ../
>

I read it already, but it was not enough

>
> These are the dependencies which will be required beforehand. Install
> them one by one.
>
> libwt-dev - C++ library and application server for web applications
> [development]
> libwtdbo-dev - Wt::Dbo ORM library for Wt [development]
> libwtdbofirebird-dev - Firebird backend for Wt::Dbo [development]
> libwtdbomysql-dev - MySQL/MariaDB backend for Wt::Dbo [development]
> libwtdbopostgres-dev - PostgreSQL backend for Wt::Dbo [development]
> libwtdbosqlite-dev - sqlite3 backend for Wt::Dbo [development]
> libwtext-dev - additional widgets for Wt, based on ExtJS 2.0.x
> [development]
> libwtfcgi-dev - FastCGI connector library for Wt [development]
> libwthttp-dev - HTTP(S) connector library for Wt [development]
> libwttest-dev - test connector library for Wt [development]
> libpugixml-dev
>

please add this in the readme file

>
> After this, do let me know with the error.
>

no error, now I'm able to run it but I cannot modify the grassdata
directory, is it normal?

Yes and No!

Yes it is expected that there is not user specific location-mapset upload
ready now.

you could set by default $HOME/grassdata (it is quite common to have a
grassdata in our own $HOME)

I will push a cmake configuration that downloads sample grass7 dataset. So
you can test it easily.

no please, no download sample dataset, should be better to set our
grassdata in a cmake variable

--
ciao
Luca

www.lucadelu.org

On Mon, May 30, 2016 at 1:56 PM, Luca Delucchi <lucadeluge@gmail.com> wrote:

On 30 May 2016 at 13:36, Rashad Kanavath <mohammedrashadkm@gmail.com>
wrote:
> Hello Luca,
>

Hi,

> Thanks for testing.
>
> On Mon, May 30, 2016 at 12:14 PM, Luca Delucchi <lucadeluge@gmail.com>
> wrote:
>>
>> On 30 May 2016 at 11:09, Mayank Agrawal <mayankagrawal333@gmail.com>
>> wrote:
>> >
>> > Readme-
>> >
>> > in the webgrass folder https://github.com/rashadkm/webgrass
>> >
>> > mkdir build
>> > cd build
>> > cmake ..
>> > make
>> > sudo ./wgrass.wt --http-address=0.0.0.0 --http-port=8080 --docroot ../
>> >
>>
>> I read it already, but it was not enough
>>
>> >
>> > These are the dependencies which will be required beforehand. Install
>> > them one by one.
>> >
>> > libwt-dev - C++ library and application server for web applications
>> > [development]
>> > libwtdbo-dev - Wt::Dbo ORM library for Wt [development]
>> > libwtdbofirebird-dev - Firebird backend for Wt::Dbo [development]
>> > libwtdbomysql-dev - MySQL/MariaDB backend for Wt::Dbo [development]
>> > libwtdbopostgres-dev - PostgreSQL backend for Wt::Dbo [development]
>> > libwtdbosqlite-dev - sqlite3 backend for Wt::Dbo [development]
>> > libwtext-dev - additional widgets for Wt, based on ExtJS 2.0.x
>> > [development]
>> > libwtfcgi-dev - FastCGI connector library for Wt [development]
>> > libwthttp-dev - HTTP(S) connector library for Wt [development]
>> > libwttest-dev - test connector library for Wt [development]
>> > libpugixml-dev
>> >
>>
>> please add this in the readme file
>>
>> >
>> > After this, do let me know with the error.
>> >
>>
>>
>> no error, now I'm able to run it but I cannot modify the grassdata
>> directory, is it normal?
>
>
> Yes and No!
>
> Yes it is expected that there is not user specific location-mapset upload
> ready now.
>

you could set by default $HOME/grassdata (it is quite common to have a
grassdata in our own $HOME)

I think the cmake variable GRASS_DATA_DIR can be set to $HOME/grassdata.
and during
configure check if it is a valid dataset.

>
> I will push a cmake configuration that downloads sample grass7 dataset.
So
> you can test it easily.
>

no please, no download sample dataset, should be better to set our
grassdata in a cmake variable

using sample data is not for everyone. This is a cmake option which is OFF
by default.

--
ciao
Luca

www.lucadelu.org

--
Regards,
   Rashad

On 30 May 2016 at 14:06, Rashad Kanavath <mohammedrashadkm@gmail.com> wrote:

I think the cmake variable GRASS_DATA_DIR can be set to $HOME/grassdata. and
during
configure check if it is a valid dataset.

Is GRASS_DATA_DIR already there?

using sample data is not for everyone. This is a cmake option which is OFF
by default.

ok

--
ciao
Luca

www.lucadelu.org

No.

I need to add it. Mayank will be working on other task this week. He is right now on building layer manager

···

On Mon, May 30, 2016 at 2:09 PM, Luca Delucchi <lucadeluge@gmail.com> wrote:

On 30 May 2016 at 14:06, Rashad Kanavath <mohammedrashadkm@gmail.com> wrote:

I think the cmake variable GRASS_DATA_DIR can be set to $HOME/grassdata. and
during
configure check if it is a valid dataset.

Is GRASS_DATA_DIR already there?

using sample data is not for everyone. This is a cmake option which is OFF
by default.

ok


ciao
Luca

www.lucadelu.org

Regards,
Rashad

On 30 May 2016 at 14:15, Rashad Kanavath <mohammedrashadkm@gmail.com> wrote:

No.

ok,

I need to add it. Mayank will be working on other task this week. He is
right now on building layer manager

let us know when it will be ready to test, thanks

--
ciao
Luca

www.lucadelu.org

On Mon, May 30, 2016 at 2:19 PM, Luca Delucchi <lucadeluge@gmail.com> wrote:

On 30 May 2016 at 14:15, Rashad Kanavath <mohammedrashadkm@gmail.com>
wrote:
> No.
>

ok,

> I need to add it. Mayank will be working on other task this week. He is
> right now on building layer manager
>

let us know when it will be ready to test, thanks

Sure. Will do.

--
ciao
Luca

www.lucadelu.org

--
Regards,
   Rashad

Hello Luca,

You can test it now.

But I think you need a fresh rebuild. the default of GRASS_DATA_DIR is $HOME/grassdata.

···

On Mon, May 30, 2016 at 2:21 PM, Rashad Kanavath <mohammedrashadkm@gmail.com> wrote:

On Mon, May 30, 2016 at 2:19 PM, Luca Delucchi <lucadeluge@gmail.com> wrote:

On 30 May 2016 at 14:15, Rashad Kanavath <mohammedrashadkm@gmail.com> wrote:

No.

ok,

I need to add it. Mayank will be working on other task this week. He is
right now on building layer manager

let us know when it will be ready to test, thanks

Sure. Will do.


ciao
Luca

www.lucadelu.org

Regards,
Rashad

Regards,
Rashad