[GRASS-user] error with r.terraflow

2010-03-25 Thread Mansoor Leh
Hello,

I am a newbie, using the windows version (6.4.0RC6) and i keep getting
the following error message with when running r.terraflow, i  tried
running from

command line with the sample data and using the GUI but no success.
Like i said i am a new user so its rather difficult identifying the
source of the problem. Any help would be appreciated.

Error:

Assertion failed: nrows * ncols == str-stream_len(), file grass2str.h,line 144

This application has requested the Runtime to terminate it in an unusual
way. Please contact the application's support team for more information.


Thanks,
-- 

Mansoor Delali Leh , Graduate Assistant
Department of Biological  Agricultural Engineering
309 Engineering Hall
University of Arkansas
Fayetteville, AR 72701
***
___
grass-user mailing list
grass-user@lists.osgeo.org
http://lists.osgeo.org/mailman/listinfo/grass-user


Re: [GRASS-user] Re: [GRASS-dev] Helpp needed to call Grass from inside Python Plugin

2010-03-25 Thread Bishwarup Banerjee
Dear All,

Thank you very much for all your inputs and you guys have done a wonderful
work.
I am able to solve my problem.
Three Cheers for Grass and Open Source Softwares.
Thanks you all once again.

With Regards,
Bishwarup

On Thu, Mar 25, 2010 at 7:50 AM, Glynn Clements gl...@gclements.plus.comwrote:


 Bishwarup Banerjee wrote:

  I have tried to iimplement the example in my way. The code is as follows

  import core as grass

 This should be:

import grass.script as grass
 or:
import grass.script.core as grass

  def main():
  input_map = options['H:/Shared_data/test1.tif']
  output_map = options['Test_24']

 This is bogus. The keys in the options dictionary are the names of
 the options defined in the g.parser comments (assuming that you have
 them; if you don't, grass.parser() won't work).

  But I get the following error, I cant make out where I am going wrong. I
  have set all the Env variables as suggested in the wiki page. Please help
 me
  to implement it.
 
 
  F:\GRASS-6-SVN\etc\python\grass\scriptpython test.py
  Traceback (most recent call last):
File test.py, line 18, in module
  options, flags = grass.parser()
File F:\GRASS-6-SVN\etc\python\grass\script\core.py, line 359, in
 parser
  os.execvp(g.parser.exe, [name] + argv)
File F:\Quantum GIS\python\os.py, line 353, in execvp
  _execvpe(file, args)
File F:\Quantum GIS\python\os.py, line 389, in _execvpe
  func(fullname, *argrest)
  OSError: [Errno 22] Invalid argument

 I have no idea what's causing this.

 I suggest modifying the parser() function to print the arguments which
 are being passed to os.execvp():

File F:\GRASS-6-SVN\etc\python\grass\script\core.py, line 359, in
 parser
  os.execvp(g.parser.exe, [name] + argv)

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

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


Re: [GRASS-user] translucency and svg output

2010-03-25 Thread Hamish
pete davidson wrote:
 The only workaround I've managed to find so far is to export each layer
 as an individual svg,

with v.out.svg?


Hamish



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


Re: [GRASS-user] translucency and svg output

2010-03-25 Thread Vincent Bain
Pete, sorry if I'm off board :
do you absolutely need to generate a /vector/ output ?

Vincent.

Le mercredi 24 mars 2010 à 20:15 -0700, pete davidson a écrit :
 On Wed, Mar 24, 2010 at 7:49 PM, pete davidson caiti...@gmail.com
 wrote:
 
 
 
 On Wed, Mar 24, 2010 at 7:42 PM, Glynn Clements
 gl...@gclements.plus.com wrote:
 
 pete davidson wrote:
 
  I'm producing maps in svg format using the cairo
 driver and d.out.file.  One
  thing I'd really like to be able to do is set one or
 more of the vector
  layers to be partially translucent.  After rummaging
 through this list, I'm
  beginning to wonder if its possible at all, since
 translucency in the guis
  seems to be handled by g.pnmcomp, but perhaps
 someone with more experience
  knows a way to do it.
 
 
 It isn't. The graphics API doesn't support an alpha
 component.
 
 Apart from anything else, it can't easily be
 implemented for
 PostScript output, as PostScript doesn't support
 translucency. Faking
 it with patterns is possible, but it starts getting
 complicated if you
 want more than one translucent layer.
 
  The only workaround I've managed to find so far is
 to export each layer as
  an individual svg, then use something like inkscape
 to rejoin them, setting
  the translucency/transparency of each layer as I do
 it.  Which is fine for a
  map with only a few layers, but gets tedious when
 dealing with maps with
  dozens of layers.
 
 
 SVG is XML, so it shouldn't be especially hard to
 automate the process
 using generic XML-processing tools.
 
 Ohh, I hadn't thought of editing the svg/xml directly.  Thanks
 for the suggestion, I'll see what I can achieve from there.
 
 
 And then we discover that the 'svg' produced by cairo using the above
 script is actually just a png in an svg wrapper..  At least for my
 particular install of Grass.  That's frustrating.  Ahh well, back to
 the drawing board.
 
 Peter
 ___
 grass-user mailing list
 grass-user@lists.osgeo.org
 http://lists.osgeo.org/mailman/listinfo/grass-user


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


[GRASS-user] Re: v.net.path algorithm problem

2010-03-25 Thread schorschli

Hi,

Thanks for your suggestions.

 Perhaps some nodes are missing? I have success in the past by applying 
 http://grass.osgeo.org/grass64/manuals/html64_user/v.net.html

I tried v.net -- report and indeed some nodes where missing. I added those
with v.net --nodes. Running v.net.path can still not found pathes for the
same combinations.


Matthias - if you zoom very closely to any of the categories in the 
error report, do you see a lack of connection between those points and 
the network lines? 

I couldn't find any gap in the network. The connection lines were generated
by v.net -- connect

-- 
View this message in context: 
http://n2.nabble.com/v-net-path-algorithm-problem-tp4789540p4796272.html
Sent from the Grass - Users mailing list archive at Nabble.com.
___
grass-user mailing list
grass-user@lists.osgeo.org
http://lists.osgeo.org/mailman/listinfo/grass-user


Re: [GRASS-user] error with r.terraflow

2010-03-25 Thread Achim Kisseler

Hi,



Error:


Assertion failed: nrows * ncols == str-stream_len(), file
grass2str.h,line 144


This application has requested the Runtime to terminate it in an unusual
way. Please contact the application's support team for more information.



about the error: I dont know, but:

can you give some more information about the data you are using?

And: can you post the commands you are used? (You can find the command 
line equivalent for the gui in the tab Command Output)


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


Re: [GRASS-user] Re: v.net.path algorithm problem

2010-03-25 Thread Maris Nartiss
Your data set seems to be small. If You really think it's a bug in
v.net.path, open a ticket in Trac and attach sample data set with
commands to run. Then others developers will be able to check Your
data set and to confirm or (most likely) deny bug existence in
v.net.path.
Of-course You can g.copy that vector to another mapset and then zip it
and place on some server and then simply drop a link here. Without
seeing sample data it's impossible to tell if  it's a v.net problem,
as when I was using v.net.path half a month a go it was working just
fine.

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


Re: [GRASS-user] error with r.terraflow

2010-03-25 Thread Maris Nartiss
Next time don't forget to state Your Windows version, as some issues
are version-specific. Still this is a known issue:
http://trac.osgeo.org/grass/ticket/1006

Maris.

2010/3/25, Mansoor  Leh mdk...@gmail.com:
 Hello,

 I am a newbie, using the windows version (6.4.0RC6) and i keep getting
 the following error message with when running r.terraflow, i  tried
 running from

 command line with the sample data and using the GUI but no success.
 Like i said i am a new user so its rather difficult identifying the
 source of the problem. Any help would be appreciated.

 Error:

 Assertion failed: nrows * ncols == str-stream_len(), file grass2str.h,line
 144

 This application has requested the Runtime to terminate it in an unusual
 way. Please contact the application's support team for more information.


 Thanks,
 --
 
 Mansoor Delali Leh , Graduate Assistant
 Department of Biological  Agricultural Engineering
 309 Engineering Hall
 University of Arkansas
 Fayetteville, AR 72701
 ***

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


Re: [GRASS-user] v.net.path algorithm problem

2010-03-25 Thread Richard Chirgwin

Hamish wrote:

Richard wrote:
  
if you zoom very closely to any of the categories in the 
error report, do you see a lack of connection between those

points and the network lines?



'v.clean tool=snap' is for lines, but it's pretty close.

is there a tool to snap points to lines?


Hamish

  

Not that I know of, but there are some possible workarounds.

1. v.net, as Markus said, is designed to make the connections. I find it 
can produce some odd results, but that could well be user inexperience!


2. If you can't beat a problem any other way, use v.distance with the 
output flag set. This will create lines connecting source to 
destination. Gee, I should have thought of *that* sooner for a problem I 
was working on a couple of weeks back!


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


[GRASS-user] grass 7 and ubuntu start up

2010-03-25 Thread Matthew Mulbrandon

Hello,

Just installed grass 7.0 using the latest snapshot binary march 20 
(grass7.0.svn-i686-pc-linux-gnu-20_03_2010) and ubuntu 9.10. I type in grass70 
in the shell and nothing happens. No error but also no gui. I try some gui 
commands and it says command not found. Nothing really works but the program 
seems to activate.

I use grass 6.4 often but am at a loss as to what the problem is. 

Thanks,

Matthew 


 grass-user@lists.osgeo.org
 http://lists.osgeo.org/mailman/listinfo/grass-user
  
_
The New Busy is not the old busy. Search, chat and e-mail from your inbox.
http://www.windowslive.com/campaign/thenewbusy?ocid=PID27925::T:WLMTAGL:ON:WL:en-US:WM_HMP:032010_3___
grass-user mailing list
grass-user@lists.osgeo.org
http://lists.osgeo.org/mailman/listinfo/grass-user


RE: [GRASS-user] problems with GRASS 6.4

2010-03-25 Thread Pablo Carreira

Hello list;I have just installed the new Grass 
version but I haven't been able to work with it! If I try to 
launch the GRASS 6.4 ORC6 with the new wxpython GUI; I get an error 
message saying that python.exe has detected a problem and has to close. 

Any idea of what the problem could be?
Miguel, 
I had the same problem with osgeo4w.
Then I installed the RC6 with the installer 
(http://grass.osgeo.org/grass64/binary/mswindows/native/), after that both 
distributions worked very well.

I have no idea what it is, but it worked. 

BTW, RC6 is very stable.


Pablo.
  
_
Navegue sem medo: O Internet Explorer 8 te deixa mais protegido. Baixe 
gratuitamente.
http://go.microsoft.com/?linkid=9707132___
grass-user mailing list
grass-user@lists.osgeo.org
http://lists.osgeo.org/mailman/listinfo/grass-user


Re: [GRASS-user] grass 7 and ubuntu start up

2010-03-25 Thread Vincent Bain
Hi Matthew,
just an idea : did you check if grass70 exists in your path and if so,
is it executable (you can type sth like ls -l /usr/bin/grass* in a term)


Yours,
Vincent.

Le jeudi 25 mars 2010 à 12:24 +, Matthew Mulbrandon a écrit :
 Hello,
 
 Just installed grass 7.0 using the latest snapshot binary march 20
 (grass7.0.svn-i686-pc-linux-gnu-20_03_2010) and ubuntu 9.10. I type in
 grass70 in the shell and nothing happens. No error but also no gui. I
 try some gui commands and it says command not found. Nothing really
 works but the program seems to activate.
 
 I use grass 6.4 often but am at a loss as to what the problem is. 
 
 Thanks,
 
 Matthew 
 
 
  grass-user@lists.osgeo.org
  http://lists.osgeo.org/mailman/listinfo/grass-user
 
 
 __
 The New Busy is not the old busy. Search, chat and e-mail from your
 inbox. Get started.
 ___
 grass-user mailing list
 grass-user@lists.osgeo.org
 http://lists.osgeo.org/mailman/listinfo/grass-user


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


[GRASS-user] Flat area issue in r.watershed

2010-03-25 Thread Margherita Di Leo

Hi List!

I often use the tool r.watershed and I always wonder that it seems to be 
not affected by the issue of flat areas . How it manages the surface 
flows in low/zero slope areas?


Thank you in advance.
Cheers

--
Eng. Margherita Di Leo
Ph.D. Candidate
Methods and Technologies for Environmental Monitoring
Department of Environmental Engineering and Physics (DIFA)

University of Basilicata 
Campus Macchia Romana
85100 - Potenza 
Italy


Office: +39-0971205363
Fax: +39-0971205160





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


[GRASS-user] Can't install i.pr

2010-03-25 Thread joel dinis
Hello fellow GRASS users,

I'm new with GRASS.
At this point, I need to install the
i.pr add-on, but I've met some
dificulties:

I download the package via svn,
and that went just fine. But when
I do

   make MODULE_TOPDIR=/usr/lib/grass64

I get this a huge stream of errors and
warnings, e.g.

...
main.c:294: warning: assignment makes pointer from integer without a cast
main.c:295: error: dereferencing pointer to incomplete type
main.c:296: error: dereferencing pointer to incomplete type
main.c:297: error: dereferencing pointer to incomplete type
main.c:298: error: dereferencing pointer to incomplete type
main.c:299: error: dereferencing pointer to incomplete type
main.c:300: error: dereferencing pointer to incomplete type
main.c:302: warning: assignment makes pointer from integer without a cast
main.c:303: error: dereferencing pointer to incomplete type
main.c:304: error: dereferencing pointer to incomplete type
main.c:305: error: dereferencing pointer to incomplete type
main.c:306: error: dereferencing pointer to incomplete type
main.c:307: error: dereferencing pointer to incomplete type
main.c:310: warning: implicit declaration of function ‘G_define_flag’
...

Can anyone tell me why this is so, and how can
I solve this?

Thanks.

(PS: I'm working in Ubuntu 9.10 with GRASS 6.4.)
___
grass-user mailing list
grass-user@lists.osgeo.org
http://lists.osgeo.org/mailman/listinfo/grass-user


[GRASS-user] Image segmentation á-la eCognition

2010-03-25 Thread joel dinis
Hello fellow GRASS users,

Can anyone tell if is possible to
do image segmentation, like
eCognition or SPRING, in GRASS.

I did some reasearch, but I couldn't
find anything about it.

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


Re: [GRASS-user] Can't install i.pr

2010-03-25 Thread Markus Neteler
On Thu, Mar 25, 2010 at 4:37 PM, joel dinis dinis.j...@gmail.com wrote:
 Hello fellow GRASS users,

 I'm new with GRASS.
 At this point, I need to install the
 i.pr add-on, but I've met some
 dificulties:

 I download the package via svn,
 and that went just fine. But when
 I do

    make MODULE_TOPDIR=/usr/lib/grass64

 I get this a huge stream of errors and
 warnings, e.g.

 ...
 main.c:294: warning: assignment makes pointer from integer without a cast
 main.c:295: error: dereferencing pointer to incomplete type
 main.c:296: error: dereferencing pointer to incomplete type
 main.c:297: error: dereferencing pointer to incomplete type
 main.c:298: error: dereferencing pointer to incomplete type
 main.c:299: error: dereferencing pointer to incomplete type
 main.c:300: error: dereferencing pointer to incomplete type
 main.c:302: warning: assignment makes pointer from integer without a cast
 main.c:303: error: dereferencing pointer to incomplete type
 main.c:304: error: dereferencing pointer to incomplete type
 main.c:305: error: dereferencing pointer to incomplete type
 main.c:306: error: dereferencing pointer to incomplete type
 main.c:307: error: dereferencing pointer to incomplete type
 main.c:310: warning: implicit declaration of function ‘G_define_flag’
 ...

to which of the i.pr commands is this related? For me it compiles
fine (Mandriva, GRASS 64).

 (PS: I'm working in Ubuntu 9.10 with GRASS 6.4.)

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


Re: [GRASS-user] Flat area issue in r.watershed

2010-03-25 Thread Markus Neteler
On Thu, Mar 25, 2010 at 2:45 PM, Margherita Di Leo direg...@gmail.com wrote:
 Hi List!

 I often use the tool r.watershed and I always wonder that it seems to be not
 affected by the issue of flat areas . How it manages the surface flows in
 low/zero slope areas?

AFAIK it uses a least-cost algorithm (A^T search) to figure out the *best* way.
The man page contains a reference to Chuck Ehlschlaeger's document about
this method. Ah, I see that the link is now
 http://chuck.ehlschlaeger.info/older/IGIS/paper.html
will update the manual page.

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


Re: [GRASS-user] translucency and svg output

2010-03-25 Thread pete davidson
Thanks to all for these suggestions and comments.

I will look at the options suggested by Andreas, and follow Glynn's comment
to explore why Cairo dropped to rasterization - it's good to know that
*that's* why I got raster output, rather than wrapping a raster being all
that Cairo does!

To answer Hamish, no, I was exporting each individual layer using d.vect and
d.out.file.  Your question gives me the idea I should try using v.out.svg
for individual layers to help work out why Cairo dropped to raster output
and/or to produce individual layers to stitch together later if necessary.

Re Vincent's comment that holding vector format to 'the very end',
unfortunately what I'm doing isn't for single-use - I'm producing maps that
will be used by several end users for uses ranging from conference posters
to individual papers, so I can't predict final image sizes in advance (and
I'm not going to be the only end-user).  Hence my desire to stick to a
vector format in the hopes that they'll at least scale cleanly.  Although if
Vincent is willing to share an example script that uses imagemagik to
compose ps layers I'd be delighted to see it.

Thanks again to all for sharing your thoughts  expertise.

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


Re: [GRASS-user] Can't install i.pr

2010-03-25 Thread Glynn Clements

joel dinis wrote:

 I'm new with GRASS.
 At this point, I need to install the
 i.pr add-on, but I've met some
 dificulties:
 
 I download the package via svn,
 and that went just fine. But when
 I do
 
make MODULE_TOPDIR=/usr/lib/grass64
 
 I get this a huge stream of errors and
 warnings, e.g.
 
 ...

 main.c:310: warning: implicit declaration of function �G_define_flag�

I suspect that the stream of errors starts with something like:

foo.c:1:23: error: grass/gis.h: No such file or directory

When faced with a large number of errors, always look at the first
ones, as they usually indicate the actual problem, while later ones
are merely symptoms of the problem.

Also, always redirect make output to a file, e.g.:

make  build.log
or:
make 21 | tee build.log

 Can anyone tell me why this is so, and how can
 I solve this?

It's probably because include/Make/Platform.make has GRASS_HOME (etc)
pointing to the directory where GRASS was built.

If you want to compile add-ons against an installed version of GRASS,
you'll need to override more than just MODULE_TOPDIR. AFAICT, you may
also need to override ARCH_DISTDIR and ERRORLOG and possibly
ARCH_BINDIR and/or RUN_GISBASE.

-- 
Glynn Clements gl...@gclements.plus.com
___
grass-user mailing list
grass-user@lists.osgeo.org
http://lists.osgeo.org/mailman/listinfo/grass-user