[GRASS-dev] v.kernel Vect_check_input_output_name

Hi,
v.kernel should not use Vect_check_input_output_name for output
because output is raster.

Radim

Radim Blazek wrote:

v.kernel should not use Vect_check_input_output_name for output
because output is raster.

output is both raster and vector,

  out_opt->description = _("output raster/vector map");

and then there's this:

      if( !flag_q->answer ) {
    Vect_open_new (&Out, out_opt->answer, 0);
    Vect_hist_command ( &Out );
      }

..
      Vect_write_line ( &Out, GV_LINE, SPoints, SCats );
..
      Vect_build (&Out, stderr);
      Vect_close (&Out);

Hamish

On 10/10/06, Hamish <hamish_nospam@yahoo.com> wrote:

Radim Blazek wrote:
> v.kernel should not use Vect_check_input_output_name for output
> because output is raster.

output is both raster and vector,

  out_opt->description = _("output raster/vector map");

Yes, you are right, it should only be checked if net is used.

Radim

and then there's this:

      if( !flag_q->answer ) {
          Vect_open_new (&Out, out_opt->answer, 0);
          Vect_hist_command ( &Out );
      }

..
                  Vect_write_line ( &Out, GV_LINE, SPoints, SCats );
..
      Vect_build (&Out, stderr);
      Vect_close (&Out);

Hamish