Mon, May 10 2004
06:56:51
|
|
Request created by guest
|
|
Subject: d.what.vect fails after first time
d.what.vect fails with a broken pipe error after the first time it is run for
any vector map. It works fine
the first time, but will not produce the interactive window thereafter until
GRASS is restarted. It does
work correctly if any of the flags -xtdf are set--sending output to the GRASS
x-terminal. This has
been a problem since the first version of 5.7 I saw in October 2003. |
|
Wed, Aug 11 2004
16:27:40
|
|
User changed to michael.barton@asu.edu by mneteler
|
|
Wed, Aug 11 2004
16:28:16
|
|
Mail sent by mneteler
|
|
... is this still a problem?
[works for me]
Markus |
|
Wed, Aug 11 2004
19:59:07
|
|
Mail sent by michael.barton@asu.edu
|
|
Return-Path |
<Michael.Barton@asu.edu>
|
Delivered-To |
grass-bugs@lists.intevation.de
|
Date |
Wed, 11 Aug 2004 10:56:27 -0700
|
From |
Michael Barton <michael.barton@asu.edu>
|
Subject |
Re: [bug #2400] (grass) d.what.vect fails after first time
|
In-reply-to |
<20040811142816.CB67F1397F@lists.intevation.de>
|
To |
Markus Neteler via RT <grass-bugs@intevation.de>
|
Message-id |
<BD3FABDB.27D3%michael.barton@asu.edu>
|
MIME-version |
1.0
|
Content-type |
text/plain; charset=US-ASCII
|
Content-transfer-encoding |
7bit
|
User-Agent |
Microsoft-Entourage/11.0.0.040405
|
X-Spam-Status |
No, hits=-4.9 tagged_above=-999.0 required=3.0 tests=BAYES_00
|
X-Spam-Level |
|
On 8/11/04 7:28 AM, "Markus Neteler via RT" <grass-bugs@intevation.de>
wrote:
> ... is this still a problem?
>
> [works for me]
>
>
Markus,
Thanks very much for asking and following up. This is still broken...sort
of. I played around more with it, prompted by your report of it working for
you. At first I thought I had it figured out, but now I realize it is more
bizarre than I thought. I can give you some more detailed information now,
however, and perhaps you or someone else can now figure out what is going
on.
First, I tested it with a set of points I had created from an ASCII file and
imported into GRASS 5.7. These are in a latlon WGS region. Surprisingly,
d.what.vect worked fine in all modes. No problems.
Then I tried it with an area I made in the same location. It didn't work at
all in tcltk mode.
- - - - -
[used in normal tcltk mode]
GRASS 5.7.cvs:~ > d.what.vect map=iowtopo1testarea
Buttons
Left: what's here
Right: quit
Broken pipe [1st left click produces no result; 2nd left click produces this
error and exits]
[used in xterm mode for same area]
GRASS 5.7.cvs:~ > d.what.vect -x map=iowtopo1testarea
Buttons
Left: what's here
Right: quit
10:29:49.683075E(E) 54:40:45.383644N(N)
iowtopo1testarea in dempoints Centroid
field: 1
category: 1
Database connection not defined
10:56:39.820256E(E) 54:55:12.380588N(N)
iowtopo1testarea in dempoints Area
Size - Sq Meters: 25661905560.980 Hectares: 2566190.556
Acres: 6341040.958 Sq Miles: 9907.8765
field: 1
category: 1
Database connection not defined
Done.
- - - - -
I thought Ah-Ha! It doesn't work with area or perhaps with features without
a database connection defined.
So I went to the Spearfish test data set specifically for GRASS 5.7. Here, I
got the broken pipe error with all features, areas (soils), lines (roads),
and points (archsites that I had imported with v.in.sites). Archsites, after
importing, does have an attached dbf file at least. See below
- - - - -
[used in normal tcltk mode]
GRASS 5.7.cvs:~ > d.what.vect map=archsites_v
Buttons
Left: what's here
Right: quit
Broken pipe
[used in xterm mode for same vector points file]
GRASS 5.7.cvs:~ > d.what.vect -x map=archsites_v
Buttons
Left: what's here
Right: quit
593557.5(E) 4925505.75(N)
archsites_v in user1 Point
field: 1
category: 5
driver: dbf
database: /users/shared/grassdata/spearfish57/user1/dbf
table: archsites_v
key column: cat
cat : 5
str1 : No Name
Done.
A possibly minor clue I noticed is that when it is going to work, the cursor
becomes a double-lined cross. When it won't work in tcltk mode, the cursor
becomes a single-lined cross. Maybe something or maybe a red herring.
I also thought it might be due to using d.what.vect without a value for map=
(to get values for all underlying features). But that didn't seem to have an
effect either way.
Hope this is helpful.
Michael
______________________________
Michael Barton, Professor & Curator
School of Human Origins, Cultures, & Societies
Arizona State University
Tempe, AZ 85287-2402
USA
voice: 480-965-6262; fax: 480-965-7671
www: http://www.public.asu.edu/~cmbarton
|
|
Mon, Aug 16 2004
22:53:12
|
|
Mail sent by guest
|
|
Michael,
> GRASS 5.7.cvs:~ > d.what.vect map=iowtopo1testarea
>
> Buttons
> Left: what's here
> Right: quit
> Broken pipe [1st left click produces no result; 2nd left click produces this
> error and exits]
I don't know what's going on, but did you *display* the map
with d.vect vefore querying? This is essential.
Just to exclude this "problem".
Markus
|
|
Mon, Feb 28 2005
23:06:25
|
|
Status changed to resolved by pcavallini
|
|