Re: [GRASS-dev] SVM classifier and MeanShift

2012-12-26 Thread Mohammed Rashad
Hi Markus,

i.pr do many things and i.svm (currently developing) does SVM
classification based on libsvm[0]
I hope SVM classifier will be a good thing for GRASS 7
[0] http://www.csie.ntu.edu.tw/~cjlin/libsvm/


On Wed, Dec 26, 2012 at 8:37 PM, Markus Neteler nete...@osgeo.org wrote:

 On Wed, Dec 26, 2012 at 7:10 AM, Mohammed Rashad
 mohammedrasha...@gmail.com wrote:
 
  Hi,
 
  Can you tell more about segmentation which Eric Momsen worked on.

 Please check here:
 http://grasswiki.osgeo.org/wiki/GRASS_GSoC_2012_Image_Segmentation

 It may be very insteresting to update i.pr to GRASS 7:
 http://grasswiki.osgeo.org/wiki/GRASS_AddOns#i.pr

 and integrate it into the imagery library (or closeby as related
 library).

 Markus




-- 
Regards,
   Rashad
___
grass-dev mailing list
grass-dev@lists.osgeo.org
http://lists.osgeo.org/mailman/listinfo/grass-dev

[GRASS-dev] grass70 compile error

2012-12-25 Thread Mohammed Rashad
gcc -shared -o /code/grass/grass70/dist.i686-pc-linux-gnu/lib/
libgrass_nviz.7.0.svn.so -L/code/grass/grass70/dist.i686-pc-linux-gnu/lib
-L/code/grass/grass70/dist.i686-pc-linux-gnu/lib -Wl,--no-undefined
-Wl,--export-dynamic
-Wl,-rpath-link,/code/grass/grass70/dist.i686-pc-linux-gnu/lib
 OBJ.i686-pc-linux-gnu/change_view.o OBJ.i686-pc-linux-gnu/cplanes_obj.o
OBJ.i686-pc-linux-gnu/draw.o OBJ.i686-pc-linux-gnu/exag.o
OBJ.i686-pc-linux-gnu/lights.o OBJ.i686-pc-linux-gnu/map_obj.o
OBJ.i686-pc-linux-gnu/nviz.o OBJ.i686-pc-linux-gnu/position.o
OBJ.i686-pc-linux-gnu/render.o  -lgrass_ogsf.7.0.svn -lgrass_gis.7.0.svn
-lGL -lm
OBJ.i686-pc-linux-gnu/render.o: In function `Nviz_destroy_render_window':
/code/grass/grass70/lib/nviz/render.c:66: undefined reference to
`XFreePixmap'
/code/grass/grass70/lib/nviz/render.c:68: undefined reference to
`XCloseDisplay'
OBJ.i686-pc-linux-gnu/render.o: In function `Nviz_create_render_window':
/code/grass/grass70/lib/nviz/render.c:103: undefined reference to
`XOpenDisplay'
/code/grass/grass70/lib/nviz/render.c:118: undefined reference to
`XCreatePixmap'
/code/grass/grass70/lib/nviz/render.c:126: undefined reference to `XFree'
collect2: ld returned 1 exit status
make: *** [/code/grass/grass70/dist.i686-pc-linux-gnu/lib/
libgrass_nviz.7.0.svn.so] Error 1


grass revision = 54402.

-- 
Regards,
   Rashad
___
grass-dev mailing list
grass-dev@lists.osgeo.org
http://lists.osgeo.org/mailman/listinfo/grass-dev

Re: [GRASS-dev] grass70 compile error

2012-12-25 Thread Mohammed Rashad
i solved it

LDFLAGS = -Wl,--no-as-needed


On Tue, Dec 25, 2012 at 11:14 PM, Mohammed Rashad 
mohammedrasha...@gmail.com wrote:

 gcc -shared -o /code/grass/grass70/dist.i686-pc-linux-gnu/lib/
 libgrass_nviz.7.0.svn.so -L/code/grass/grass70/dist.i686-pc-linux-gnu/lib
 -L/code/grass/grass70/dist.i686-pc-linux-gnu/lib -Wl,--no-undefined
 -Wl,--export-dynamic
 -Wl,-rpath-link,/code/grass/grass70/dist.i686-pc-linux-gnu/lib
  OBJ.i686-pc-linux-gnu/change_view.o OBJ.i686-pc-linux-gnu/cplanes_obj.o
 OBJ.i686-pc-linux-gnu/draw.o OBJ.i686-pc-linux-gnu/exag.o
 OBJ.i686-pc-linux-gnu/lights.o OBJ.i686-pc-linux-gnu/map_obj.o
 OBJ.i686-pc-linux-gnu/nviz.o OBJ.i686-pc-linux-gnu/position.o
 OBJ.i686-pc-linux-gnu/render.o  -lgrass_ogsf.7.0.svn -lgrass_gis.7.0.svn
 -lGL -lm
 OBJ.i686-pc-linux-gnu/render.o: In function `Nviz_destroy_render_window':
 /code/grass/grass70/lib/nviz/render.c:66: undefined reference to
 `XFreePixmap'
 /code/grass/grass70/lib/nviz/render.c:68: undefined reference to
 `XCloseDisplay'
 OBJ.i686-pc-linux-gnu/render.o: In function `Nviz_create_render_window':
 /code/grass/grass70/lib/nviz/render.c:103: undefined reference to
 `XOpenDisplay'
 /code/grass/grass70/lib/nviz/render.c:118: undefined reference to
 `XCreatePixmap'
 /code/grass/grass70/lib/nviz/render.c:126: undefined reference to `XFree'
 collect2: ld returned 1 exit status
 make: *** [/code/grass/grass70/dist.i686-pc-linux-gnu/lib/
 libgrass_nviz.7.0.svn.so] Error 1


 grass revision = 54402.

 --
 Regards,
Rashad




-- 
Regards,
   Rashad
___
grass-dev mailing list
grass-dev@lists.osgeo.org
http://lists.osgeo.org/mailman/listinfo/grass-dev

Re: [GRASS-dev] SVM classifier and MeanShift

2012-12-25 Thread Mohammed Rashad
Hi,

Can you tell more about segmentation which Eric Momsen worked on.

Markus Metz,
Could you comment on adding meanshift segmenation to GRASS GIS?

On Wed, Dec 26, 2012 at 11:35 AM, Pierre Roudier
pierre.roud...@gmail.comwrote:

 Mohammed,

 For segmentation please get in touch with Eric Momsen who worked on
 i.segment recently, with great success. We were looking forward to add the
 mean shift option. Keep also Markus Metz in the loop - he was the mentor of
 the project and worked on i.segment.xl.

 Also, make sure you check out the orfeo toolbox library, they have several
 implementations of segmentation methods.

 SVM classification would also be useful. Not sure if anybody worked on it.

 Best,

 Pierre
 On Dec 24, 2012 4:57 PM, Mohammed Rashad mohammedrasha...@gmail.com
 wrote:

 Hi All,

 I am planning to add SVM classifier to grass based on libsvm. I had a
 basic version of it in my private repo. I am also planning to do meanshift
 segmentation module.

 Is there anyone working on such things currently?. Any users interested?

 --
 Regards,
Rashad

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




-- 
Regards,
   Rashad
___
grass-dev mailing list
grass-dev@lists.osgeo.org
http://lists.osgeo.org/mailman/listinfo/grass-dev

[GRASS-dev] SVM classifier and MeanShift

2012-12-23 Thread Mohammed Rashad
Hi All,

I am planning to add SVM classifier to grass based on libsvm. I had a basic
version of it in my private repo. I am also planning to do meanshift
segmentation module.

Is there anyone working on such things currently?. Any users interested?

-- 
Regards,
   Rashad
___
grass-dev mailing list
grass-dev@lists.osgeo.org
http://lists.osgeo.org/mailman/listinfo/grass-dev

Re: [GRASS-dev] wxGUI Raster Digitizer

2012-12-20 Thread Mohammed Rashad
from grass-addons/grass7/gui/wxpython/wx.rdigit

python frame.py

sorry. No readme my fault :)


On Thu, Dec 20, 2012 at 1:30 PM, Markus Neteler nete...@osgeo.org wrote:

 On Tue, Dec 18, 2012 at 2:34 PM, Mohammed Rashad
 mohammedrasha...@gmail.com wrote:
  Hi All,
 
  I had committed the first version wxGUI Raster Digitizer[1].
 Adding/removing
  Circles is not available for the moment. There is a lot more to do yet.
 But
  It will be great to have some test results/suggestion/feedback.
 
  [1]
 
 http://trac.osgeo.org/grass/browser/grass-addons/grass7/gui/wxpython/wx.rdigit

 Interesting - how to test it?

 Markus




-- 
Regards,
   Rashad
___
grass-dev mailing list
grass-dev@lists.osgeo.org
http://lists.osgeo.org/mailman/listinfo/grass-dev

Re: [GRASS-dev] Updating colorrules.py

2012-12-20 Thread Mohammed Rashad
updated the patch. PFA

Do you think its necessary to update the file in trac ?


On Thu, Dec 20, 2012 at 8:50 AM, Mohammed Rashad mohammedrasha...@gmail.com
 wrote:

 Hi Anna,

 Adding  a check for ultimatelistctrl widget and if not available can be
 done. But remember using the old implementation will crash wxGUI.

 How about If no ultimatelistctrl is not available we can add a copy of it
 our own with a warning

 Btw, I dont have a source build of wxpython. This comes with Ubuntu 12.04
 LTS




 On Thu, Dec 20, 2012 at 4:56 AM, Anna Kratochvílová kratocha...@gmail.com
  wrote:

 On Wed, Dec 19, 2012 at 4:39 PM, Mohammed Rashad
 mohammedrasha...@gmail.com wrote:
  Hi All,
 
  gui/wxpython/modules/colorrules.py, providing inteface for setting
  colortable for raster and vector.
 
  As I reported on trac[1] several weeks ago there is a bug in the code
 which
  happens if no. color rules for raster map is big (eg: 32763 This for
  nc_spm_08/landsat 4,3,2 color composite) . This will result in crashing
 the
  whole wxGUI!
 
  The problem is for each rule colorrules.py create a checkbox,textCtrl
 and
  ColorSelect.
 
  Creating these widgets will hangup the UI.
 
  A solution is to use a list control agw provides one such thing called
  ultimatelistCtrl.
 
  I had updated the colorrules.py and made a patch for it. Anyone Please
  review and update the file

 Hi Rashad,

 I can't even test your patch at the moment because UltimateListCtrl is
 not supported in wxPython 2.8.10.1 (which is installed on my
 computer). It seems that it is available from 2.8.11, however in the
 grass requirements, there is wxPython = 2.8.1.1. I agree that this
 one is pretty old but still we must decide if it is worth changing the
 requirements. I think that the version I have is still used a lot so
 we should support it. You are using this widget to show the color I
 suppose. I am not aware of any other good solution. Maybe you can a
 condition on wxPython version and if it is high enough use this
 widget, otherwise use the current implementation?

 Anna

 
  PFA patch
 
  [0] http://trac.osgeo.org/grass/ticket/1816
 
 
  --
  Regards,
 Rashad
 
 
  ___
  grass-dev mailing list
  grass-dev@lists.osgeo.org
  http://lists.osgeo.org/mailman/listinfo/grass-dev




 --
 Regards,
Rashad




-- 
Regards,
   Rashad


colorrules_py.patch
Description: Binary data
___
grass-dev mailing list
grass-dev@lists.osgeo.org
http://lists.osgeo.org/mailman/listinfo/grass-dev

Re: [GRASS-dev] wxGUI Raster Digitizer

2012-12-20 Thread Mohammed Rashad
Hi Markus,

 From your screenshot What I understand is you loaded a raster map but
did not created or selected the map to be saved. Output map seems to be
empy. I had updated svn for check if map is available. Now wx.rdigit shows
error message if no map is selected

Also All your Observations are considered and module is modified accordingly

Please update source and try again.

PS: There is a feature not implemented in it which asks for category id and
num for each digitized object created. I will implement it after current
testing. Because there are some discussion regarding no need for a
digitizer since the same can be acheived from v.digit and v.to.rast






On Thu, Dec 20, 2012 at 4:04 PM, Markus Neteler nete...@osgeo.org wrote:

 On Thu, Dec 20, 2012 at 11:18 AM, Mohammed Rashad
 mohammedrasha...@gmail.com wrote:
  from grass-addons/grass7/gui/wxpython/wx.rdigit
 
  python frame.py

 Ok, it starts. I can digitize, nice. See screenshot.

 Some observations:
 *  the right mouse button does not stop the digitizer as I would expect

 * The Quit eats the digitized lines rather than opening the save
   dialog (if saving still needed) and quitting.

 * Perhaps have the digitizing tools always on and remove the button
   for switching them on?

 Best
 Markus




-- 
Regards,
   Rashad
___
grass-dev mailing list
grass-dev@lists.osgeo.org
http://lists.osgeo.org/mailman/listinfo/grass-dev

[GRASS-dev] Updating colorrules.py

2012-12-19 Thread Mohammed Rashad
Hi All,

gui/wxpython/modules/colorrules.py, providing inteface for setting
colortable for raster and vector.

As I reported on trac[1] several weeks ago there is a bug in the code which
happens if no. color rules for raster map is big (eg: 32763 This for
nc_spm_08/landsat 4,3,2 color composite) . This will result in crashing the
whole wxGUI!

The problem is for each rule colorrules.py create a checkbox,textCtrl and
ColorSelect.

Creating these widgets will hangup the UI.

A solution is to use a list control agw provides one such thing called
ultimatelistCtrl.

I had updated the colorrules.py and made a patch for it. Anyone Please
review and update the file

PFA patch

[0] http://trac.osgeo.org/grass/ticket/1816


-- 
Regards,
   Rashad


colorrules_py.patch
Description: Binary data
___
grass-dev mailing list
grass-dev@lists.osgeo.org
http://lists.osgeo.org/mailman/listinfo/grass-dev

Re: [GRASS-dev] Updating colorrules.py

2012-12-19 Thread Mohammed Rashad
Hi Anna,

Adding  a check for ultimatelistctrl widget and if not available can be
done. But remember using the old implementation will crash wxGUI.

How about If no ultimatelistctrl is not available we can add a copy of it
our own with a warning

Btw, I dont have a source build of wxpython. This comes with Ubuntu 12.04
LTS




On Thu, Dec 20, 2012 at 4:56 AM, Anna Kratochvílová
kratocha...@gmail.comwrote:

 On Wed, Dec 19, 2012 at 4:39 PM, Mohammed Rashad
 mohammedrasha...@gmail.com wrote:
  Hi All,
 
  gui/wxpython/modules/colorrules.py, providing inteface for setting
  colortable for raster and vector.
 
  As I reported on trac[1] several weeks ago there is a bug in the code
 which
  happens if no. color rules for raster map is big (eg: 32763 This for
  nc_spm_08/landsat 4,3,2 color composite) . This will result in crashing
 the
  whole wxGUI!
 
  The problem is for each rule colorrules.py create a checkbox,textCtrl and
  ColorSelect.
 
  Creating these widgets will hangup the UI.
 
  A solution is to use a list control agw provides one such thing called
  ultimatelistCtrl.
 
  I had updated the colorrules.py and made a patch for it. Anyone Please
  review and update the file

 Hi Rashad,

 I can't even test your patch at the moment because UltimateListCtrl is
 not supported in wxPython 2.8.10.1 (which is installed on my
 computer). It seems that it is available from 2.8.11, however in the
 grass requirements, there is wxPython = 2.8.1.1. I agree that this
 one is pretty old but still we must decide if it is worth changing the
 requirements. I think that the version I have is still used a lot so
 we should support it. You are using this widget to show the color I
 suppose. I am not aware of any other good solution. Maybe you can a
 condition on wxPython version and if it is high enough use this
 widget, otherwise use the current implementation?

 Anna

 
  PFA patch
 
  [0] http://trac.osgeo.org/grass/ticket/1816
 
 
  --
  Regards,
 Rashad
 
 
  ___
  grass-dev mailing list
  grass-dev@lists.osgeo.org
  http://lists.osgeo.org/mailman/listinfo/grass-dev




-- 
Regards,
   Rashad
___
grass-dev mailing list
grass-dev@lists.osgeo.org
http://lists.osgeo.org/mailman/listinfo/grass-dev

Re: [GRASS-dev] r.digit

2012-12-17 Thread Mohammed Rashad
All,

What I am thinking of is a python version of r.in.poly which can create
area, line, circle from a list of (x,y) coordinates captured from wxGUI Map
display

r.in.poly reads from file or stdin. Using pyGRASS/ grass ctypes api we can
create objects in raster file.




On Mon, Dec 17, 2012 at 2:30 PM, Pietro peter.z...@gmail.com wrote:

 Hi Hamish,

 On Mon, Dec 17, 2012 at 4:36 AM, Hamish hamis...@yahoo.com wrote:
  for my 2c it's quite nice to have a dedicated raster digitizing
  option, instead of needing an extra v.in.ascii - v.to.rast
  step in your workflow. That doesn't rule out a wrapper script
  to hide the vector part of it, but a dedicated r.in.poly mode
  would both be more efficient and perhaps less prone to loss in
  fidelity.

 I think that should be possible to use the geometry feature of the
 vector api of pygrass,

  from grass import pygrass
  from pygrass.vector.geometry import Point, Line
  pnt = Point(10, 100)
  line = Line([(0, 0), (1, 1), (2, 0), (1, -1)])
  line.c_points  # return the ctypes pointer to the line_points struct
 grass.lib.ctypes_preamble.LP_struct_line_pnts object at 0x2aa1440

 even if is not deeply tested...

 get more example from here:


 http://www.ing.unitn.it/~zambelli/projects/pygrass/vector.html#vector-features


 Pietro




-- 
Regards,
   Rashad
___
grass-dev mailing list
grass-dev@lists.osgeo.org
http://lists.osgeo.org/mailman/listinfo/grass-dev

Re: [GRASS-dev] r.digit

2012-12-17 Thread Mohammed Rashad
On Mon, Dec 17, 2012 at 4:16 PM, Vaclav Petras wenzesl...@gmail.com wrote:

 On 17 December 2012 10:58, Mohammed Rashad mohammedrasha...@gmail.com
 wrote:
  All,
 
  What I am thinking of is a python version of r.in.poly which can create
  area, line, circle from a list of (x,y) coordinates captured from wxGUI
 Map
  display
 
  r.in.poly reads from file or stdin. Using pyGRASS/ grass ctypes api we
 can
  create objects in raster file.
 
 But keep in mind that GUI should not call grass C libraries directly
 but should call modules if possible. Digitizer is now one of the
 exceptions. But we should avoid adding more exceptions, I think.


graster.Rast_open_c_new() is allowed?

if not can you provide an example?



 (Calling library functions from GUI is often needed for better
 flexibility (or performance issues?) and, as you probably know, we are
 still reconsidering current approaches but still there is no final
 solution to this problem.)
 
 
 
  On Mon, Dec 17, 2012 at 2:30 PM, Pietro peter.z...@gmail.com wrote:
 
  Hi Hamish,
 
  On Mon, Dec 17, 2012 at 4:36 AM, Hamish hamis...@yahoo.com wrote:
   for my 2c it's quite nice to have a dedicated raster digitizing
   option, instead of needing an extra v.in.ascii - v.to.rast
   step in your workflow. That doesn't rule out a wrapper script
   to hide the vector part of it, but a dedicated r.in.poly mode
   would both be more efficient and perhaps less prone to loss in
   fidelity.
 
  I think that should be possible to use the geometry feature of the
  vector api of pygrass,
 
   from grass import pygrass
   from pygrass.vector.geometry import Point, Line
   pnt = Point(10, 100)
   line = Line([(0, 0), (1, 1), (2, 0), (1, -1)])
   line.c_points  # return the ctypes pointer to the line_points struct
  grass.lib.ctypes_preamble.LP_struct_line_pnts object at 0x2aa1440
 
  even if is not deeply tested...
 
  get more example from here:
 
 
 
 http://www.ing.unitn.it/~zambelli/projects/pygrass/vector.html#vector-features
 
 
  Pietro
 
 
 
 
  --
  Regards,
 Rashad
 




-- 
Regards,
   Rashad
___
grass-dev mailing list
grass-dev@lists.osgeo.org
http://lists.osgeo.org/mailman/listinfo/grass-dev

Re: [GRASS-dev] r.digit

2012-12-16 Thread Mohammed Rashad
Hi Markus,

Is there anyone working on it?

Seems like it needs to be something similar to wx Digitizer but for raster.
Am I correct?


On Sun, Dec 16, 2012 at 4:04 PM, Markus Neteler nete...@osgeo.org wrote:

 On Sun, Dec 16, 2012 at 5:31 AM, Mohammed Rashad
 mohammedrasha...@gmail.com wrote:
  r.digit is not available in grass 7. Is it removed

 Yes:
 r.digit needed an interactive xmon window, which is only available if
 using X11.

 Interestingly there is still the deactivated old code in
 grass70/raster/r.digit/

 Markus




-- 
Regards,
   Rashad
___
grass-dev mailing list
grass-dev@lists.osgeo.org
http://lists.osgeo.org/mailman/listinfo/grass-dev

Re: [GRASS-dev] r.digit

2012-12-16 Thread Mohammed Rashad
On Sun, Dec 16, 2012 at 5:37 PM, Markus Neteler nete...@osgeo.org wrote:

 On Sun, Dec 16, 2012 at 11:52 AM, Mohammed Rashad
 mohammedrasha...@gmail.com wrote:
  Hi Markus,
 
  Is there anyone working on it?

 Not that I aware of.




  Seems like it needs to be something similar to wx Digitizer but for
 raster.
  Am I correct?

 Do we really need it (v.digit, v.to.rast are there)?


You are saying there is no need for r.digit module. because v.digit +
v.to.rast may produce same output. Right?

If the module is needed i can start working on it.


 If yes, in case it may be based on the digitizer in i.class (idea).

I didnt get this.



 Markus




-- 
Regards,
   Rashad
___
grass-dev mailing list
grass-dev@lists.osgeo.org
http://lists.osgeo.org/mailman/listinfo/grass-dev

[GRASS-dev] grass.run_command()

2012-12-16 Thread Mohammed Rashad
*CASE I*
*grass.run_command('r.in.poly', input='/tmp/t.file',rows=512,
output=result_name, overwrite=True)*

gives this

GRASS_INFO_MESSAGE(5466,1): Writing raster map...
GRASS_INFO_END(5466,1)
GRASS_INFO_PERCENT: 0
GRASS_INFO_PERCENT: 3
GRASS_INFO_PERCENT: 6
GRASS_INFO_PERCENT: 9
GRASS_INFO_PERCENT: 12
GRASS_INFO_PERCENT: 15
GRASS_INFO_PERCENT: 18
GRASS_INFO_PERCENT: 21
GRASS_INFO_PERCENT: 24
GRASS_INFO_PERCENT: 27
GRASS_INFO_PERCENT: 30
GRASS_INFO_PERCENT: 33
GRASS_INFO_PERCENT: 36
GRASS_INFO_PERCENT: 39
GRASS_INFO_PERCENT: 42
GRASS_INFO_PERCENT: 45
GRASS_INFO_PERCENT: 48
GRASS_INFO_PERCENT: 51
GRASS_INFO_PERCENT: 54
GRASS_INFO_PERCENT: 57
GRASS_INFO_PERCENT: 60
GRASS_INFO_PERCENT: 63
GRASS_INFO_PERCENT: 66
GRASS_INFO_PERCENT: 69
GRASS_INFO_PERCENT: 72
GRASS_INFO_PERCENT: 75
GRASS_INFO_PERCENT: 78
GRASS_INFO_PERCENT: 81
GRASS_INFO_PERCENT: 84
GRASS_INFO_PERCENT: 87
GRASS_INFO_PERCENT: 90
GRASS_INFO_PERCENT: 93
GRASS_INFO_PERCENT: 96
GRASS_INFO_PERCENT: 99
GRASS_INFO_PERCENT: 100



But Even though it says Writing raster map data is not written
when I copy paste the command and run from terminal data is writting


*CASE II*
running from commandline saves the data
*r.in.poly rows=512 input=/tmp/t.file output=aa_1@PERMANENT*


Writing raster map...
 100%

*CASE III*
sotring the script in tmp.py

tmp.py ==import grass.script.core as grass
result_name = aa_1@ + grass.gisenv()['MAPSET']
grass.run_command('r.in.poly', input='/tmp/t.file',rows=512,
output=result_name, overwrite=True)

Also works fine.


But i want to work in the first *CASE I*
*
*
*
*
Anyone have any ideas?

when GRASS_INFO_PERCENT is coming data is not saved. Is it because of that
or some other reason?


-- 
Regards,
   Rashad
___
grass-dev mailing list
grass-dev@lists.osgeo.org
http://lists.osgeo.org/mailman/listinfo/grass-dev

Re: [GRASS-dev] r.digit

2012-12-16 Thread Mohammed Rashad
On Mon, Dec 17, 2012 at 9:06 AM, Hamish hamis...@yahoo.com wrote:

 Mohammed:
   Does r.digit needs to be ported or not?

 Vaclav:
  Combination digitize vector + convert to raster is not able
  to allow user to decide which particular cell should or should
  not be digitized. So, the raster digitizer is needed for this.
  But I don't know if this is a frequent case. I don't know
  r.digit but it was the same as digitizer + v.to.rast according
  to module description.

 Hi guys,

 G6's r.digit is a front end to the r.in.poly module, which takes
 an input not dissimilar to the v.in.ascii standard grass format.
 An old idea was to just reuse the wx digitizer tool but instead
 of writing to grass vector ascii format + v.in.ascii change
 things a little and save to r.in.poly ascii format instead.
 Since then the wx digitizer got way more advanced, I'm not sure
 if it is possible any more to just have an extra Save As.. in
 the file menu/toolbar. (I hope it is)

 for my 2c it's quite nice to have a dedicated raster digitizing
 option, instead of needing an extra v.in.ascii - v.to.rast
 step in your workflow. That doesn't rule out a wrapper script
 to hide the vector part of it, but a dedicated r.in.poly mode
 would both be more efficient and perhaps less prone to loss in
 fidelity.


By dedicated raster digitizer you mean using r.in.poly or using C code +
cyptes wrapper for wxGui, the same way as wxDigitizer?

Btw, r.in.poly implementation is very easy!!. But I dont know about its
efficiency





 thanks,
 Hamish




-- 
Regards,
   Rashad
___
grass-dev mailing list
grass-dev@lists.osgeo.org
http://lists.osgeo.org/mailman/listinfo/grass-dev

[GRASS-dev] Generic groups in GRASS

2012-12-15 Thread Mohammed Rashad
Hi All,

As mentioned in GRASS ImageryLib TODO I am making groups to be generic in
GRASS.

This might be very simple like creating a new REF file for vector. But the
question is do we need only raster or vector groups?.

Will it be worth adding a mix of raster/vector in a single group?

When adding raster maps into a group a REF file is created in grass db.

The data structure REF[0] can accept only raster data. It has no. of files,
colortable,

Should we need a new data structure called GRef or something which can
store vector styles?

This will help to created a group with vector maps having a different style
option. These style options can be used for rendering them in gui.
This basically stores the filling option/line color, label color etc which
can be stored and a stack of layers can use it. I thought of styling option
as in QGIS

Does this make any sense?

[0] http://grass.osgeo.org/programming7/structRef.html

-- 
Regards,
   Rashad
___
grass-dev mailing list
grass-dev@lists.osgeo.org
http://lists.osgeo.org/mailman/listinfo/grass-dev

[GRASS-dev] r.digit

2012-12-15 Thread Mohammed Rashad
r.digit is not available in grass 7. Is it removed or is there any problem
with my build?



-- 
Regards,
   Rashad
___
grass-dev mailing list
grass-dev@lists.osgeo.org
http://lists.osgeo.org/mailman/listinfo/grass-dev

Re: [GRASS-dev] GRASS7 ImageryLib

2012-12-08 Thread Mohammed Rashad
On Sun, Dec 9, 2012 at 1:51 AM, Markus Metz
markus.metz.gisw...@gmail.comwrote:

 [answering here because I have worked on some of the affected modules]

 On Wed, Dec 5, 2012 at 6:16 PM, Mohammed Rashad
 mohammedrasha...@gmail.com wrote:
 
 
 
  On Fri, Nov 30, 2012 at 7:46 PM, Markus Neteler nete...@osgeo.org
 wrote:
 
  On Fri, Nov 30, 2012 at 5:26 AM, Mohammed Rashad
  mohammedrasha...@gmail.com wrote:
  
   All,
  
  
   I found these here[1] and says many things which needed help. So I
   thought
   to give a try in order
  
  
   1. Imagery Library needs fundamental clean up (the library is not
   maintained
   from GRASS 5)
  
   Anyone can elaborate on this line?
 
  Fully agreed.
 
  It might be sensible to merge the various image libraries:
 
  GRASS 6/7:
  * lib/imagery/: standard lib, in use (i.* except for i.points3,
  i.rectify3, see below)
  * imagery/i.ortho.photo/libes/: standard lib, in use (i.ortho.photo,
  photo.*)
 
 
 
  i.points3 and i.rectify3 doesnt uses standard lib. So adding API style
 code
  which can be used by i.point3 and i.rectify3 is what you are saying. Am I
  correct?

 I guess so, but I would suggest to move the libs needed by i.points3
 and i.rectify3 to a separate GRASS lib, probably ortholib
 
  i.ortho.photo uses i.ortho.photo/libes right?

 No, it uses (will use) ortholib, currently i.ortho.photo/lib, but I am
 busy porting it and related modules to trunk.






 
  so merging both libs will provide an API which any grass imagery module
 can
  share right?

 I would suggest to separate standard imagery lib and
 orthorectification, because these two use substantially different
 algorithms. The ortholib depends on imager lib.



i.ortho.photo is under progress right? . So moving imager to a lib called
ortholib under imagery like imagery/ortholib or as grass_trunk/ortholib is
need to be done. right?

So If I start moving code around will it affect the current work on i.ortho
and friends?



 
 
 
 
  GRASS 5 (! only) image3 lib:
  * libes/image3/: never finished improvement which integrated the
  standard lib and the ortho lib. Seems to provide also ortho
  rectification for satellite data (i.points3, i.rectify3)
 
  GRASS 5/6 image proc commands:
  * merge of i.points, i.vpoints, i.points3 (see above)
  * merge of i.rectify and i.rectify3 (see above)
 
  Overall
  * add other warping methods (maybe lanczos or thin splines from GDAL?)
 
 
  This part is not clear to me at all

 Lanczos is already available.

 What could be gained by adding thin splines to the existing bilinear,
 bicubic, bspline, lanczos methods?


This question is not clear for me


 Markus M

 
 
 
 
  However, the library cleanup in GRASS 7 would be essential.
 
   2. Reimplement groups to be generic element (in GIS Library)
  
   I guess i.group module should be g.group which can groups both
   raster/vector
   maps
  
   Is that correct?
 
  Correct I don't know, maybe subject to discussion.
 
 
 
  Anyone have any comments ?
 
 
 
  Best
  Markus
 
 
 
 
  --
  Regards,
 Rashad
 
 
  ___
  grass-dev mailing list
  grass-dev@lists.osgeo.org
  http://lists.osgeo.org/mailman/listinfo/grass-dev




-- 
Regards,
   Rashad
___
grass-dev mailing list
grass-dev@lists.osgeo.org
http://lists.osgeo.org/mailman/listinfo/grass-dev

[GRASS-dev] Should we not set color table for certain maps from wxGUI

2012-12-06 Thread Mohammed Rashad
All,

There is a crash in wxgui set colortable for maps created using r.composite
because of very large list of widgets created form the list of rules.

This now happens only for composite maps but can also occur for other maps
which comes with a long list of rules from the r.colors.out.

1. Disable color table only for maps created by r.composite can be done
using  the map's metadata which says Generated by r.composite . But its a
very dirty trick.

2. Another option is to put a max limit on no. of rules and allows to set
color table for only those under the limit.

This too is dirty but looks cleaner than first one.

3. Redesign color table gui in a way to adopt this situation
Instead of adding multiple widgets there can be a single widget that could
handle a rule like this (honestly I dont know weather there is any widget)

To reproduce the bug see http://trac.osgeo.org/grass/ticket/1816




-- 
Regards,
   Rashad
___
grass-dev mailing list
grass-dev@lists.osgeo.org
http://lists.osgeo.org/mailman/listinfo/grass-dev

Re: [GRASS-dev] GRASS7 ImageryLib

2012-12-05 Thread Mohammed Rashad
On Fri, Nov 30, 2012 at 7:46 PM, Markus Neteler nete...@osgeo.org wrote:

 On Fri, Nov 30, 2012 at 5:26 AM, Mohammed Rashad
 mohammedrasha...@gmail.com wrote:
 
  All,
 
 
  I found these here[1] and says many things which needed help. So I
 thought
  to give a try in order
 
 
  1. Imagery Library needs fundamental clean up (the library is not
 maintained
  from GRASS 5)
 
  Anyone can elaborate on this line?

 Fully agreed.

 It might be sensible to merge the various image libraries:

 GRASS 6/7:
 * lib/imagery/: standard lib, in use (i.* except for i.points3,
 i.rectify3, see below)
 * imagery/i.ortho.photo/libes/: standard lib, in use (i.ortho.photo,
 photo.*)



i.points3 and i.rectify3 doesnt uses standard lib. So adding API style code
which can be used by i.point3 and i.rectify3 is what you are saying. Am I
correct?

i.ortho.photo uses i.ortho.photo/libes right?

so merging both libs will provide an API which any grass imagery module can
share right?




 GRASS 5 (! only) image3 lib:
 * libes/image3/: never finished improvement which integrated the
 standard lib and the ortho lib. Seems to provide also ortho
 rectification for satellite data (i.points3, i.rectify3)

 GRASS 5/6 image proc commands:
 * merge of i.points, i.vpoints, i.points3 (see above)
 * merge of i.rectify and i.rectify3 (see above)

 Overall
 * add other warping methods (maybe lanczos or thin splines from GDAL?)


This part is not clear to me at all




 However, the library cleanup in GRASS 7 would be essential.

  2. Reimplement groups to be generic element (in GIS Library)
 
  I guess i.group module should be g.group which can groups both
 raster/vector
  maps
 
  Is that correct?

 Correct I don't know, maybe subject to discussion.



Anyone have any comments ?



 Best
 Markus




-- 
Regards,
   Rashad
___
grass-dev mailing list
grass-dev@lists.osgeo.org
http://lists.osgeo.org/mailman/listinfo/grass-dev

[GRASS-dev] GRASS7 ImageryLib

2012-11-29 Thread Mohammed Rashad
All,


I found these here[1] and says many things which needed help. So I thought
to give a try in order


1. Imagery 
Libraryhttp://download.osgeo.org/grass/grass7_progman/imagerylib.htmlneeds
fundamental clean up (the library is not maintained from GRASS 5)

Anyone can elaborate on this line?

2. Reimplement groups to be generic element (in GIS Library)

I guess i.group module should be g.group which can groups both
raster/vector maps

Is that correct?

please reply back with some comments/suggestion regarding these two


[1] http://trac.osgeo.org/grass/wiki/Grass7/ImageryLib

-- 
Regards,
   Rashad
___
grass-dev mailing list
grass-dev@lists.osgeo.org
http://lists.osgeo.org/mailman/listinfo/grass-dev

[GRASS-dev] GRASS C++ API

2012-11-27 Thread Mohammed Rashad
All,

Where can I get GRASS CPP API documentation?

I am currently modifying an addon which will be better if ported to cpp?

i actually found this[1]

But it will be better to have an API from root level rather than using
extern C everywhere



[1] http://grasswiki.osgeo.org/wiki/GRASS_and_C++

-- 
Regards,
   Rashad
___
grass-dev mailing list
grass-dev@lists.osgeo.org
http://lists.osgeo.org/mailman/listinfo/grass-dev

[GRASS-dev] GRASS Integreated GUI

2012-02-25 Thread Mohammed Rashad
Hi Devs,
I am planning to update dataCatalog now GRASS Catalog for GRASS GIS. Data
Catalog is bit outdated for grass 6.4. I would like to add GRASS Catalog
for grass7 for that I need to change all wx.Frame for Map Frame to wx.Panel

I am not wrting more . I would like to know if GRASS developers are
interested in GRASS Catalog anymore


see a screen here
http://grass.osgeo.org/wiki/File:GRASS_Catalog1.png
patch here
http://lsi.iiit.ac.in/grass_addons/GRASSCatalog.tar.gz


I had also filed a ticket

please consider and let me know
-- 
Regards,
   Rashad
___
grass-dev mailing list
grass-dev@lists.osgeo.org
http://lists.osgeo.org/mailman/listinfo/grass-dev

[GRASS-dev] webGRASS development

2012-02-12 Thread Mohammed Rashad
All,
As I am super busy with my studies and projects I am looking for open
source developer(C++) to work with us. This is not a paid position. It is
contributing to webGRASS and finally an OSGeo project in future. if you
would like to know more there is a wiki page
http://grass.osgeo.org/wiki/WebGRASS

contact info is there on page footer
-- 
Regards,
   Rashad
___
grass-dev mailing list
grass-dev@lists.osgeo.org
http://lists.osgeo.org/mailman/listinfo/grass-dev

[GRASS-dev] GRASS web UI v2 and wiki

2012-01-25 Thread Mohammed Rashad
I had created a wiki page regarding webGRASS and also some demo videos
because its still under development.

webGRASS does not use any WPS or WMS services. it will work just like a
desktop GRASS and users only need to carry data no install and configure

nviz is not supported but we are building it using webGL which may take
some time
all the basic commands and raster/vector display can be done.

If anyone is intersted will share the source under same license are GRASS
GIS.



http://grass.osgeo.org/wiki/WebGRASS
-- 
Regards,
   Rashad
___
grass-dev mailing list
grass-dev@lists.osgeo.org
http://lists.osgeo.org/mailman/listinfo/grass-dev

Re: [GRASS-dev] how can I change r.watershed GUI ?

2011-12-22 Thread Mohammed Rashad
Hey Sandip,
As I said earlier in GRASS there is no indivual code for each gui. each
module has a predefined interface description
Grass gui parses this and create a gui when you execute r.wastershed from
GRASS.

if you need to change gui you can do it but you are on your own. no one
will do the job for you. if you have grass gis question ask
we will defenitely answer if we know.

For your question

you need to create a python code for it (ofcourse you can choose C if you
like) procedure is same
you need build
1. form/wxWindow like you want(first screenshot)
2. allow user to fill the parameters
3. pass the parameters to r.wastershed module using gcmd
gcmd.RunCommand(r.watershed --input=.)
if you want r.wastershed as a standalone module then you need to inherit
classes from from mapwindow,mapdisp etc

i need to type more but need to go..  By the time you think about what I
said

Also let other developers also reply




Hope this help

On Thu, Dec 22, 2011 at 1:20 PM, Sandip Maity sandip.stesa...@gmail.comwrote:

 Dear Friends,

 I want to change r.watershed GUI.

 I had change the GUI by changing menu.c in r.watershed-front folder and
 then make command. After that i replaced the new r.watershed.exe to the
 bin. The GUI is coming like 2nd attachment.

 but, i want to change like 1st attachment file.

 Please see the attachment and suggest the way.

 Regards.

 Sandip.

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




-- 
Regards,
Rashad
___
grass-dev mailing list
grass-dev@lists.osgeo.org
http://lists.osgeo.org/mailman/listinfo/grass-dev

Re: [GRASS-dev] GRASS OpenCV

2011-12-18 Thread Mohammed Rashad
On Sat, Dec 17, 2011 at 9:31 AM, Hamish hamis...@yahoo.com wrote:

  here is my make command
 
  g++ -I/usr/lib/grass64/include grass.o -L/usr/lib/grass64/lib

 and you are trying to build against the installed grass 6.4 not a self-
 built but uninstalled 6.5svn or other version, right?


  libgrass_gis is there but still error/home/rashad/grass.cpp:5:
  undefined reference to `G__gisinit(char const*, char const*)'


 Hamish wrote:
   how does the Makefile look?

 ?

   maybe add the grass lib dir to your /etc/ld.so.conf file, then
   as root run ldconfig. then the grass libs will be in the library
   search path.

 please try that.

 as root:

 echo /usr/lib/grass64/lib  /etc/ld.so.conf
 ldconfig

 Hi Hamish
I tried that but no luck :(



 Hamish




-- 
Regards,
Rashad
___
grass-dev mailing list
grass-dev@lists.osgeo.org
http://lists.osgeo.org/mailman/listinfo/grass-dev

Re: [GRASS-dev] GRASS OpenCV

2011-12-18 Thread Mohammed Rashad
On Sun, Dec 18, 2011 at 9:13 PM, Martin Landa landa.mar...@gmail.comwrote:

 2011/12/18 Mohammed Rashad mohammedrasha...@gmail.com:
  echo /usr/lib/grass64/lib  /etc/ld.so.conf
  ldconfig
 
  Hi Hamish
  I tried that but no luck :(

 well, and are really GRASS libraries installed in `usr/lib/grass64` ? ;-)


yes martin. I also installed grass 6.4.2 from source checkout


 Martin

 --
 Martin Landa landa.martin gmail.com * http://geo.fsv.cvut.cz/~landa




-- 
Regards,
Rashad
___
grass-dev mailing list
grass-dev@lists.osgeo.org
http://lists.osgeo.org/mailman/listinfo/grass-dev

Re: [GRASS-dev] GRASS OpenCV

2011-12-18 Thread Mohammed Rashad
On Mon, Dec 19, 2011 at 12:16 AM, Markus Metz 
markus.metz.gisw...@googlemail.com wrote:

 On Sun, Dec 18, 2011 at 6:13 PM, Mohammed Rashad
 mohammedrasha...@gmail.com wrote:
 
 
  On Sun, Dec 18, 2011 at 9:13 PM, Martin Landa landa.mar...@gmail.com
  wrote:
 
  2011/12/18 Mohammed Rashad mohammedrasha...@gmail.com:
   echo /usr/lib/grass64/lib  /etc/ld.so.conf
   ldconfig
  
   Hi Hamish
   I tried that but no luck :(
 
  well, and are really GRASS libraries installed in `usr/lib/grass64` ?
 ;-)
 
 
  yes martin. I also installed grass 6.4.2 from source checkout

 That was not Martin's question. Martin asked if the GRASS libraries
 are really installed in `usr/lib/grass64`. By default, after `make
 install`, libraries are installed in `$prefix/grass-6.4.2svn/lib`,
 prefix would be `usr/local`on default. Please check again the
 directory `$prefix/grass-6.4.2svn/lib`, optionally replacing $prefix
 with your choice of prefix.


I installed grass from source it is installed on /usr/local/.grass-6.4.2svn

i also installed from lucid repos it is installed on /usr/lib/grass64


so there are two installations. I also tried to link with each sepreately
and add one by one to /etc/ld.so.cinbf
and do ldconfig

but still error

As my title indicates there is one more question GRASS  OpenCV. Is there
any need for it. If yes please tell me.

-- 
Regards,
Rashad
___
grass-dev mailing list
grass-dev@lists.osgeo.org
http://lists.osgeo.org/mailman/listinfo/grass-dev

[GRASS-dev] undefined reference to `G__gisinit(char const*, char const*)'

2011-12-16 Thread Mohammed Rashad
here is my make command

g++ -I/usr/lib/grass64/include grass.o -L/usr/lib/grass64/lib  -lgrass_I
-lgrass_Iortho -lgrass_arraystats -lgrass_bitmap -lgrass_btree
-lgrass_cairodriver -lgrass_cdhc -lgrass_cluster -lgrass_datetime
-lgrass_dbmibase -lgrass_dbmiclient -lgrass_dbmidriver -lgrass_dbstubs
-lgrass_dgl -lgrass_dig2 -lgrass_display -lgrass_driver -lgrass_dspf
-lgrass_edit -lgrass_form -lgrass_g3d -*lgrass_gis* -lgrass_gmath
-lgrass_gpde -lgrass_gproj -lgrass_interpdata -lgrass_interpfl
-lgrass_iostream -lgrass_ismap -lgrass_lidar -lgrass_linkm -lgrass_lrs
-lgrass_manage -lgrass_nviz -lgrass_ogsf -lgrass_pngdriver -lgrass_psdriver
-lgrass_qtree -lgrass_raster -lgrass_rli -lgrass_rowio -lgrass_rtree
-lgrass_segment -lgrass_shape -lgrass_sim -lgrass_sites -lgrass_sqlp
-lgrass_stats -lgrass_symb -lgrass_trans -lgrass_vask -lgrass_vect
-lgrass_vedit   -o wgrass


libgrass_gis is there but still error
/home/rashad/grass.cpp:5: undefined reference to `G__gisinit(char const*,
char const*)'

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

[GRASS-dev] GRASS OpenCV

2011-12-16 Thread Mohammed Rashad
Hi All,

Is there any addon or python modules which do OpenCV work using GRASS data.?
If not I would like to add these functions to OpenCV. I just started my
work but stuck in the intial statement G__gisinit(char*)
I already posted a mail regarding it. But no reply because of busy
schedules of all grass developers.
Now I just want to know is there any existing thing otherwise it will be
waste of time,energy and money.
I am thinking of a module which read pass GRASS data to and from OpenCV.
of course i will add some modules g.*/r.*/v.* to grass for end users but
the core of my target is to pass grass data to openCV

My current progress
built grass from source
built OpenCV
done implementing small OpenCV algorithms to get a better understanding.

Next Page:
need some input from grass developers



Any comments or suggestions are always welcomed :)

-- 
Regards,
Rashad
___
grass-dev mailing list
grass-dev@lists.osgeo.org
http://lists.osgeo.org/mailman/listinfo/grass-dev

Re: [GRASS-dev] GRASS OpenCV

2011-12-16 Thread Mohammed Rashad
here is my make command

g++ -I/usr/lib/grass64/include grass.o -L/usr/lib/grass64/lib  -lgrass_I
-lgrass_Iortho -lgrass_arraystats -lgrass_bitmap -lgrass_btree
-lgrass_cairodriver -lgrass_cdhc -lgrass_cluster -lgrass_datetime
-lgrass_dbmibase -lgrass_dbmiclient -lgrass_dbmidriver -lgrass_dbstubs
-lgrass_dgl -lgrass_dig2 -lgrass_display -lgrass_driver -lgrass_dspf
-lgrass_edit -lgrass_form -lgrass_g3d -*lgrass_gis* -lgrass_gmath
-lgrass_gpde -lgrass_gproj -lgrass_interpdata -lgrass_interpfl
-lgrass_iostream -lgrass_ismap -lgrass_lidar -lgrass_linkm -lgrass_lrs
-lgrass_manage -lgrass_nviz -lgrass_ogsf -lgrass_pngdriver -lgrass_psdriver
-lgrass_qtree -lgrass_raster -lgrass_rli -lgrass_rowio -lgrass_rtree
-lgrass_segment -lgrass_shape -lgrass_sim -lgrass_sites -lgrass_sqlp
-lgrass_stats -lgrass_symb -lgrass_trans -lgrass_vask -lgrass_vect
-lgrass_vedit   -o wgrass


libgrass_gis is there but still error
/home/rashad/grass.cpp:5: undefined reference to `G__gisinit(char const*,
char const*)'

On Sat, Dec 17, 2011 at 6:51 AM, Hamish hamis...@yahoo.com wrote:

 Mohammed Rashad wrote:
  I just started my work but stuck in the intial statement
  G__gisinit(char*)

 how does the Makefile look?

 are $(GISLIB) and $(GISDEP) present? i.e. does you module's Makefile
 closely
 resemble other similar modules?

 if building from outside of the main source tree, do you have MODULE_TOPDIR
 pointed to where the source tree is?

 maybe add the grass lib dir to your /etc/ld.so.conf file, then as root run
 ldconfig. then the grass libs will be in the library search path.
 but be careful with that if you have multiple grass versions installed,
 if so you might want to export the LD_LIBRARY_PATH= environment variable
 at run time to add the lib dir into the library search path temporarily.


 Hamish




-- 
Regards,
Rashad
___
grass-dev mailing list
grass-dev@lists.osgeo.org
http://lists.osgeo.org/mailman/listinfo/grass-dev

Re: [GRASS-dev] needed grass libraries?

2011-12-14 Thread Mohammed Rashad
here is my make command

c++ -O2  -w -g -DUSE_OGR -DUSE_PROJ  -I/usr/lib/grass64/include grass.o
-L/usr/lib/grass64/lib  -lgrass_I -lgrass_Iortho -lgrass_arraystats
-lgrass_bitmap -lgrass_btree -lgrass_cairodriver -lgrass_cdhc
-lgrass_cluster -lgrass_datetime -lgrass_dbmibase -lgrass_dbmiclient
-lgrass_dbmidriver -lgrass_dbstubs -lgrass_dgl -lgrass_dig2 -lgrass_display
-lgrass_driver -lgrass_dspf -lgrass_edit -lgrass_form -lgrass_g3d -*
lgrass_gis* -lgrass_gmath -lgrass_gpde -lgrass_gproj -lgrass_interpdata
-lgrass_interpfl -lgrass_iostream -lgrass_ismap -lgrass_lidar -lgrass_linkm
-lgrass_lrs -lgrass_manage -lgrass_nviz -lgrass_ogsf -lgrass_pngdriver
-lgrass_psdriver -lgrass_qtree -lgrass_raster -lgrass_rli -lgrass_rowio
-lgrass_rtree -lgrass_segment -lgrass_shape -lgrass_sim -lgrass_sites
-lgrass_sqlp -lgrass_stats -lgrass_symb -lgrass_trans -lgrass_vask
-lgrass_vect -lgrass_vedit   -o wgrass


libgrass_gis is there but still error
/home/rashad/grass.cpp:5: undefined reference to `G__gisinit(char const*,
char const*)'


On Fri, Dec 9, 2011 at 3:34 PM, Martin Landa landa.mar...@gmail.com wrote:

 2011/12/9 Mohammed Rashad mohammedrasha...@gmail.com:
  WGrassMenuForm.cpp:(.text+0x2fb9): undefined reference to
 `G__gisinit(char
  const*, char const*)'
  which grass library need to be linked

 take a look at API manual, it's libgis.

 Martin

 --
 Martin Landa landa.martin gmail.com * http://geo.fsv.cvut.cz/~landa




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

[GRASS-dev] grass module execution

2011-12-14 Thread Mohammed Rashad
Hi All,

How to run grass module from C++  code.I am coding a small application
using C++ I want to call grass commands from the application (g.gisenv)

this can be done in different ways
1. python using gcmd.RunCommand(..)
2. setup grass environment and execute from c++ code using system command
system(g.gisev);

I dont want to call in these ways.

My requirement is different
I will link all grass libraries with my application.
init grass using g_gisinit(...)

specify a program {g.gisenv}
give the attributes required to the application
execute the function without spawning a new process [ I think its not
possible :(   ]
parse the result.
Display results to user


Any pointers will be much appreciated..


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

[GRASS-dev] grass command percentage

2011-12-13 Thread Mohammed Rashad
Hi All,
I am using C code of grass to execute a grass command
start_command()
how to get percentage of process when running a grass command
I dont want to use python.I use C++. I am doing it on web for webGRASS

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

[GRASS-dev] geotiff to wms

2011-12-08 Thread Mohammed Rashad
All,
Is there any way to show GRASS GIS raster data as a wms layer
anything like r.out.wms ?
i want to visualize data from GRASS GIS on openlayers. openlayers doesnt
support raster maps. So one solution is to convert geotiff or raster data
to wms layer

if GRASS GIS raster can be converted to WMS. Please let me know how to show
geotiff as WMS Layer

-- 
Regards,
   Mohammed Rashad K M
   M.S. (By Research) student
   Lab for Spatial Informatics
   Department of CSE
   International Institute of Information Technology
   Hyderabad, India
___
grass-dev mailing list
grass-dev@lists.osgeo.org
http://lists.osgeo.org/mailman/listinfo/grass-dev

[GRASS-dev] needed grass libraries?

2011-12-08 Thread Mohammed Rashad
WGrassMenuForm.cpp:(.text+0x2fb9): undefined reference to `G__gisinit(char
const*, char const*)'
which grass library need to be linked

-- 
Regards,
   Mohammed Rashad K M
___
grass-dev mailing list
grass-dev@lists.osgeo.org
http://lists.osgeo.org/mailman/listinfo/grass-dev

Re: [GRASS-dev] visualize GRASS vector/raster on web

2011-11-29 Thread Mohammed Rashad
On Tue, Nov 29, 2011 at 9:52 PM, Luca Delucchi lucadel...@gmail.com wrote:

 2011/11/29 Mohammed Rashad mohammedrasha...@gmail.com:
 
  how to visualize vector/raster from directly from GRASS database?
  I am building webGRASS. for that I linked GRASS GIS all libraries to my
  application without any wrappers..

 I don't understand why you are spending so much time in this topic...
 I suggest you to work simply with OL e WPS [0]

because ultimate goal of webGRASS whcih will be as powerful as GRASS GIS
but on web
using pyWPS we can do grass commands in a different way and it is WPS.

I want worlds first webGIS which can do all kind of analysis on web

future webGRASS should act like a web UI like wxGUI.

with webGRASS you only need to carry grass data directory not the whole
webGRASS
In a company if you want to install grass you need to setup a postgis or
WMS layer and share it but you can do GRASS analysis on indivudual system
and some one need to upload it on server for others to use.


See this scenario.
For India or some other country can install webGRASS on a central server
and all government agencies can do all work online using webGRASS. like
land inspection checking which types of  agricultural production was going
on in a particular area from their office without going there.

Also a village office can measure the land needed by people for building
their home or company.

Whats wrong if we can do everything under one umbrella webGRASS???

A university can teach GRASS GIS, OpenSource GIS using webGRASS by
installing webGRASS on university website

These all are my goals when I started webGRASS. My ideas can be wrong. If
not it will be a great achivement and people will love to work on GRASS for
teaching, doing analysis within a company etc.. etc...

current way to use GRASS on web is to
use GRASS(analysis) + pyWPS(processing) + OL(rendering)

But remember we cant do all type of analysis using pyWPS (correct me if I
am wrong)... :)

I am thinking a to build a seamless gui which can read grass database
process data show it on web and download it.

In future webGRASS will also be a part of OSGeo :) (just my wish)

Please let me know your comments and suggestions if any

Hope I explained well


  --
  Regards,
 Mohammed Rashad K M
 M.S. (By Research) student
 Lab for Spatial Informatics
 Department of CSE
 International Institute of Information Technology
 Hyderabad, India
 

 my2cents

 [0] http://grass.osgeo.org/wiki/WPS

 --
 cheers
 Luca

 http://gis.cri.fmach.it/delucchi/
 www.lucadelu.org




-- 
Regards,
   Mohammed Rashad K M
   M.S. (By Research) student
   Lab for Spatial Informatics
   Department of CSE
   International Institute of Information Technology
   Hyderabad, India
___
grass-dev mailing list
grass-dev@lists.osgeo.org
http://lists.osgeo.org/mailman/listinfo/grass-dev

[GRASS-dev] Re: [GRASS-GUI] how i can change the watershed analysis technique?

2011-11-15 Thread Mohammed Rashad
IMHO for development it is better to have a Linux or Unix environment. so
that you can compile from source modify code again recompile and follow the
chain. In windows you have msys shell but you need to do a lot to setup an
environment.

so switch to *NIX and come back. please dont start os or distro wars. dont
ask the list to recommend an OS or linux distro. please...

On Tue, Nov 15, 2011 at 12:23 PM, Sandip Maity sandip.stesa...@gmail.comwrote:

 Dear frnd,

 Thanks for your reply.

 But i am using grass 6.5 -wxpython in windows. I cant able to run
 r.watershed.

 Please tell me how can i get grass shell?

 please help me.

 Sandip




 On Mon, Nov 14, 2011 at 7:17 PM, Mohammed Rashad 
 mohammedrasha...@gmail.com wrote:

 you run from grass shell
 r.watershed --interface-description 2 gui.xml
 open gui.xml in an text editor. parse the xml using some xml parsers i
 use pugixml and then create your own gui.
 you can also make a standalone application if you link your application
 with libgrass* libraries

 please see below your required xml output genreated by r.watershed
  ?xml version=1.0 encoding=UTF-8?
 !DOCTYPE task SYSTEM grass-interface.dtd
 task name=r.watershed
 description
 Watershed basin analysis program.
 /description
 keywords
 raster
 /keywords
 parameter name=elevation type=string required=yes multiple=no
 description
 Input map: elevation on which entire analysis is based
 /description
 keydesc
 item order=1name/item
 /keydesc
 gisprompt age=old element=cell prompt=raster /
 guisection
 Input_options
 /guisection
 /parameter
 parameter name=depression type=string required=no multiple=no
 description
 Input map: locations of real depressions
 /description
 keydesc
 item order=1name/item
 /keydesc
 gisprompt age=old element=cell prompt=raster /
 guisection
 Input_options
 /guisection
 /parameter
 parameter name=flow type=string required=no multiple=no
 description
 Input map: amount of overland flow per cell
 /description
 keydesc
 item order=1name/item
 /keydesc
 gisprompt age=old element=cell prompt=raster /
 guisection
 Input_options
 /guisection
 /parameter
 parameter name=disturbed.land type=string required=no
 multiple=no
 description
 Input map or value: percent of disturbed land, for USLE
 /description
 gisprompt age=old element=cell prompt=raster /
 guisection
 Input_options
 /guisection
 /parameter
 parameter name=blocking type=string required=no multiple=no
 description
 Input map: terrain blocking overland surface flow, for USLE
 /description
 keydesc
 item order=1name/item
 /keydesc
 gisprompt age=old element=cell prompt=raster /
 guisection
 Input_options
 /guisection
 /parameter
 parameter name=accumulation type=string required=no multiple=no
 description
 Output map: number of cells that drain through each cell
 /description
 keydesc
 item order=1name/item
 /keydesc
 gisprompt age=new element=cell prompt=raster /
 guisection
 Output_options
 /guisection
 /parameter
 parameter name=drainage type=string required=no multiple=no
 description
 Output map: drainage direction
 /description
 keydesc
 item order=1name/item
 /keydesc
 gisprompt age=new element=cell prompt=raster /
 guisection
 Output_options
 /guisection
 /parameter
 parameter name=basin type=string required=no multiple=no
 description
 Output map: unique label for each watershed basin
 /description
 keydesc
 item order=1name/item
 /keydesc
 gisprompt age=new element=cell prompt=raster /
 guisection
 Output_options
 /guisection
 /parameter
 parameter name=stream type=string required=no multiple=no
 description
 Output map: stream segments
 /description
 keydesc
 item order=1name/item
 /keydesc
 gisprompt age=new element=cell prompt=raster /
 guisection
 Output_options
 /guisection
 /parameter
 parameter name=half.basin type=string required=no multiple=no
 description
 Output map: each half-basin is given a unique value
 /description
 keydesc
 item order=1name/item
 /keydesc
 gisprompt age=new element=cell prompt=raster /
 guisection
 Output_options
 /guisection
 /parameter
 parameter name=visual type=string required=no multiple=no
 description
 Output map: useful for visual display of results
 /description
 keydesc
 item order=1name/item
 /keydesc
 gisprompt age=new element=cell prompt=raster /
 guisection
 Output_options
 /guisection
 /parameter
 parameter name=length.slope type=string required=no multiple=no
 description
 Output map: slope length and steepness (LS) factor for USLE
 /description
 keydesc
 item order=1name/item
 /keydesc
 gisprompt age=new element=cell prompt=raster /
 guisection
 Output_options
 /guisection
 /parameter
 parameter name=slope.steepness type=string required=no
 multiple=no
 description
 Output map: slope steepness (S) factor for USLE
 /description
 keydesc
 item order=1name/item
 /keydesc
 gisprompt age=new element=cell prompt=raster /
 guisection
 Output_options
 /guisection
 /parameter
 parameter name=threshold type=integer required=no multiple=no
 description
 Input value: minimum

[GRASS-dev] Re: [GRASS-GUI] how i can change the watershed analysis technique?

2011-11-14 Thread Mohammed Rashad
 /flag
flag name=4
description
 Allow only horizontal and vertical flow of water
/description
/flag
 flag name=m
label
Enable disk swap memory option: Operation is slow
 /label
description
Only needed if memory requirements exceed available RAM; see manual on how
to calculate memory requirements
 /description
/flag
flag name=a
 label
Use positive flow accumulation even for likely underestimates
 /label
description
See manual for a detailed description of flow accumulation output
 /description
/flag
flag name=overwrite
 description
Allow output files to overwrite existing files
/description
 /flag
flag name=verbose
description
 Verbose module output
/description
/flag
 flag name=quiet
description
Quiet module output
 /description
/flag
/task

On Mon, Nov 14, 2011 at 7:02 PM, Sandip Maity sandip.stesa...@gmail.comwrote:

 Dear frnd,

 I want
 1 to keep input option on required screen.
 2 to keep only minimum size of exterior basis of input option.
 3 to keep first and third parameter of output option.
 All are in first screen( with required screen) .

 please suggest me.

 thanks and regards.

 Sandip.



 On Mon, Nov 14, 2011 at 5:30 PM, Mohammed Rashad 
 mohammedrasha...@gmail.com wrote:

 what are changes you are planing. pleasse be more secific
 and dont be shy to ask on grass-dev


 On Mon, Nov 14, 2011 at 5:27 PM, Sandip Maity 
 sandip.stesa...@gmail.comwrote:


 Dear frnd

 I am planning to change in GUI  for watershed basin analysis.

 Actually the GUI asking to many datas. I want to fixed the parameter to
 make easy to handle.

 please help me.

 thanking for your suggetion and waiting for more suggetion.

 sandip
 On Mon, Nov 14, 2011 at 4:36 PM, Mohammed Rashad 
 mohammedrasha...@gmail.com wrote:

 move to grass-dev ML.
 gui is not very active now a days. and be specific when asking questions
 r.watershed is the module you are looking for...

 folder is raster/r.watershed . Its not gui in python its C code you
 need to familiar with and in my opinion should swich to UNIX-like PC for
 these work and its my own opnion.

 please dont start operating system wars!!!

 gui is gnerated from an xml format .Each grass module have
 interface-description and based on that gui parsers will generate the form
 structure. What changes are you planning to make.?

   On Fri, Nov 11, 2011 at 5:06 PM, Sandip Maity 
 sandip.stesa...@gmail.com wrote:

   Dear sir,

 I want to modify the existing code of watershed analysis.

 Please tell me in which file or folder i should go for changing the
 code?

 I have to change some or modify the form structure.

 Please help me.

 regards.

 Sandip.

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




 --
 Regards,
Mohammed Rashad K M
M.S. (By Research) student
Lab for Spatial Informatics
Department of CSE
International Institute of Information Technology
Hyderabad, India





 --
 Regards,
Mohammed Rashad K M
M.S. (By Research) student
Lab for Spatial Informatics
Department of CSE
International Institute of Information Technology
Hyderabad, India





-- 
Regards,
   Mohammed Rashad K M
   M.S. (By Research) student
   Lab for Spatial Informatics
   Department of CSE
   International Institute of Information Technology
   Hyderabad, India
___
grass-dev mailing list
grass-dev@lists.osgeo.org
http://lists.osgeo.org/mailman/listinfo/grass-dev

[GRASS-dev] create a grass monitor

2011-08-13 Thread Mohammed Rashad
How to create a new monitor in GRASS? I want a OpenLayers monitor for use
with WGRASS
lsi.iiit.ac.in/lsi/wgrass

-- 
Regards,
   Mohammed Rashad K M
   M.S. (By Research) student
   Lab for Spatial Informatics
   Department of CSE
   International Institute of Information Technology
   Hyderabad, India
___
grass-dev mailing list
grass-dev@lists.osgeo.org
http://lists.osgeo.org/mailman/listinfo/grass-dev

[GRASS-dev] grass geostatistics

2011-08-06 Thread Mohammed Rashad
Hi devs,
Does GRASS have any geostatistical tools. HPGL is ahigh performace library
for geostatistics

Simple Kriging (SK)
Ordinary Kriging (OK)
Indicator Kriging (IK)
Local Varying Mean Kriging (LVM Kriging)
Simple CoKriging (Markov Models 1  2)
Sequential Indicator Simulation (SIS)
Correlogram Local Varying Mean SIS (CLVM SIS)
Local Varying Mean SIS (LVM SIS)
Sequential Gaussian Simulation (SGS)

are available in HPGL so let me know the comments and suggeation before
integrating HPGL to GRASS GIS
-- 
Thanks  Regards
Rashad
___
grass-dev mailing list
grass-dev@lists.osgeo.org
http://lists.osgeo.org/mailman/listinfo/grass-dev

[GRASS-dev] where is G_raster_map_type?

2011-07-21 Thread Mohammed Rashad
OS: windows7 x86
grass: grass-7.0.SVN native build
WinGRASS-7.0.SVN-r47191-1-Setup.exe

import os, sys
from grass.lib import gis as grass
from grass.lib import raster as raster
if GISBASE not in os.environ:
print You must be in GRASS GIS to run this program.
sys.exit(1)


grass.G_gisinit('')
data_type = raster.G_raster_map_type('myrast', 'PERMANENT')



error log

data_type = raster.G_raster_map_type('myrast', 'PERMANENT')
AttributeError: `module` object has no attribute `G_raster_map_type`


-- 
Thanks  Regards
Rashad
___
grass-dev mailing list
grass-dev@lists.osgeo.org
http://lists.osgeo.org/mailman/listinfo/grass-dev

[GRASS-dev] WindowsEror: exception: access violation writing 0x0000000

2011-07-21 Thread Mohammed Rashad
OS: windows7 x86
grass: grass-7.0.SVN native build
WinGRASS-7.0.SVN-r47191-1-Setup.exe


import os
import sys
gbase = os.getenv(GISBASE)
pypath = os.path.join(gbase,'etc','gui','wxpython','gui_modules')
sys.path.append(pypath)
pypath = os.path.join(gbase,'etc','python')
sys.path.append(pypath)
import globalvar
grassPath = os.path.join(globalvar.ETCDIR, python)
sys.path.append(grassPath)
from grass.lib import gis as grasslib
from grass.lib import raster as raster

cellhd = grasslib.Cell_head()
if (raster.Rast_get_cellhd('lsat5_1987_20', 'landsat', cellhd))!=0 :
print error1


error log:
 - if (raster.Rast_get_cellhd('lsat5_1987_20', 'landsat', cellhd))!=0 :
WindowsEror: exception: access violation writing 0x000
-- 
Thanks  Regards
Rashad
___
grass-dev mailing list
grass-dev@lists.osgeo.org
http://lists.osgeo.org/mailman/listinfo/grass-dev

[GRASS-dev] G_northing_to_row

2011-07-21 Thread Mohammed Rashad
which name G_northing_to_row() function is renamed and in which library i am
using grass7.0 svn

where can i get old and renamed function names


-- 
Thanks  Regards
Rashad
___
grass-dev mailing list
grass-dev@lists.osgeo.org
http://lists.osgeo.org/mailman/listinfo/grass-dev

[GRASS-dev] grass png output and g.pnmcomp

2011-07-09 Thread Mohammed Rashad
how to generate png output instead of .ppm file in g.pnmcomp

-- 
Thanks  Regards
Rashad
___
grass-dev mailing list
grass-dev@lists.osgeo.org
http://lists.osgeo.org/mailman/listinfo/grass-dev

[GRASS-dev] grass standalone

2011-05-19 Thread Mohammed Rashad
how to run a custom grass viewer outside grass shell
eg
python render.py

but it gives me error
Initializing...
Traceback (most recent call last):
  File grass-qt/render.py, line 1308, in module
image = map.Render(force = True)
  File grass-qt/render.py, line 865, in Render
os.environ[GRASS_REGION] = self.SetRegion(windres)
  File grass-qt/render.py, line 697, in SetRegion
region = self.AdjustRegion()
  File grass-qt/render.py, line 484, in AdjustRegion
mapwidth= abs(self.region[e] - self.region[w])
KeyError: 'e'
Exception AttributeError: 'NoneType' object has no attribute
'GetCmdString' in bound method MapLayer.__del__ of __main__.MapLayer
object at 0xa40f08c ignored
Exception AttributeError: 'NoneType' object has no attribute
'GetCmdString' in bound method MapLayer.__del__ of __main__.MapLayer
object at 0xa3ebfec ignored

-- 
Thanks  Regards
Rashad
___
grass-dev mailing list
grass-dev@lists.osgeo.org
http://lists.osgeo.org/mailman/listinfo/grass-dev

[GRASS-dev] r.li.shannon HowTo

2011-02-27 Thread Mohammed Rashad
which demo data to use for landsacpe structure analysis
r.li.shannon

How to use this module? Which data to use for a demo?
How it works?

-- 
Thanks  Regards
Rashad
___
grass-dev mailing list
grass-dev@lists.osgeo.org
http://lists.osgeo.org/mailman/listinfo/grass-dev

[GRASS-dev] i.ortho and friends python interface

2011-02-27 Thread Mohammed Rashad
Hi,
Can anyone give me a breif description of i.ortho module. what is ortho
rectification. if you can recommend me some books
I plan to improve this module for that I need to know what it does.

So it will be great if someone tell me the working or i.ortho module and
provide me some demo data.
If data is not available then also no problem, I just need to know the
working of i.ortho module before I start building a python interface for the
module
-- 
Thanks  Regards
Rashad
___
grass-dev mailing list
grass-dev@lists.osgeo.org
http://lists.osgeo.org/mailman/listinfo/grass-dev

[GRASS-dev] GRASS based Online ShapeViewer

2011-02-13 Thread Mohammed Rashad
Hi all,
Here is an Online Shapefile Viewer based on GRASS GIS. It can also view the
attribute table of shapefile.

please test it.  The link is here
http://lsi.iiit.ac.in/lsi/shpviewer/

Looking forward your comments, bugs and suggestion. The previous version of
this application uses OGR and have some problems viewing shapefile for a
small area of interest.
So we moved to GRASS GIS so that it will help in adding features such as
analysis tools.
-- 
Thanks  Regards
Rashad
___
grass-dev mailing list
grass-dev@lists.osgeo.org
http://lists.osgeo.org/mailman/listinfo/grass-dev

[GRASS-dev] google maps

2010-12-20 Thread Mohammed Rashad
How can I display google maps in grass gis
Is there any module exists for that?

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

[GRASS-dev] vdigit without any gui

2010-09-30 Thread Mohammed Rashad
Hi all,
Which version of grass has vdigit module independent of wxpython and tcltk.
Does GRASS 5 has this functionality?
If yes how can i install GRASS5. To make a vector digitiser I need a version
of vdigit module written in pure C (means without tcl/tk or wxpython
interface.

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

[GRASS-dev] tcl gui

2010-09-30 Thread Mohammed Rashad
how to debug GRASS tcl scripts. How to insert breakpoints in the file.?

anything like import pdb pdb.set_trace() [like in python].
How can I debug the tcl scripts.

Any help will be greatly appreciated.

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

[GRASS-dev] vdigit

2010-09-29 Thread Mohammed Rashad
Hi all,
How can I use vdigit module(C version) for my custom application built in
top of GRASS?
How to link the vdigit library and use its functions?

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

Re: [GRASS-dev] vdigit

2010-09-29 Thread Mohammed Rashad
Ok. but want to create a new vector map with some points/lines drawn on it.
I dont need the digitizer features for that. the code to put some point on
the shape files is coded inside the source. Is this possible. If yes how?

and thanks for previous post:)

On Wed, Sep 29, 2010 at 3:54 PM, Martin Landa landa.mar...@gmail.comwrote:

 Hi,

 2010/9/29 Mohammed Rashad mohammedrasha...@gmail.com:
  How can I use vdigit module(C version) for my custom application built in
  top of GRASS?
  How to link the vdigit library and use its functions?

 there is no 'vdigit' library. C module v.digit implements it's own
 functions using vector library. Anyway wxGUI digitizer and v.edit uses
 vedit library [1] which has been designed for this purpose.

 Martin

 [1] http://grass.osgeo.org/programming6/Vedit_Library.html

 --
 Martin Landa landa.martin gmail.com * http://gama.fsv.cvut.cz/~landa




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

[GRASS-dev] wxvdigit

2010-09-29 Thread Mohammed Rashad
How can I communicate with wx digitizer ( i mean using the wxdigit.so file)
using a c++ program.
All I need is create an map with one point from a c++ program which is
linked to _grass6_wxvdigit.so located in
/usr/local/grass-6.5.svn/etc/wxpython/vdigit.

How to access the functions of the library using a C++ program run from
grass shell with all variables set. My program renders a map when run from
grass shell. Now I want to add
digitzer;

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

Re: [GRASS-dev] wxvdigit

2010-09-29 Thread Mohammed Rashad
ok. I am building a grass standalone application. As a part of it I need
vector digitizer. My application is written in C++ and cannot use python for
some other reasons.
i saw the code gui/wxpython/vdigit. that are nice c++ classes.
Can I compile then with wxwidgets(C++) library and use it as a vector
digitizer based on wxwidgets.
There are wxwidgets specific code. so i thought of rewriting
wxpython/gui_modules/vdigit.py
and make a vector digitizer .

Is that possible.?

I need help in creating wxvidgit.so file. Will you please tell the steps to
make vedit library..

On Wed, Sep 29, 2010 at 6:46 PM, Martin Landa landa.mar...@gmail.comwrote:

 Hi,

 2010/9/29 Mohammed Rashad mohammedrasha...@gmail.com:
  All I need is create an map with one point from a c++ program which is
  linked to _grass6_wxvdigit.so located in
  /usr/local/grass-6.5.svn/etc/wxpython/vdigit.
  How to access the functions of the library using a C++ program run from
  grass shell with all variables set. My program renders a map when run
 from
  grass shell. Now I want to add

 use vedit library as I suggested (take a look at vector/v.edit and
 gui/wxpython/vdigit for implementation issues). Also note that vector
 digitizer is going to be rewritten from C++ to Python. So don't waste
 your time with gui/wxpython/vdigit component.

 Martin

 --
 Martin Landa landa.martin gmail.com * http://gama.fsv.cvut.cz/~landa




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

[GRASS-dev] Open Streep Map

2010-09-29 Thread Mohammed Rashad
How to use openstreetmap data in GRASS GIS. In QGIS I have OSM plugin which
allows to download, modify and upload of data. data can be editted offline
and save changes back to OSM server. How to do these operation using GRASS
GIS. sorry for cross posting

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

[GRASS-dev] tcltk interface

2010-09-29 Thread Mohammed Rashad
Does tcltk uses xterm for display? I mean to use tcltk v.digit the
background map is rendered on xterm.

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

[GRASS-dev] GRASS dependecies

2010-09-25 Thread Mohammed Rashad
Hi all,
 I am trying to make an application based on grass gis. How to find
dependencies of GRASS?

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

[GRASS-dev] grass standalone apps

2010-09-22 Thread Mohammed Rashad
Hi all,

How to use grass library (only vector digitize) without installing grass.? I
need to make an application that digitize a scanned map. Can I use grass's
vector digitizer library in my application and do digitize of map and store
vector data in GRASS's vector data format. I know I can do this using GRASS.
But I need to make a standalone application which does only digitization of
a map and create a new vector file and store t in GRASS Database format
without installing GRASS

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

[GRASS-dev] swig

2010-09-21 Thread Mohammed Rashad
Hi all,
sorry for off-topic. kindly forgive me
I would like to make a python gui toolkit based on FOX C++ Gui toolkit. I
had some basic knowledge in swig based on tutorials given in the
swig.org homepage.
But my knowledge is not enough to make swig files for a whole GUI toolkit.

So anyone please give me some links on making swig interface for python.
Is there any good books for the making of swig interface. Treat me as a
newbie to swig.

Is there any users who develop swig interface for python based on GRASS
C/C++ library?

All I need is good start on making swig interfaces


Any help will be greatly appreciated.

Thanks in advance.

-- 
Rashad


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

[GRASS-dev] Re: [GRASS-user] wx.class

2010-09-10 Thread Mohammed Rashad
Fixed for grass6.4.0RC6
please update svn
http://svn.osgeo.org/grass/grass-addons/gui/wxpython/wx.class/wx.class.py
and download wx.class again
and try it

If any problem persists Please feel free to mail me.

On Fri, Sep 10, 2010 at 10:44 AM, Mohammed Rashad 
mohammedrasha...@gmail.com wrote:

 Fixed for grass6.4.0RC6
 please update svn
 http://svn.osgeo.org/grass/grass-addons/gui/wxpython/wx.class/wx.class.py
 and download wx.class again
 and try it

 If any problem persists Please feel free to mail me. I have no disturbances
 and happy to help you.
 I tested the wx.class on Ubunbtu 10.04 LTS and grass6.4.9RC6

 ThankYou


 On Thu, Sep 9, 2010 at 9:40 PM, Leonardo Hardtke leohard...@gmail.comwrote:

  Hi,
 Ok, it was my fault. I was runing it with ./wx.class instead of python
 wx.class
 but now...

 (nc_spm_08):~  python wx.class.py
 Traceback (most recent call last):
   File wx.class.py, line 60, in module
 from mapdisp_window import BufferedWindow
 ImportError: No module named mapdisp_window

 Am I missing something again?
 I'm running an Ubuntu 10.04 with grass 6.4.rc6

 Bests,
 Leonardo




 On 09/09/2010 12:42 AM, Mohammed Rashad wrote:

 Leonardo Hardtk,
 Plesase see the README.txt included with wx.class

 http://trac.osgeo.org/grass/browser/grass-addons/gui/wxpython/wx.class/README.txt

 On Thu, Sep 9, 2010 at 3:48 AM, Leonardo Hardtke leohard...@gmail.comwrote:

 Hi,
 I tried to use it, but

 GRASS 6.4.0RC6 (Spearfish):~  ./wx.class.py
 ./wx.class.py: line 19: !
 @package wx.class.py

 @brief Interface implementation of i.class module without Xterm.
 Many thanks to Markus Neteler for his help which allowed me to
 know about i.class and its usage.
 Classes:
 - IClass
 - BufferedWindow2
 - IClassApp


 (C) 2006-2010 by the GRASS Development Team
 This program is free software under the GNU General Public
 License (=v2). Read the file COPYING that comes with GRASS
 for details.

 @author Mohammed Rashad K.M rashadkm [at] gmail [dot] com
 : command not found
 import: unable to grab mouse `': Resource temporarily unavailable @
 xwindow.c/XSelectWindow/8993.
 import: unable to grab mouse `': Resource temporarily unavailable @
 xwindow.c/XSelectWindow/8993.
 import: unable to grab mouse `': Resource temporarily unavailable @
 xwindow.c/XSelectWindow/8993.
 import: unable to grab mouse `': Resource temporarily unavailable @
 xwindow.c/XSelectWindow/8993.
 ./wx.class.py: line 28: syntax error near unexpected token `('
 ./wx.class.py: line 28: `gbase = os.getenv(GISBASE) '

 any idea?
 Leonardo A. Hardtke


 On 09/08/2010 06:34 PM, Mohammed Rashad wrote:


 Hi all,

   I had just created a wx version of i.class module which generates
 spectral signatures for an image by allowing the user to outline regions of
 interest. The resulting signature file can be used as input for i.maxlik or
 as a seed signature file for i.cluster.

  Actual i.class module requires Xterm and work only in systems having
 Xserver installed. I created python version of i.class which works on all
 platform. Now windows users can use i.class module.

  Currently development is in beta stage. wx.class is tested and works
 only for NC dataset available from grassbook.org site.
 It uses wxpython paintDC to draw histograms which must be changed to use
 python-matplotlib for drawing smooth histograms as the output needed to be.

  I dont want to add a new dependency to grass as other developers but I
 am forced to do :(

  current wx.class doesn't need any other dependencies. The needs some
 cleanup but as I am busy with some other works related to GRASS I don't have
 much time to spend on cleaning up the code. But within a month or to you can
 have the fully functional wx.class.

  Now I am hosting to GRASS-Addons repo because the code needs
 testing...(although needs some cleanup)

  A README is included with source which shows how to use the module. But
 wx.class is made to be user-friendly.


  Any comments or suggestions are really welcomed :)


  --
 Rashad


 ___
 grass-user mailing 
 listgrass-u...@lists.osgeo.orghttp://lists.osgeo.org/mailman/listinfo/grass-user



 ___
 grass-user mailing list
 grass-u...@lists.osgeo.org
 http://lists.osgeo.org/mailman/listinfo/grass-user




 --
 Rashad





 --
 Rashad




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

[GRASS-dev] wx.class

2010-09-08 Thread Mohammed Rashad
Hi all,

 I had just created a wx version of i.class module which generates
spectral signatures for an image by allowing the user to outline regions of
interest. The resulting signature file can be used as input for i.maxlik or
as a seed signature file for i.cluster.

Actual i.class module requires Xterm and work only in systems having Xserver
installed. I created python version of i.class which works on all platform.
Now windows users can use i.class module.

Currently development is in beta stage. wx.class is tested and works only
for NC dataset available from grassbook.org site.
It uses wxpython paintDC to draw histograms which must be changed to use
python-matplotlib for drawing smooth histograms as the output needed to be.

I dont want to add a new dependency to grass as other developers but I am
forced to do :(

current wx.class doesn't need any other dependencies. The needs some cleanup
but as I am busy with some other works related to GRASS I don't have much
time to spend on cleaning up the code. But within a month or to you can have
the fully functional wx.class.

Now I am hosting to GRASS-Addons repo because the code needs
testing...(although needs some cleanup)

A README is included with source which shows how to use the module. But
wx.class is made to be user-friendly.


Any comments or suggestions are really welcomed :)


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

[GRASS-dev] wx.class

2010-08-01 Thread Mohammed Rashad

I had created a wx version of i.class module. Even though coding is 
incomplete I am getting partial outputs which I am posting in this mail.
I will only upload the code after completed fully. Now I am stuck with some 
problems and I am sending this mail along with a screen shot of my partial 
output in the belief that any of the grass developers can help me. 


My problem is the histograms drawn by i.class module is different from those 
drawn by wx.class. Anyone please verify this screen shot.

Do I need to use any library such as matplotlib to draw historams for wx.class
AFAIK I need a python library for drawing charts(histograms)


Here is my screen shot of my wx.class
http://www.flickr.com/photos/43544...@n04/4848941098/

 --
Rashad



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

[GRASS-dev] c++ and python

2010-07-31 Thread Mohammed Rashad

I had a python list which holds 3 integer value. 
self.buffer[0] = int array ( c++ array)
now i need to read self.buffer[0][0] to read the first element of array. But 
when i used :- print self.buffer[0][0] 

I got this error:

TypeError: 'PySwigObject' object is unsubscriptable


How to read that c++ array as a python list?

 --
Rashad



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

[GRASS-dev] grass and python

2010-07-31 Thread Mohammed Rashad
my code is this:
inrast = []
inrast = grass.G_allocate_cell_buf()
grass.G_get_raster_row(infd, inrast[0], 0, self.data_type) 

and print inrast[0] gives me
Swig Object of type 'int *' at 0x972d560
inrast is a list of integer arrays
how can i access each element of inrast[0]
What  i need to read element using inrast[0][0], inrast[0][1], 
inrast[0][2].  etc..
Is this possible. If yes what should I do to achieve this ? 


 --
Rashad



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

[GRASS-dev] python read raster cell

2010-07-31 Thread Mohammed Rashad
my code is this:
inrast = []
inrast = grass.G_allocate_cell_buf()
grass.G_get_raster_row(infd,  inrast[0], 0, self.data_type) 

and print inrast[0] gives me
Swig  Object of type 'int *' at 0x972d560
inrast is a list of integer  arrays
how can i access each element of inrast[0]
What  i need to  read element using inrast[0][0], inrast[0][1], 
inrast[0][2].  etc..
Is  this possible. If yes what should I do to achieve this ?

Do I need to write a swig interface if inrast[0] is swig Object of type int* 
and 
inrast[0][0] is of type int?

 --
Rashad



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

[GRASS-dev] python + grass (raster map)

2010-07-29 Thread Mohammed Rashad
How to do these using python in grass.

1. How to open the raster file name in mapset for reading and store a  
nonnegative file descriptor to fd?

2. How to read the specified row from the raster file open on  file descriptor 
fdinto  the cell buffer?--
Rashad



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

[GRASS-dev] python grass.py

2010-07-29 Thread Mohammed Rashad
How to use a function G_get_map_row_nomask = _grass.G_get_map_row_nomask 
defined 
in /usr/local/grass-6.5.svn/etc/python/grass/lib/grass.py
using python

 --
Rashad



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

[GRASS-dev] python read raster row

2010-07-29 Thread Mohammed Rashad

How to read the specified row from the opened raster file into  the cell buffer 
using python?

--
Rashad



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

[GRASS-dev] some additions

2010-07-20 Thread Mohammed Rashad
I need to add a line in layertree.py which is in gui_modules folder of grass
what I need to add is self.frame.Refresh() on reorderlayers function of 
layertee.py.
How can i make this addition? Can i submit a patch for the original file. But I 
dont know how to submit the changes and to whom I send the patches

 --
Rashad



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

[GRASS-dev] i.class

2010-07-19 Thread Mohammed Rashad
Which sample dataset should I use to work with i.class module?

 --
Rashad



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

[GRASS-dev] map as image

2010-07-19 Thread Mohammed Rashad
How to get a raster/vector or list of layers from a Map Object as a single 
image 
file ?

 --
Rashad



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

[GRASS-dev] convert to utm projection

2010-07-08 Thread Mohammed Rashad
How to convert a map in lat/long projection to UTM projection using grass gis?

 --
Rashad



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

[GRASS-dev] v.net.path

2010-07-08 Thread Mohammed Rashad
does v.net.path not work for lat/long location. Do I need to convert the map 
into other location for using v.net.path

 --
Rashad



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

[GRASS-dev] grass65 installation error

2010-07-06 Thread Mohammed Rashad


 c1plus: warning: command line option -Wstrict-prototypes is valid for 
Ada/C/ObjC but not for C++
In file included from /usr/include/python2.6/Python.h:8,
 from nviz.h:28,
 from change_view.cpp:15:
/usr/include/python2.6/pyconfig.h:1031:1: warning: _POSIX_C_SOURCE redefined
In file included from /usr/include/assert.h:37,
 from /usr/include/wx-2.8/wx/debug.h:18,
 from /usr/include/wx-2.8/wx/defs.h:521,
 from /usr/include/wx-2.8/wx/wxprec.h:13,
 from nviz.h:5,
 from change_view.cpp:15:
/usr/include/features.h:158:1: warning: this is the location of the previous 
definition
In file included from /usr/include/python2.6/Python.h:8,
 from nviz.h:28,
 from change_view.cpp:15:
/usr/include/python2.6/pyconfig.h:1040:1: warning: _XOPEN_SOURCE redefined
In file included from /usr/include/assert.h:37,
 from /usr/include/wx-2.8/wx/debug.h:18,
 from /usr/include/wx-2.8/wx/defs.h:521,
 from /usr/include/wx-2.8/wx/wxprec.h:13,
 from nviz.h:5,
 from change_view.cpp:15:
/usr/include/features.h:160:1: warning: this is the location of the previous 
definition
change_view.cpp: In member function ‘std::vectordouble, std::allocatordouble 
 Nviz::SetViewDefault()’:
change_view.cpp:56: error: cannot convert ‘float*’ to ‘double*’ for argument 
‘1’ to ‘int Nviz_get_exag_height(double*, double*, double*)’
change_view.cpp: In member function ‘int Nviz::SetView(float, float, float, 
float, float)’:
change_view.cpp:81: error: cannot convert ‘nv_data*’ to ‘double’ for argument 
‘1’ to ‘int Nviz_set_viewpoint_height(double)’
change_view.cpp:83: error: cannot convert ‘nv_data*’ to ‘double’ for argument 
‘1’ to ‘int Nviz_set_viewpoint_position(double, double)’
change_view.cpp:85: error: invalid conversion from ‘nv_data*’ to ‘int’
/home/rashad/grass6_devel/dist.i686-pc-linux-gnu/include/grass/nviz.h:134: 
error: too many arguments to function ‘int Nviz_set_viewpoint_twist(int)’
change_view.cpp:85: error: at this point in file
change_view.cpp:87: error: invalid conversion from ‘nv_data*’ to ‘int’
/home/rashad/grass6_devel/dist.i686-pc-linux-gnu/include/grass/nviz.h:133: 
error: too many arguments to function ‘int Nviz_set_viewpoint_persp(int)’
change_view.cpp:87: error: at this point in file
error: command 'gcc' failed with exit status 1
make: *** [OBJ.i686-pc-linux-gnu/_grass6_wxnviz.so] Error 1


--
Rashad



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

[GRASS-dev] Fw: digitize toolbar error

2010-06-20 Thread Mohammed Rashad


 --
Rashad



- Forwarded Message 
From: Mohammed Rashad rasha...@yahoo.com
To: grass-dev@lists.osgeo.org
Sent: Thu, June 17, 2010 8:53:22 PM
Subject: digitize toolbar error


I already send a mail regarding digitization tool error and didnt recieve any 
response
so I am sending this mail again.

When selecting digitize from mapdisplay window toolbars combobox
and select a new vector map and given a name for newVectorMap
I am getting this error

Unable to initialize display driver of vector digitizer. See 'Command output' 
for details.

Reason: message=_(Unable to initialize display driver of vector 

Traceback (most recent call last):
  File /usr/local/grass-6.5.svn/etc/wxpython/gui_modules/toolbars.py, line 
1130, in StartEditing
message=_(Unable to initialize display driver of vector 
DigitError: unprintable DigitError object


what i am missing.

 --
Rashad


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

[GRASS-dev] wx.net.path

2010-06-19 Thread Mohammed Rashad


 Hi all,
I had created an interface for v.net.path currently works 
with only spearfish data . but soon will be changed to use any map after 
getting response from grass-dev ML.
http://trac.osgeo.org/grass/browser/grass-addons/gui/wxpython/wx.path

Any comments and suggestion are always welcome.

Thankyou--
Rashad



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

[GRASS-dev] digitize toolbar error

2010-06-17 Thread Mohammed Rashad
I already send a mail regarding digitization tool error and didnt recieve any 
response
so I am sending this mail again.

When selecting digitize from mapdisplay window toolbars combobox
and select a new vector map and given a name for newVectorMap
I am getting this error

Unable to initialize display driver of vector digitizer. See 'Command output' 
for details.

Reason: message=_(Unable to initialize display driver of vector 

Traceback (most recent call last):
  File /usr/local/grass-6.5.svn/etc/wxpython/gui_modules/toolbars.py, line 
1130, in StartEditing
message=_(Unable to initialize display driver of vector 
DigitError: unprintable DigitError object


what i am missing.

 --
Rashad



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

[GRASS-dev] digitize error

2010-06-16 Thread Mohammed Rashad
First I select add vector from menu
and selection digitize from toolbar
when selecting map from combobox, the following error is displayed.

Unable to initialize display driver of vector digitizer. See 'Command output' 
for details.

Reason: message=_(Unable to initialize display driver of vector 

Traceback (most recent call last):
  File /usr/local/grass-6.5.svn/etc/wxpython/gui_modules/toolbars.py, line 
1130, in StartEditing
message=_(Unable to initialize display driver of vector 
DigitError: unprintable DigitError object

 
I think problem is

from gui_modules.toolbars.py
Line:1128
try:
if not self.parent.MapWindow.CheckPseudoDC():

and gui_modules.mapdisp_window.py
self.pdc.SetBackground(wx.Brush(self.GetBackgroundColour()))
Line :277
argument 2 expected of type wx.Brush


--
Rashad



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

[GRASS-dev] Fw: digitize error

2010-06-16 Thread Mohammed Rashad


 Traceback (most recent call last):
  File /home/rashad/data_catalog/mapdisplay.py, line 388, in CheckPseudoDC
self.pdc.SetBackground(b)
  File /usr/local/grass-6.5.svn/etc/wxpython/vdigit/grass6_wxvdigit.py, line 
384, in SetBackground
def SetBackground(self, *args): return 
_grass6_wxvdigit.PseudoDC_SetBackground(self, *args)
TypeError: in method 'PseudoDC_SetBackground', argument 2 of type 'wxBrush 
const '

--
Rashad



- Forwarded Message 
From: Mohammed Rashad rasha...@yahoo.com
To: grass-dev@lists.osgeo.org
Sent: Wed, June 16, 2010 1:23:52 PM
Subject: digitize error


First I select add vector from menu
and selection digitize from toolbar
when selecting map from combobox, the following error is displayed.

Unable to initialize display driver of vector digitizer. See 'Command output' 
for details.

Reason: message=_(Unable to initialize display driver of vector 

Traceback (most recent call last):
  File /usr/local/grass-6.5.svn/etc/wxpython/gui_modules/toolbars.py, line 
1130, in StartEditing
message=_(Unable to initialize display driver of vector 
DigitError: unprintable DigitError object

 
I think problem is

from gui_modules.toolbars.py
Line:1128
try:
if not self.parent.MapWindow.CheckPseudoDC():

and gui_modules.mapdisp_window.py
self.pdc.SetBackground(wx.Brush(self.GetBackgroundColour()))
Line :277
argument 2 expected of type wx.Brush


--
Rashad


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

[GRASS-dev] network analysis

2010-06-16 Thread Mohammed Rashad
Is there any module to do network analysis on gui.
when running v.net.path from grass shell open default menuform as for other 
modules.
does wxgui not have such a module to do network analysis graphically.

 --
Rashad



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

[GRASS-dev] c++ gis library

2010-06-14 Thread Mohammed Rashad
Any c++ gis library as geotools using java 

 --
Rashad



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

[GRASS-dev] grass 6_devel installation error

2010-06-14 Thread Mohammed Rashad
I got this installation error when installing grass6.4 and grass6_devel 
http://debian.pastebin.com/nSLBzrxr

 
I dont know what I am missing. If i want to install any additional packages 
please let me know
I am using ubuntu 10.04. I had also installed swig, swig1.3 packages
--
Rashad



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

[GRASS-dev] (no subject)

2010-06-11 Thread Mohammed Rashad


 first of all sorry for this offtopic. I am sending mail to grass-dev ML 
because i can get good response from wxgui developers.
How can I use wxLayoutAlgorithm ?
--
Rashad



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

[GRASS-dev] wxLayoutAlgorithm

2010-06-11 Thread Mohammed Rashad
 first of all sorry for this offtopic. I am sending mail to grass-dev ML 
because i can get good response from wxgui developers.
How can I use wxLayoutAlgorithm ?

 --
Rashad



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

[GRASS-dev] mutiple maps not displaying

2010-06-09 Thread Mohammed Rashad
I am developing an addon called data_catalog. it works fine without any errors. 
in grass 7 multiple maps(raster) are displayed one over the another.
but when switching to grass64 or grass65 only single raster maps  are allowed. 
At first a map is selected and it is displayed on mapwindow on right but when 
selecting another map(raster) the first one disapperars and second is 
displayed. when second map is deselected the first map is displayed again. 

If the problem is with my coding the same error must be viewed in grass7 also!. 
[in grass mutiple raster maps are displayed one over another].
and I am using latest svn update. Is it a problem with grass64 and grass65 
because if problem in my coding then grass7 also generates the error but it is 
not the case here.

--
Rashad



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

[GRASS-dev] r.in.pdf

2010-06-07 Thread Mohammed Rashad
I have a map in pdf format. i want to import the map in grass. reading pdf 
map is available in ArcGIS. so I thought of developing and contributing a 
module to GRASS GIS (r.in.pdf) to read maps in pdf formats directly.I dont know 
where to start. will anyone please provide me any information or links related 
to importing raster maps into grass gis.how a map is processed when we perform 
r.in.* module on the map?. How files are like cellhd,fcell etc are created in 
GRASS?

any help, suggestion or comments are really welcome

-- 
Rashad



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

Re: [GRASS-dev] r.in.pdf

2010-06-07 Thread Mohammed Rashad
what about making a script or program in addon for doing these operation in 
single click or command

 --
Rashad





From: Roger Miller ro...@spinn.net
To: Mohammed Rashad rasha...@yahoo.com
Cc: grass-dev@lists.osgeo.org
Sent: Mon, June 7, 2010 6:51:08 PM
Subject: Re: [GRASS-dev] r.in.pdf

I don't know enough about the pdf format to give you a comprehensive
answer, but I can tell you what I've done in the past.  You will need
more information than is inherent in the pdf; you need to know the
projection of the map and you need the information to fit the map to its
location.

1) use the utility pdftoppm to convert the pdf to a ppm file.  pdftoppm
is not a GRASS utility, but is commonly included in linux distributions
and is probably available for other systems as well.

2) convert the ppm file to a jpeg or tiff file.  This can be done with
the common utilities ppmtojpeg or cjpeg, neither of which is part of
grass.

3) construct a world file for the jpeg or tiff file.  You can find
format information for the world file in Wikipedia.

4) use r.in.gdal to import the file to a location that is correct for
the map's projection.

Usually the difficult part in the process is getting the geographic
information necessary to fill out the world file.  The process can be
easily scripted, but it uses filters (pdftoppm and e.g. ppmtojpeg) that
don't come with GRASS.


Roger

On Mon, 2010-06-07 at 02:21 -0700, Mohammed Rashad wrote:
 I have a map in pdf format. i want to import the map in grass.
 reading pdf map is available in ArcGIS. so I thought of developing and
 contributing a module to GRASS GIS (r.in.pdf) to read maps in pdf
 formats directly.I dont know where to start. will anyone please
 provide me any information or links related to importing raster maps
 into grass gis.how a map is processed when we perform r.in.* module on
 the map?. How files are like cellhd,fcell etc are created in GRASS?
 
 any help, suggestion or comments are really welcome
 
 -- 
 Rashad
 
 
 
 ___
 grass-dev mailing list
 grass-dev@lists.osgeo.org
 http://lists.osgeo.org/mailman/listinfo/grass-dev


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

[GRASS-dev] Re: [GRASS-user] pdf maps

2010-06-06 Thread Mohammed Rashad
What about having a module for reading pdf maps such as r.in.pdf or v.in.pdf


 Regards,
Rashad





From: Glynn Clements gl...@gclements.plus.com
To: Mohammed Rashad rasha...@yahoo.com
Cc: grass-dev@lists.osgeo.org; grass-u...@lists.osgeo.org
Sent: Sun, June 6, 2010 1:03:25 PM
Subject: Re: [GRASS-user] pdf maps


Mohammed Rashad wrote:

 Is there any module in grass to read maps which are in PDF format to raster 
 or vector.
 ArcGIS can read pdf files as raster maps. may i know the module is available 
 in GRASS or GRASS-Addons repo.

Ghostscript can generate SVG output. I don't know of any tool to
import SVG directly, but Inkscape can convert SVG to DXF, which OGR
can handle. However, I don't know how much information will be lost in
the conversion.

Generating rasters is more straightfoward; Ghostscript can generate a
large number of raster formats, many of which can be imported using
e.g. r.in.gdal.

-- 
Glynn Clements gl...@gclements.plus.com



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

[GRASS-dev] Re: [GRASS-user] pdf maps

2010-06-06 Thread Mohammed Rashad


 I dont mean GeoPDF . What I said was a simple PDF file format as like jpeg or 
png which can be read into GRASS GIS as raster mdoule using
some module say r.in.pdf or v.in.pdf. the maps are imported as raster and then 
georeferenced

Regards,
Rashad





From: Hamish hamis...@yahoo.com
To: Mohammed Rashad rasha...@yahoo.com; Glynn Clements 
gl...@gclements.plus.com
Cc: grass-u...@lists.osgeo.org
Sent: Sun, June 6, 2010 2:27:49 PM
Subject: Re: [GRASS-user] pdf maps

[taking this off the -dev list, it doesn't need to be there]

Mohammed Rashad wrote:
 Is there any module in grass to read maps which are in
 PDF format to raster or vector.
 ArcGIS can read pdf files as raster maps. may i know
 the module is available in GRASS or GRASS-Addons repo.

do you mean something included as part of a regular document,
or a GeoPDF,  http://en.wikipedia.org/wiki/GeoPDF

wikipedia says:
...
Meanwhile Adobe made own geospatial extensions in the PDF 1.7 specification, 
which are published as ISO 32000 and used by different GIS vendors for 
geospatial PDF production.


IIUC it is being heavily pushed by some software companies..
AFAIK the scientists haven't been pulled away from their netCDF
and geotiffs at all by this, but various gov't depts have started
to use it as it makes data easily accessible.


the more impartial than me USGS says:
http://store.usgs.gov/locator/about_digital_maps.html

GeoPDF files are not a replacement for native GIS formats. GIS professionals 
still need the original files for editing or updating spatial data. GeoPDF 
files enable non-GIS professionals, field technicians, business executives, and 
their colleagues to utilize rich spatial information. Users can view and print 
GeoPDF files with the free and ubiquitous Adobe Reader ,and they can do more 
with the data using a free plug-in called TerraGo Desktop. Users do not have to 
install this plug-in to view GeoPDF files.

and finally a web search found:
  http://geopdf.blogspot.com/


Hamish


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

[GRASS-dev] pdf maps

2010-06-05 Thread Mohammed Rashad
Is there any module in grass to read maps which are in PDF format to raster or 
vector.
ArcGIS can read pdf files as raster maps. may i know the module is available in 
GRASS or GRASS-Addons repo.

 -
Rashad



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

[GRASS-dev] multiple map display problem

2010-04-22 Thread Mohammed Rashad
Hi All,
I posted a mail regarding slowness in my addon. now i solved it . thanks for
Markus Neteler. Now i have another issue
I am developing an addon for grass. it can view multiple maps; raster/vector
but when two maps are selected on latest grass (6.5 and 6.4) svn only the
last selected map
is displayed.

for latest grass_trunk (grass7.0) it works fine without any error.

anyone help me please

http://trac.osgeo.org/grass/browser/grass-addons/gui/wxpython/data_catalog

http://trac.osgeo.org/grass/browser/grass-addons/gui/wxpython/data_catalogwaiting
for reply from grass developers
-- 
Regards,
Mohammed Rashad K.M
http://keralainfo.web4all.in/
+919496620801
___
grass-dev mailing list
grass-dev@lists.osgeo.org
http://lists.osgeo.org/mailman/listinfo/grass-dev

[GRASS-dev] error in datacatalog

2010-04-20 Thread Mohammed Rashad
I am developing an addon for grass gis. it can view,copy,rename,delete maps
in different location and mapset.
It can now display maps in same location and different mapsets. but when i
change location an error is occured using spearfish data


.

ERROR: Raster map stre...@permanent not found

ERROR: Raster map stre...@permanent not found

ERROR: Raster map stre...@permanent not found

ERROR: Raster map stre...@permanent not found


http://trac.osgeo.org/grass/browser/grass-addons/gui/wxpython/data_catalog


http://trac.osgeo.org/grass/browser/grass-addons/gui/wxpython/data_catalog



-- 
Regards,
Mohammed Rashad K.M
http://keralainfo.web4all.in/
+919496620801
___
grass-dev mailing list
grass-dev@lists.osgeo.org
http://lists.osgeo.org/mailman/listinfo/grass-dev

Re: [GRASS-dev] error in datacatalog

2010-04-20 Thread Mohammed Rashad
a map is displayed on application directory map.png !!! when i switch
between displays the map.png changes
but no map is displayed on mapwindow. strange!!

On Tue, Apr 20, 2010 at 10:58 PM, Markus Neteler nete...@osgeo.org wrote:

 On Tue, Apr 20, 2010 at 3:45 PM, Mohammed Rashad rasha...@gmail.com
 wrote:
  I am developing an addon for grass gis. it can view,copy,rename,delete
 maps
  in different location and mapset.

 Sounds great! The only limitation for cross-location copying/moving of
 maps is that the projection just be the same.

  It can now display maps in same location and different mapsets. but when
 i
  change location an error is occured using spearfish data

  .
 
  ERROR: Raster map stre...@permanent not found

 ...
 
 http://trac.osgeo.org/grass/browser/grass-addons/gui/wxpython/data_catalog

 I am afraid that only debugging statements will tell you where the
 path info gets lost.
 Similar for the slow display problem which you reported.

 Markus




-- 
Regards,
Mohammed Rashad K.M
http://keralainfo.web4all.in/
+919496620801
___
grass-dev mailing list
grass-dev@lists.osgeo.org
http://lists.osgeo.org/mailman/listinfo/grass-dev

[GRASS-dev] slow DataCatalog

2010-04-19 Thread Mohammed Rashad
Hi all,
I had developed an addon for grass called datacatalog to cop, rename.view,
delete map in any mapset or location.
The addon works fine without any errors. there is a problem with
performance. entire app is slow.
can anyone help me please.

DataCatalog:
http://trac.osgeo.org/grass/browser/grass-addons/gui/wxpython/data_catalog


-- 
Regards,
Mohammed Rashad K.M
http://keralainfo.web4all.in/
+919496620801
___
grass-dev mailing list
grass-dev@lists.osgeo.org
http://lists.osgeo.org/mailman/listinfo/grass-dev

[GRASS-dev] error in addon

2010-04-19 Thread Mohammed Rashad
I am developing an addon for grass.
in the program there will be a tree control in which all the maps are
listed; on double clicking the map will be displayed in a window.
But now map is rendered as  .png file in application directory instead of
displaying in the mapwindow.

anyone please help me

waiting for ur reply

my addon is in
http://trac.osgeo.org/grass/browser/grass-addons/gui/wxpython/data_catalog


-- 
Regards,
Mohammed Rashad K.M
http://keralainfo.web4all.in/
+919496620801
___
grass-dev mailing list
grass-dev@lists.osgeo.org
http://lists.osgeo.org/mailman/listinfo/grass-dev

Re: [GRASS-dev] no grass 6 programmers manual in PDF

2010-03-08 Thread Mohammed Rashad






From: Markus Neteler nete...@osgeo.org
To: Mohammed Rashad rasha...@yahoo.com
Cc: GRASS developers list grass-dev@lists.osgeo.org
Sent: Sun, March 7, 2010 5:59:13 PM
Subject: Re: [GRASS-dev] no grass 6 programmers manual in PDF

On Sun, Mar 7, 2010 at 8:23 AM, Mohammed Rashad rasha...@yahoo.com wrote:
 Hi,

 I cannot build grass programmer's manual in PDF format from grass 6.4.0svn.
 only html manual is available in the online site.
 http://download.osgeo.org/grass/grass6_progman_pdf/ .

 anyone please post link/upload the pdf file if you have it.

Currently there is none - the problem is that the build process fails on the
GRASS server and I don't understand why.

Can you successfully build it on your local machine with
make pdfdocs
?

make pdfdocs gives error
~/grass64_release/lib/db/latex$ make
rm -f *.ps *.dvi *.aux *.toc *.idx *.ind *.ilg *.log *.out refman.pdf
pdflatex refman.tex
This is pdfTeXk, Version 3.141592-1.40.3 (Web2C 7.5.6)
 %-line parsing enabled.
entering extended mode
(./refman.tex
LaTeX2e 2005/12/01
Babel v3.8h and hyphenation patterns for english, usenglishmax, dumylang, noh
yphenation, loaded.

make: *** [refman.pdf] Error 1
~/grass64_release/lib/db/latex$ 

if u can build on local system please upload on web



Markus



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

  1   2   >