[GRASS-dev] Need help in writing a program in Grass GIS

Hi All,
I am new to GIS and GRASS also. We would like to use the GRASS source and implement the following features.

  1. Import a shape file.
  2. Select a start location and end location in the map. Connect start and end locations with some intermediate points. Each point or location should uniquely identified with lat and long.
  3. Associate predefined properties for each identified point.
  4. Store the each location and it’s properties in a data base.

We would like to implement the above feature as additional menu in the existing toolbar. We would like to implement required dialog boxes or UI panel to display lat and long assocaited with identified locations. GUI should has the provision to enter properties for each location. Finally, we need to store them in DB after clicking a SAVE button.

I request your help in building the above application. I have already downloaded and compiled the GRASS 7.2 on ubuntu successfully.

  1. How to extend the current GRASS application ?
  2. How to build the supporting the GUI ?
  3. Can I write a python script to build the above application ?
  4. What are the modules to be written ?
  • Thanks

CM

On 21 May 2017 at 20:03, CM Reddy <chalamcharla@hotmail.com> wrote:

Hi All,

Hi,

I am new to GIS and GRASS also. We would like to use the GRASS source and
implement the following features.

Import a shape file.
Select a start location and end location in the map. Connect start and end
locations with some intermediate points. Each point or location should
uniquely identified with lat and long.
Associate predefined properties for each identified point.
Store the each location and it's properties in a data base.

We would like to implement the above feature as additional menu in the
existing toolbar. We would like to implement required dialog boxes or UI
panel to display lat and long assocaited with identified locations. GUI
should has the provision to enter properties for each location. Finally, we
need to store them in DB after clicking a SAVE button.

I request your help in building the above application. I have already
downloaded and compiled the GRASS 7.2 on ubuntu successfully.

How to extend the current GRASS application ?

GRASS is composed by singular modules, so it is quiet simple to extent

How to build the supporting the GUI ?

https://trac.osgeo.org/grass/browser/grass/trunk/gui/wxpython/README
https://trac.osgeo.org/grass/browser/grass/trunk/gui/wxpython/xml/menudata.README

Can I write a python script to build the above application ?

yes

What are the modules to be written ?

probably none, I think all modules you need are already in GRASS

- Thanks

CM

--
ciao
Luca

www.lucadelu.org

Hi CM,
You can use:

···

http://grasswiki.osgeo.org/wiki/GRASS_Python_Scripting_Library

Or,

https://grass.osgeo.org/grass70/manuals/libpython/pygrass_index.html

El 23/5/2017 11:12 a. m., “Luca Delucchi” <lucadeluge@gmail.com> escribió:

On 21 May 2017 at 20:03, CM Reddy <chalamcharla@hotmail.com> wrote:

Hi All,

Hi,

I am new to GIS and GRASS also. We would like to use the GRASS source and
implement the following features.

Import a shape file.
Select a start location and end location in the map. Connect start and end
locations with some intermediate points. Each point or location should
uniquely identified with lat and long.
Associate predefined properties for each identified point.
Store the each location and it’s properties in a data base.

We would like to implement the above feature as additional menu in the
existing toolbar. We would like to implement required dialog boxes or UI
panel to display lat and long assocaited with identified locations. GUI
should has the provision to enter properties for each location. Finally, we
need to store them in DB after clicking a SAVE button.

I request your help in building the above application. I have already
downloaded and compiled the GRASS 7.2 on ubuntu successfully.

How to extend the current GRASS application ?

GRASS is composed by singular modules, so it is quiet simple to extent

How to build the supporting the GUI ?

https://trac.osgeo.org/grass/browser/grass/trunk/gui/wxpython/README
https://trac.osgeo.org/grass/browser/grass/trunk/gui/wxpython/xml/menudata.README

Can I write a python script to build the above application ?

yes

What are the modules to be written ?

probably none, I think all modules you need are already in GRASS

  • Thanks

CM


ciao
Luca

www.lucadelu.org


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