[GRASS5] v.transform semi-error

Markus,

Happy to try to clarify now I that I've figured out why I've been confused. When you use v.transform from the tcltk menu system, it says to input an ascii vector map. If you click the browse button (labeled "vector_ascii", as is the output map name browse button), it goes to the dig_ascii to search for a map. If you select a map from there it appears in the dialog window. However, when you try to run v.transform (clicking the "run" button) it says file not found.

The problem seems to be that the tcltk menu system has not been updated to reflect changes in v.transform. In the manual, it says binary vector file and v.transform from the command line works as specified there.

Michael

On Thursday, January 29, 2004, at 07:47 AM, grass5-request@grass.itc.it wrote:

From: Markus Neteler <neteler@itc.it>
Date: Thu Jan 29, 2004 6:01:36 AM America/Phoenix
To: grass5@grass.itc.it
Subject: Re: [GRASS5] Testing Grass 5.3 - v.transform

On Wed, Jan 28, 2004 at 10:20:17PM -0700, Michael Barton wrote:

Radim

Just wanted to let you know. I tested v.transform by typing in the name
of a binary vector file (the browse button looks in the dig_ascii
instead of dig folder). It worked just fine. Thanks for the tip.

Michael,

this is not clear to me:

src/mapdev/v.transform/main.c
[...]
       old->gisprompt = "old,dig,vector";

The version in 5.3-CVS refers to the dig file.

Where did you find the reference to dig_ascii? Maybe in 5.0.3?

Markus

On Monday, January 19, 2004, at 01:54 AM, Radim Blazek wrote:

On Friday 16 January 2004 17:13, Michael Barton wrote:

As with GRASS 5.7, I've been doing considerable testing of GRASS 5.3.
Overall, it is highly stable and works very well. Here are a couple of
minor items that perhaps could be fixed before it is released as
stable.

1. v.transform does not operate correctly, at least under Mac OSX. It
requires an ASCII vector file as input, looks in the dig_ASCII folder,
but will not recognize an ASCII vector file unless it is put (manually
and incorrectly) into the dig folder. It produces an incomplete output
file (header and attributes, but no vectors). This was a problem on an
earlier release; I have tried this on the the 12 January CVS snapshot
and it is still a problem.

v.transform was rewritten to read and write vector binary file.

Radim

____________________

______________________________
Michael Barton, Professor & Curator
Department of Anthropology
Arizona State University
Tempe, AZ 85287-2402
USA

voice: 480-965-6262; fax: 480-965-7671

On Thu, Jan 29, 2004 at 09:41:39AM -0700, Michael Barton wrote:

Markus,

Happy to try to clarify now I that I've figured out why I've been
confused. When you use v.transform from the tcltk menu system, it says
to input an ascii vector map. If you click the browse button (labeled
"vector_ascii", as is the output map name browse button), it goes to
the dig_ascii to search for a map. If you select a map from there it
appears in the dialog window. However, when you try to run v.transform
(clicking the "run" button) it says file not found.

The problem seems to be that the tcltk menu system has not been updated
to reflect changes in v.transform. In the manual, it says binary vector
file and v.transform from the command line works as specified there.

OK, I have fixed that in tcltkgrassi (but didn't test).

That's why 5.7 renders the menus automatically, no such update work :slight_smile:

Markus

On Thursday, January 29, 2004, at 07:47 AM,
grass5-request@grass.itc.it wrote:

>From: Markus Neteler <neteler@itc.it>
>Date: Thu Jan 29, 2004 6:01:36 AM America/Phoenix
>To: grass5@grass.itc.it
>Subject: Re: [GRASS5] Testing Grass 5.3 - v.transform
>
>
>On Wed, Jan 28, 2004 at 10:20:17PM -0700, Michael Barton wrote:
>>Radim
>>
>>Just wanted to let you know. I tested v.transform by typing in the
>>name
>>of a binary vector file (the browse button looks in the dig_ascii
>>instead of dig folder). It worked just fine. Thanks for the tip.
>
>Michael,
>
>this is not clear to me:
>
>src/mapdev/v.transform/main.c
>[...]
> old->gisprompt = "old,dig,vector";
>
>The version in 5.3-CVS refers to the dig file.
>
>Where did you find the reference to dig_ascii? Maybe in 5.0.3?
>
>Markus
>
>
>>
>>On Monday, January 19, 2004, at 01:54 AM, Radim Blazek wrote:
>>
>>>On Friday 16 January 2004 17:13, Michael Barton wrote:
>>>>As with GRASS 5.7, I've been doing considerable testing of GRASS
>>>>5.3.
>>>>Overall, it is highly stable and works very well. Here are a couple
>>>>of
>>>>minor items that perhaps could be fixed before it is released as
>>>>stable.
>>>>
>>>>1. v.transform does not operate correctly, at least under Mac OSX.
>>>>It
>>>>requires an ASCII vector file as input, looks in the dig_ASCII
>>>>folder,
>>>>but will not recognize an ASCII vector file unless it is put
>>>>(manually
>>>>and incorrectly) into the dig folder. It produces an incomplete
>>>>output
>>>>file (header and attributes, but no vectors). This was a problem on
>>>>an
>>>>earlier release; I have tried this on the the 12 January CVS
>>>>snapshot
>>>>and it is still a problem.
>>>
>>>v.transform was rewritten to read and write vector binary file.
>>>
>>>
>>>Radim
>>>
>>____________________
>>
______________________________
Michael Barton, Professor & Curator
Department of Anthropology
Arizona State University
Tempe, AZ 85287-2402
USA

voice: 480-965-6262; fax: 480-965-7671

_______________________________________________
grass5 mailing list
grass5@grass.itc.it
http://grass.itc.it/mailman/listinfo/grass5

Markus Neteler wrote:

> Happy to try to clarify now I that I've figured out why I've been
> confused. When you use v.transform from the tcltk menu system, it says
> to input an ascii vector map. If you click the browse button (labeled
> "vector_ascii", as is the output map name browse button), it goes to
> the dig_ascii to search for a map. If you select a map from there it
> appears in the dialog window. However, when you try to run v.transform
> (clicking the "run" button) it says file not found.
>
> The problem seems to be that the tcltk menu system has not been updated
> to reflect changes in v.transform. In the manual, it says binary vector
> file and v.transform from the command line works as specified there.

OK, I have fixed that in tcltkgrassi (but didn't test).

That's why 5.7 renders the menus automatically, no such update work :slight_smile:

How does it deal with the issues surrounding r.colors, as discussed in
the "Testing Grass 5.3" thread?

--
Glynn Clements <glynn.clements@virgin.net>

On Thu, Jan 29, 2004 at 09:30:20PM +0000, Glynn Clements wrote:

Markus Neteler wrote:

> > Happy to try to clarify now I that I've figured out why I've been
> > confused. When you use v.transform from the tcltk menu system, it says
> > to input an ascii vector map. If you click the browse button (labeled
> > "vector_ascii", as is the output map name browse button), it goes to
> > the dig_ascii to search for a map. If you select a map from there it
> > appears in the dialog window. However, when you try to run v.transform
> > (clicking the "run" button) it says file not found.
> >
> > The problem seems to be that the tcltk menu system has not been updated
> > to reflect changes in v.transform. In the manual, it says binary vector
> > file and v.transform from the command line works as specified there.
>
> OK, I have fixed that in tcltkgrassi (but didn't test).
>
> That's why 5.7 renders the menus automatically, no such update work :slight_smile:

How does it deal with the issues surrounding r.colors, as discussed in
the "Testing Grass 5.3" thread?

I think it doesn't.
So I change my statement to
"minimized update work with few outstanding issues".

You are welcome to suggest a solution.

Markus

Markus Neteler wrote:

> > > Happy to try to clarify now I that I've figured out why I've been
> > > confused. When you use v.transform from the tcltk menu system, it says
> > > to input an ascii vector map. If you click the browse button (labeled
> > > "vector_ascii", as is the output map name browse button), it goes to
> > > the dig_ascii to search for a map. If you select a map from there it
> > > appears in the dialog window. However, when you try to run v.transform
> > > (clicking the "run" button) it says file not found.
> > >
> > > The problem seems to be that the tcltk menu system has not been updated
> > > to reflect changes in v.transform. In the manual, it says binary vector
> > > file and v.transform from the command line works as specified there.
> >
> > OK, I have fixed that in tcltkgrassi (but didn't test).
> >
> > That's why 5.7 renders the menus automatically, no such update work :slight_smile:
>
> How does it deal with the issues surrounding r.colors, as discussed in
> the "Testing Grass 5.3" thread?

I think it doesn't.
So I change my statement to
"minimized update work with few outstanding issues".

You are welcome to suggest a solution.

More precisely, how does it decide if the program requires an xterm?

If it always requires one, that trivially solves the problem.

One option for dealing with the fact that r.colors sometimes requires
a terminal but usually doesn't would be to remove the color=rules
facility from r.colors and create a separate r.colors.rules program
for that case.

A couple of other points:

1. I already noted that the method of having multiple menu items (and
module files) for a single program was already being used for
v.support; presumably that won't work either. More generally,
auto-generated menus/dialogs won't work particularly well for programs
which have multiple "modes". Again, one solution is to split such
programs into several more specific components.

2. I'm wondering how many programs support using stdin as the input
file but don't have the "requires an xterm" flag set in their
(5.0/5.3) tcltkgrass module file.

3. More generally, if you want to make programs GUI-friendly, you need
to stop assuming that stdin exists. That includes use of "infile=-",
G_ask_*(), Vask etc.

--
Glynn Clements <glynn.clements@virgin.net>

> > How does it deal with the issues surrounding r.colors, as
> > discussed in the "Testing Grass 5.3" thread?
>
> I think it doesn't.

...

A couple of other points:

...

2. I'm wondering how many programs support using stdin as the input
file but don't have the "requires an xterm" flag set in their
(5.0/5.3) tcltkgrass module file.

I'm not saying it's a solution, but see r.what's menu item for stdin not
from a xterm. Raster->Analyse Map->Query by coordinate(s)->Locations file

Hamish