[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] 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 
Libraryneeds
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] Spectral Unmixing

2012-12-04 Thread Mohammed Rashad
Hi All,

i.spec.unmix has been ported to grass7 and grass6. Its available in addon
repository

[1] https://svn.osgeo.org/grass/grass-addons/grass6/imagery/i.spec.unmix/
[2]https://svn.osgeo.org/grass/grass-addons/grass7/imagery/i.spec.unmix/

Testing and suggestions are most welcomed. A bit of cleanup need to be
done. But that can go after testing



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

Re: [GRASS-dev] Error while compiling grass 7.0 from source

2012-12-04 Thread Mohammed Rashad
try updating pythonpath

*EXPORT
PYTHONPATH=$PYTHONPATH:/usr/lib/python2.7/dist-packages/wx-2.8-gtk2-unicode*

and try `make`

On Tue, Dec 4, 2012 at 8:43 PM, Erick Opiyo  wrote:

> */usr/lib/python2.7/dist-packages/wx-2.8-gtk2-unicode*




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

Re: [GRASS-dev] Spectral Unmixing

2012-12-04 Thread Mohammed Rashad
please see the attache gmath lib path
for lib/gmath/la.c

It will be nice if someone can commit to svn. A very simple patch to ignore
the check for HAVE_G2CH which is no longer maintained in recent linux
versions



On Tue, Dec 4, 2012 at 11:36 PM, Mohammed Rashad  wrote:

> Hi All,
>
> i.spec.unmix has been ported to grass7 and grass6. Its available in addon
> repository
>
> [1] https://svn.osgeo.org/grass/grass-addons/grass6/imagery/i.spec.unmix/
> [2]https://svn.osgeo.org/grass/grass-addons/grass7/imagery/i.spec.unmix/
>
> Testing and suggestions are most welcomed. A bit of cleanup need to be
> done. But that can go after testing
>
>
>
> --
> Regards,
>Rashad
>
>


-- 
Regards,
   Rashad


gmath_la.diff
Description: Binary data
___
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  wrote:

> On Fri, Nov 30, 2012 at 5:26 AM, Mohammed Rashad
>  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] 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-08 Thread Mohammed Rashad
On Sun, Dec 9, 2012 at 1:51 AM, Markus Metz
wrote:

> [answering here because I have worked on some of the affected modules]
>
> On Wed, Dec 5, 2012 at 6:16 PM, Mohammed Rashad
>  wrote:
> >
> >
> >
> > On Fri, Nov 30, 2012 at 7:46 PM, Markus Neteler 
> wrote:
> >>
> >> On Fri, Nov 30, 2012 at 5:26 AM, Mohammed Rashad
> >>  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] 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] 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  wrote:

> On Sun, Dec 16, 2012 at 5:31 AM, Mohammed Rashad
>  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  wrote:

> On Sun, Dec 16, 2012 at 11:52 AM, Mohammed Rashad
>  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

Re: [GRASS-dev] r.digit

2012-12-16 Thread Mohammed Rashad
I am still confused. my problem :)
so clear me up. wxIClass has a digitizer and r.digit is useless?

Does r.digit needs to be ported or not?

If yes, anyone have any suggestions for it




On Sun, Dec 16, 2012 at 7:04 PM, Martin Landa wrote:

> 2012/12/16 Mohammed Rashad :
> >> If yes, in case it may be based on the digitizer in i.class (idea).
>
> http://grasswiki.osgeo.org/wiki/WxIClass
> http://trac.osgeo.org/grass/browser/grass/trunk/gui/wxpython/iclass
>
> Martin
>
> --
> Martin Landa  * 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

[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  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

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  wrote:

> Hi Hamish,
>
> On Mon, Dec 17, 2012 at 4:36 AM, Hamish  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
> 
>
> 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  wrote:

> On 17 December 2012 10:58, Mohammed Rashad 
> 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  wrote:
> >>
> >> Hi Hamish,
> >>
> >> On Mon, Dec 17, 2012 at 4:36 AM, Hamish  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
> >> 
> >>
> >> 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

[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á
wrote:

> On Wed, Dec 19, 2012 at 4:39 PM, Mohammed Rashad
>  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] 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  wrote:

> On Tue, Dec 18, 2012 at 2:34 PM, Mohammed Rashad
>  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  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á  > wrote:
>
>> On Wed, Dec 19, 2012 at 4:39 PM, Mohammed Rashad
>>  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  wrote:

> On Thu, Dec 20, 2012 at 11:18 AM, Mohammed Rashad
>  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] 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

[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
wrote:

> 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" 
> 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

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  wrote:

> On Wed, Dec 26, 2012 at 7:10 AM, Mohammed Rashad
>  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] GRASS GUI

2009-02-17 Thread Mohammed Rashad
Is there any need of changing GRASS GUI to a better one . i thought of
using FOX C++ GUI. Its  cross-platform, easy to maintain and better
look and feel than wxPython .

Is there any issues for making a new GUI.
___
grass-dev mailing list
grass-dev@lists.osgeo.org
http://lists.osgeo.org/mailman/listinfo/grass-dev

[GRASS-dev] grass 7.0 g.region segmentation fault

2009-03-03 Thread Mohammed Rashad
grass70
with new wxgui i selected location wizard on the startup screen

1. select coordinate system
2. choose projection --- ll(lat/long)
3. select ellipsoid  everst56
4. Summary

after the location wizard when i click finish
a message window appears with
`Do you want to set the default region extents and resolution now?`
if yes button was clicked..

another message window displays
`Error invlaid region`
and a window appears



when grass is restarted with new loacation created error apperas with
title: Error in g.region execution
message : Unable to get current geographic extent. Force quiting wxGUI.
Please run manually g.region to fix the problem

when run g.region at command line
as g.region -p
error appers as
segmentation fault

But no problem reports for other types such as xy location, georeferenced
files etc..
___
grass-dev mailing list
grass-dev@lists.osgeo.org
http://lists.osgeo.org/mailman/listinfo/grass-dev

Re: [GRASS-dev] grass 7.0 g.region segmentation fault

2009-03-04 Thread Mohammed Rashad
> > grass70
> > with new wxgui i selected location wizard on the startup screen
> >
> > 1. select coordinate system
> > 2. choose projection --- ll(lat/long)
> > 3. select ellipsoid  everst56
> > 4. Summary
> >
> > after the location wizard when i click finish
> > a message window appears with
> > `Do you want to set the default region extents and resolution now?`
> > if yes button was clicked..
> >
> > another message window displays
> > `Error invlaid region`
> > and a window appears
> >
> >
> >
> > when grass is restarted with new loacation created error apperas with
> > title: Error in g.region execution
> > message : Unable to get current geographic extent. Force quiting wxGUI.
> > Please run manually g.region to fix the problem
> >
> > when run g.region at command line
> > as g.region -p
> > error appers as
> > segmentation fault
> >
> > But no problem reports for other types such as xy location, georeferenced
> > files etc..
>
> - when did you download GRASS? there have been modifications recently
>  in this part
> - which operating system are you using?
> - if Linux, what does
>   ldd `which g.region`
>  say?
>
> Markus
>

I had downloaded grass from svn on February 10 and i am using ubuntu 8.10


GRASS 7.0.svn (loc11):~ > ldd `which g.region`
linux-gate.so.1 =>  (0xb7f5e000)
libgrass_vect.so => /usr/local/grass-7.0.svn/lib/libgrass_vect.so
(0xb7f06000)
libgrass_dbmibase.so =>
/usr/local/grass-7.0.svn/lib/libgrass_dbmibase.so (0xb7ef6000)
libgrass_gis.so => /usr/local/grass-7.0.svn/lib/libgrass_gis.so
(0xb7ea8000)
libgrass_datetime.so =>
/usr/local/grass-7.0.svn/lib/libgrass_datetime.so (0xb7e9f000)
libz.so.1 => /usr/lib/libz.so.1 (0xb7e77000)
libgrass_dbmiclient.so =>
/usr/local/grass-7.0.svn/lib/libgrass_dbmiclient.so (0xb7e6d000)
libgrass_dgl.so => /usr/local/grass-7.0.svn/lib/libgrass_dgl.so
(0xb7e55000)
libgrass_dig2.so => /usr/local/grass-7.0.svn/lib/libgrass_dig2.so
(0xb7e4)
libgrass_rtree.so => /usr/local/grass-7.0.svn/lib/libgrass_rtree.so
(0xb7e39000)
libgrass_linkm.so => /usr/local/grass-7.0.svn/lib/libgrass_linkm.so
(0xb7e36000)
libgdal1.5.0.so.1 => /usr/lib/libgdal1.5.0.so.1 (0xb78c2000)
libgrass_g3d.so => /usr/local/grass-7.0.svn/lib/libgrass_g3d.so
(0xb78a4000)
libgrass_gproj.so => /usr/local/grass-7.0.svn/lib/libgrass_gproj.so
(0xb789a000)
libproj.so.0 => /usr/lib/libproj.so.0 (0xb7868000)
libm.so.6 => /lib/tls/i686/cmov/libm.so.6 (0xb7842000)
libc.so.6 => /lib/tls/i686/cmov/libc.so.6 (0xb76e4000)
libdl.so.2 => /lib/tls/i686/cmov/libdl.so.2 (0xb76e)
libgeos_c.so.1 => /usr/lib/libgeos_c.so.1 (0xb76cf000)
libsqlite3.so.0 => /usr/lib/libsqlite3.so.0 (0xb765f000)
libodbc.so.1 => /usr/lib/libodbc.so.1 (0xb75f8000)
libodbcinst.so.1 => /usr/lib/libodbcinst.so.1 (0xb75eb000)
libexpat.so.1 => /usr/lib/libexpat.so.1 (0xb75c4000)
libxerces-c.so.28 => /usr/lib/libxerces-c.so.28 (0xb720a000)
libjasper.so.1 => /usr/lib/libjasper.so.1 (0xb71bb000)
libhdf5-1.6.6.so.0 => /usr/lib/libhdf5-1.6.6.so.0 (0xb7089000)
libmfhdf.so.4 => /usr/lib/libmfhdf.so.4 (0xb7064000)
libdf.so.4 => /usr/lib/libdf.so.4 (0xb6fbd000)
libogdi.so.3.2 => /usr/lib/libogdi.so.3.2 (0xb6f9f000)
libgif.so.4 => /usr/lib/libgif.so.4 (0xb6f97000)
libjpeg.so.62 => /usr/lib/libjpeg.so.62 (0xb6f76000)
libtiff.so.4 => /usr/lib/libtiff.so.4 (0xb6f21000)
libpng12.so.0 => /usr/lib/libpng12.so.0 (0xb6efb000)
libnetcdf.so.4 => /usr/lib/libnetcdf.so.4 (0xb6eca000)
libpq.so.5 => /usr/lib/libpq.so.5 (0xb6ea9000)
libpthread.so.0 => /lib/tls/i686/cmov/libpthread.so.0 (0xb6e9)
librt.so.1 => /lib/tls/i686/cmov/librt.so.1 (0xb6e86000)
libcurl-gnutls.so.4 => /usr/lib/libcurl-gnutls.so.4 (0xb6e4b000)
libmysqlclient.so.15 => /usr/lib/libmysqlclient.so.15 (0xb6c68000)
libstdc++.so.6 => /usr/lib/libstdc++.so.6 (0xb6b79000)
libgcc_s.so.1 => /lib/libgcc_s.so.1 (0xb6b6a000)
/lib/ld-linux.so.2 (0xb7f44000)
libgeos-3.0.0.so => /usr/lib/libgeos-3.0.0.so (0xb6a3f000)
libltdl.so.7 => /usr/lib/libltdl.so.7 (0xb6a36000)
libicuuc.so.38 => /usr/lib/libicuuc.so.38 (0xb690e000)
libicudata.so.38 => /usr/lib/libicudata.so.38 (0xb5e37000)
libssl.so.0.9.8 => /usr/lib/i686/cmov/libssl.so.0.9.8 (0xb5df1000)
libcrypto.so.0.9.8 => /usr/lib/i686/cmov/libcrypto.so.0.9.8 (0xb5ca5000)
libkrb5.so.3 => /usr/lib/libkrb5.so.3 (0xb5c13000)
libcom_err.so.2 => /lib/libcom_err.so.2 (0xb5c0f000)
libgssapi_krb5.so.2 => /usr/lib/libgssapi_krb5.so.2 (0xb5be5000)
libcrypt.so.1 => /lib/tls/i686/cmov/libcrypt.so.1 (0xb5bb3000)
libldap_r-2.4.so.2 => /usr/lib/libldap_r-2.4.so.2 (0xb5b7)
libidn.so.11 => /usr/lib/libidn.so.11 (0xb5b3e000)
libk5crypto.so.3 => /usr/lib/libk5crypto.so.3 (0xb5b1a000)
libgnutls.so.26 => /usr/lib/libgnutls.so.26 (0xb5a7d000)
libtasn1.so.3 => /usr/lib/libtasn1.so.3 (0xb5a6b000)
libgcrypt.so.11 => /lib/libgcrypt.so.11 (

[GRASS-dev] DataCatalog

2009-10-14 Thread Mohammed Rashad
Hi,
I am Mohammed Rashad K.M. I had developed a DataCatalog for GRASS GIS using
wxpython GUI. I had got the idea from the grass GUI wiki. some sample
screenshots of the dataCatalog is uploaded.
you can visit the link below to view the screens. Even though my coding is
not comepleted, I am sending this link because I dont know what to do after
coding is completed and also need some support to complete it. Mainly i want
to make sure that this kind of app in required in GRASS GUI.
I am also planning to copy,paste,delete  maps in different mapsets. Now
DataCatalog can display maps.


http://www.flickr.com/photos/43544...@n04/

-- 
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] widget class GtkPizza

2009-10-15 Thread Mohammed Rashad
python:7987): Gtk-WARNING **:
/build/buildd/gtk+2.0-2.12.11/gtk/gtkwidget.c:8547: widget class `GtkPizza'
has no property named `row-ending-details'

When we click on a listbox , notebook, wxtree and some other controls a
warning is displayed on terminal.
On grass startup window if we click on listbox control a GTK warning is
printed on terminal.  This problem occurs only with `clearlooks` and
`glossy` themes.
If we change to anyother theme this warning is not displayed. The problem is
not related with wxpthon or wxwidgets. only the theme is reponsible









-- 
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 generate

2009-11-13 Thread Mohammed Rashad
what about  having an automatic error report tool in grass gis.
which can send mail to grass-dev mailinglist with some details of the os,
grass version etc.. generated by error reporting tool
so that users need only to specify error description.
Many problems can be cleared such  using an older library version, etc...


-- 
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 generate

2009-11-14 Thread Mohammed Rashad
This tool provide a support for GRASS GIS as a utility installed with GRASS
GIS.
I planned to develop in python for portability and send mail from python to
grass-dev list is not a big problem.
A broken python installation is a serious issue. For that we need further
discussion. But that this can report errors from the grass if there is no
failures in python installation. For windows we don't need msys if we deal
with python.

Apart from sending mail to grass-dev or grass-user, this creates a report
which will help to find the correct error in the modules, not the error
program or such thing. It can find which module is broken, grass version, if
the problem is due to older version of support library. etc..


On Sat, Nov 14, 2009 at 9:56 PM, Glynn Clements wrote:

>
> Mohammed Rashad wrote:
>
> > what about  having an automatic error report tool in grass gis.
> > which can send mail to grass-dev mailinglist with some details of the os,
> > grass version etc.. generated by error reporting tool
> > so that users need only to specify error description.
> > Many problems can be cleared such  using an older library version, etc...
>
> Figuring out how to send mail from a program or script isn't
> straightforward. Generating a standardised report which the user can
> attach is more realistic.
>
> OTOH, a lot of the problems which affect GRASS as a whole would also
> affect any error-reporting tool. E.g. if the tool is written in
> Python, a broken Python installation would prevent the tool from
> working; likewise for a shell script needing a working MSys
> installation on Windows.
>
> --
> Glynn Clements 
>



-- 
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] new wxGUI

2010-01-22 Thread Mohammed Rashad
Hi,

I am planning to develop a DataCatalog or GRASS GIS Manager. Design of the gui 
module is almost finished.
please view the screens and give me a feedback to continue coding the module in 
wxpython.
I will start coding after getting response from GRASS community otherwise it 
will be wastage of time.
So please send your valuable comments on the link specified below

http://grass.osgeo.org/wiki/WxPython-based_GUI_for_GRASS#Data_Catalog



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

[GRASS-dev] copyright

2010-01-23 Thread Mohammed Rashad
Hi,
The menubar, toolbar and status bar in the existing GRASS GIS Manager is needed 
for my new GRASS GIS Manager.
So Can I copy the code from existing wxgui.py ?.

Is there any problem regarding author,license and copyright.

I don't know much about these matter. If you know please help..

Regards
Mohammed Rashad K.M



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

[GRASS-dev] DataCatalog

2010-02-03 Thread Mohammed Rashad
Hi,
I almost completed my DataCatalog module (new GRASS GIS Manager) for GRASS GIS
http://svn.osgeo.org/grass/grass-addons/gui/wxpython/data_catalog/

anyone please test it. Any comments and suggestions are always welcome.

http://grass.osgeo.org/wiki/WxPython-based_GUI_for_GRASS#Data_Catalog

Thanks & 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] pdf manual

2010-02-20 Thread Mohammed Rashad
anyone pls post link for grass programmer's manual in pdf



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

Re: [GRASS-dev] pdf manual

2010-02-20 Thread Mohammed Rashad
cannot find pdf manual for grass6; only grass 5.x pdf manual is available





From: Martin Landa 
To: Mohammed Rashad 
Cc: grass-dev@lists.osgeo.org
Sent: Sat, February 20, 2010 7:53:19 PM
Subject: Re: [GRASS-dev] pdf manual

2010/2/20 Mohammed Rashad :
> anyone pls post link for grass programmer's manual in pdf

http://grass.osgeo.org/devel/index.php#prog

Martin

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



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

[GRASS-dev] winGRASS

2010-02-22 Thread Mohammed Rashad
anyone developing winGRASS without using MSYS/Cygwin. (ie using mingw). If any 
of you working on this please let me know. I am happy to join your team.
if you are porting GRASS GIS to windows without cygwin support please post svn 
source of winGRASS.



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

[GRASS-dev] malayalam translation

2010-02-22 Thread Mohammed Rashad
I am working on new translation of grass meesages (Malaylam). 
I followed steps on translation wiki for starting new translation and created 
*.po files using `make pot`. my problem is after make install it shows this 
error


Starting GRASS ...
Traceback (most recent call last):
  File "/usr/local/grass-6.4.0svn/etc/wxpython/gis_set.py", line 850, in 

import gui_modules.gcmd as gcmd
  File "/usr/local/grass-6.4.0svn/etc/wxpython/gui_modules/gcmd.py", line 53, 
in 
from grass.script import core as grass
  File "/usr/local/grass-6.4.0svn/etc/python/grass/script/__init__.py", line 1, 
in 
from core   import *
  File "/usr/local/grass-6.4.0svn/etc/python/grass/script/core.py", line 34, in 

gettext.install('grassmods', os.path.join(os.getenv("GISBASE"), 'locale'), 
unicode=True)
  File "/usr/lib/python2.5/gettext.py", line 493, in install
t = translation(domain, localedir, fallback=True, codeset=codeset)
  File "/usr/lib/python2.5/gettext.py", line 478, in translation
t = _translations.setdefault(key, class_(open(mofile, 'rb')))
  File "/usr/lib/python2.5/gettext.py", line 180, in __init__
self._parse(fp)
  File "/usr/lib/python2.5/gettext.py", line 337, in _parse
tmsg = unicode(tmsg, self._charset)
LookupError: unknown encoding: CHARSET
Error in GUI startup. If necessary, please
report this error to the GRASS developers.
Switching to text mode now.
Hit RETURN to continue...

any help will be greatly appreciated..

Thanks & Regardds

Mohammed Rashad K.M
http://keralainfo.web4all.in



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

[GRASS-dev] Re: [GRASS-translations] malayalam translation

2010-02-23 Thread Mohammed Rashad
my header is 
# translation of grasswxpy_ml.po to
# This file is distributed under the same license as the GRASS package.
# Copyright (C) 2005, GRASS Development Team
msgid ""
msgstr ""
"Project-Id-Version: grasswxpy_ml\n"
"Report-Msgid-Bugs-To: \n"
"POT-Creation-Date: 2010-01-14 07:11+0100\n"
"PO-Revision-Date: 2010-02-23 17:28+0530\n"
"Last-Translator: rashad\n"
"Language-Team:  \n"
"MIME-Version: 1.0\n"
"Content-Type: text/plain; charset=UTF-8\n"
"Content-Transfer-Encoding: 8bit\n"
"X-Generator: KBabel 1.11.4\n"

#: ../gui/wxpython/gui_modules/v_krige_wxGUI.py:33
msgid "No GRASS-python library found."
msgstr ""

after compile and install i got same error





From: Markus Neteler 
To: Mohammed Rashad 
Cc: grass-translati...@lists.osgeo.org; grass-dev@lists.osgeo.org
Sent: Tue, February 23, 2010 1:16:15 PM
Subject: Re: [GRASS-translations] malayalam translation

On Tue, Feb 23, 2010 at 8:29 AM, Mohammed Rashad  wrote:
> I am working on new translation of grass meesages (Malaylam).
> I followed steps on translation wiki for starting new translation and
> created *.po files using `make pot`. my problem is after make install it
> shows this error
>
>
> Starting GRASS ...
> Traceback (most recent call last):
>   File "/usr/local/grass-6.4.0svn/etc/wxpython/gis_set.py", line 850, in
> 
> import gui_modules.gcmd as gcmd
>   File "/usr/local/grass-6.4.0svn/etc/wxpython/gui_modules/gcmd.py", line
> 53, in 
> from grass.script import core as grass
>   File "/usr/local/grass-6.4.0svn/etc/python/grass/script/__init__.py", line
> 1, in 
> from core   import *
>   File "/usr/local/grass-6.4.0svn/etc/python/grass/script/core.py", line 34,
> in 
> gettext.install('grassmods', os.path.join(os.getenv("GISBASE"),
> 'locale'), unicode=True)
>   File "/usr/lib/python2.5/gettext.py", line 493, in install
> t = translation(domain, localedir, fallback=True, codeset=codeset)
>   File "/usr/lib/python2.5/gettext.py", line 478, in translation
> t = _translations.setdefault(key, class_(open(mofile, 'rb')))
>   File "/usr/lib/python2.5/gettext.py", line 180, in __init__
> self._parse(fp)
>   File "/usr/lib/python2.5/gettext.py", line 337, in _parse
> tmsg = unicode(tmsg, self._charset)
> LookupError: unknown encoding: CHARSET

You have to fill out the header of these files (see other languages in
locale/po/ )

Markus

> Error in GUI startup. If necessary, please
> report this error to the GRASS developers.
> Switching to text mode now.
> Hit RETURN to continue...
>
> any help will be greatly appreciated..
>
> Thanks & Regardds
>
> Mohammed Rashad K.M
> http://keralainfo.web4all.in
>
>
> ___
> grass-translations mailing list
> grass-translati...@lists.osgeo.org
> http://lists.osgeo.org/mailman/listinfo/grass-translations
>
>



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

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

2010-03-06 Thread Mohammed Rashad
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. 

Thanks in advance.


  ___
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 
To: Mohammed Rashad 
Cc: GRASS developers list 
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  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  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

[GRASS-dev] slow DataCatalog

2010-04-18 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

[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  not found

ERROR: Raster map  not found

ERROR: Raster map  not found

ERROR: Raster map  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  wrote:

> On Tue, Apr 20, 2010 at 3:45 PM, Mohammed Rashad 
> 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  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] 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_catalog>waiting
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] 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] 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 
To: Mohammed Rashad 
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 



  ___
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 
To: Mohammed Rashad ; Glynn Clements 

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] 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 
To: Mohammed Rashad 
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] grass 7 startup error

2010-06-09 Thread Mohammed Rashad


 here is ouptut log:

Starting GRASS GIS...
Traceback (most recent call last):
  File "/usr/local/grass-7.0.svn/etc/gui/wxpython/gis_set.py", line 33, in 

from gui_modules import globalvar
  File 
"/home/rashad/grass_trunk/dist.i686-pc-linux-gnu/etc/gui/wxpython/gui_modules/globalvar.py",
 line 25, in 
grassPath = os.path.join(globalvar.ETCDIR, "python")
NameError: name 'globalvar' is not defined
Error in GUI startup. If necessary, please report this error to the GRASS 
developers.
Switching to text mode now.

Hit RETURN to continue...

Unable to create temporary directory! Exiting.


--
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] (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] 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] 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: 

 
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 
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: 

 
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] 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: 


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] Fw: digitize toolbar error

2010-06-20 Thread Mohammed Rashad


 --
Rashad



- Forwarded Message 
From: Mohammed Rashad 
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: 


what i am missing.

 --
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::vector 
> 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] 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] GRASS Imagery

2010-07-13 Thread Mohammed Rashad
I would like to manage grass imagery modules (trying to make gui modules for 
imagery tools).
Can anyone give me any suggestions or tips which I should follow during 
development. 

If anyone is willing to mentor me I am happy to be a student of you.

--
Rashad



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

[GRASS-dev] i.class

2010-07-17 Thread Mohammed Rashad
Anyone please tell me how to use i.class. it requires many inputs which i dont 
know. I has specified input map, group, subgroup, output map. after giving 
these 
inputs it asks for some other inputs so any please tell me the inputs needed to 
use i.class. Can I use i.class module with spearfish data. If yes please tell 
me 
which map to use.

 --
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] 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] 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] 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] 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] 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] 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 wrote:
>
>>  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 
>> 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 wrote:
>>
>>> 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 
>>> : 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] swig

2010-09-20 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] 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] 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] 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 wrote:

> Hi,
>
> 2010/9/29 Mohammed Rashad :
> > 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  * 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 wrote:

> Hi,
>
> 2010/9/29 Mohammed Rashad :
> > 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  * 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] 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] v.digit vs v.edit

2010-10-02 Thread Mohammed Rashad
does v.edit can do all things v.digit can do
what difference is between v.digit and v.edit
i had read the manual
if v.edit can do all things then what is the need for v.digit
both are used for digitisation right?

anyone please explain the differences between both module

-- 
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] 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] 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 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 
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 > ignored
Exception AttributeError: "'NoneType' object has no attribute
'GetCmdString'" in > ignored

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

  1   2   >