[GRASS-user] Compile module with different name

Hi,

I need to keep an older copy of v.buffer, one that maintains the debug=buffer capability - I use this to retain overlaps as distinct polygons (instead of having two overlapping buffers merged into one).

So, what I would like to do is recompile the old v.buffer, but do so with the output as a different name - eg, v.oldbuffer.

How would I do this?

Cheers all,
Richard

Hi,

2009/7/31 Richard Chirgwin <rchirgwin@ozemail.com.au>:

I need to keep an older copy of v.buffer, one that maintains the
debug=buffer capability - I use this to retain overlaps as distinct polygons
(instead of having two overlapping buffers merged into one).

So, what I would like to do is recompile the old v.buffer, but do so with
the output as a different name - eg, v.oldbuffer.

How would I do this?

just change PGM variable in Makefile, e.g.

PGM = v.oldbuffer

Martin

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

Martin Landa wrote:

Hi,

2009/7/31 Richard Chirgwin <rchirgwin@ozemail.com.au>:
  

I need to keep an older copy of v.buffer, one that maintains the
debug=buffer capability - I use this to retain overlaps as distinct polygons
(instead of having two overlapping buffers merged into one).

So, what I would like to do is recompile the old v.buffer, but do so with
the output as a different name - eg, v.oldbuffer.

How would I do this?
    

just change PGM variable in Makefile, e.g.

PGM = v.oldbuffer

Martin

Martin and Janek,

Thanks, but not successful. Unfortunately, v.buffer won't make. The errors:

>main.c:214: error: too many arguments to function 'Vect_build_partial'
>main.c:215: error: too many arguments to function 'Vect_build'
>main.c: in function 'main':
>main.c.572: error: too many arguments to function 'Vect_build_partial'
>main.c.584: error: too many arguments to function 'Vect_snap_lines'
>main.c.587: error: too many arguments to function 'Vect_break_lines'
>main.c.590: error: too many arguments to function 'Vect_remove_duplicates'
>main.c.602: error: too many arguments to function 'Vect_build_partial'
>main.c.710: error: too many arguments to function 'Vect_build_partial'

This takes things beyond my limited programming skills. My issue is that I really need to be able to work with a "dirty" buffer.

Richard

Hi,

2009/7/31 Richard Chirgwin <rchirgwin@ozemail.com.au>:

main.c:214: error: too many arguments to function 'Vect_build_partial'
main.c:215: error: too many arguments to function 'Vect_build'
main.c: in function 'main':
main.c.572: error: too many arguments to function 'Vect_build_partial'
main.c.584: error: too many arguments to function 'Vect_snap_lines'
main.c.587: error: too many arguments to function 'Vect_break_lines'
main.c.590: error: too many arguments to function 'Vect_remove_duplicates'
main.c.602: error: too many arguments to function 'Vect_build_partial'
main.c.710: error: too many arguments to function 'Vect_build_partial'

the reason is that API has been slightly changed in grass64+ (messages
are printed in the standard way using G_message()). Just remove the
second argument from the functions (NULL, stdout/stderr). E.g.

Vect_build(&Map, stderr);

to

Vect_build(&Map);

Martin

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

Martin Landa wrote:

Hi,

2009/7/31 Richard Chirgwin <rchirgwin@ozemail.com.au>:
  

main.c:214: error: too many arguments to function 'Vect_build_partial'
main.c:215: error: too many arguments to function 'Vect_build'
main.c: in function 'main':
main.c.572: error: too many arguments to function 'Vect_build_partial'
main.c.584: error: too many arguments to function 'Vect_snap_lines'
main.c.587: error: too many arguments to function 'Vect_break_lines'
main.c.590: error: too many arguments to function 'Vect_remove_duplicates'
main.c.602: error: too many arguments to function 'Vect_build_partial'
main.c.710: error: too many arguments to function 'Vect_build_partial'
      
the reason is that API has been slightly changed in grass64+ (messages
are printed in the standard way using G_message()). Just remove the
second argument from the functions (NULL, stdout/stderr). E.g.

Vect_build(&Map, stderr);

to

Vect_build(&Map);

Martin

Martin,

Thanks, I'll let you know how it goes ...

Richard

Martin Landa wrote:

Hi,

2009/7/31 Richard Chirgwin <rchirgwin@ozemail.com.au>:
  

main.c:214: error: too many arguments to function 'Vect_build_partial'
main.c:215: error: too many arguments to function 'Vect_build'
main.c: in function 'main':
main.c.572: error: too many arguments to function 'Vect_build_partial'
main.c.584: error: too many arguments to function 'Vect_snap_lines'
main.c.587: error: too many arguments to function 'Vect_break_lines'
main.c.590: error: too many arguments to function 'Vect_remove_duplicates'
main.c.602: error: too many arguments to function 'Vect_build_partial'
main.c.710: error: too many arguments to function 'Vect_build_partial'
      
the reason is that API has been slightly changed in grass64+ (messages
are printed in the standard way using G_message()). Just remove the
second argument from the functions (NULL, stdout/stderr). E.g.

Vect_build(&Map, stderr);

to

Vect_build(&Map);

Martin

Martin,

Nailed it. Thanks!

Richard Chirgwin