Details Ticket 3124


Comment | Reply | Take | Open


Serial Number 3124
Subject impossible to remove imported vector file
Area grass6
Queue grass
Requestors hmitaso@unity.ncsu.edu
Owner none
Status resolved
Last User Contact Wed Aug 31 21:56:16 2005 (3 yr ago)
Current Priority 30
Final Priority 70
Due No date assigned
Last Action Wed Aug 31 21:56:20 2005 (3 yr ago)
Created Tue Mar 29 18:58:31 2005 (3 yr ago)

Transaction History Ticket 3124


Tue, Mar 29 2005 18:58:31    Request created by guest  
Subject: impossible to remove imported vector file

Platform: GNU/Linux/i386
grass obtained from: Trento Italy site
grass binary for platform: Compiled from Sources

I am using GRASS CVS downloaded and compiled March 22.
In a transition from GRASS5.3 to GRASS6 I have converted quite a few files from
old to new vector format using v.convert. Some work without any problems, but
for some files, I cannot display them, but what is even worse, I cannot remove
them. It would be great to get at least the possibility to remove the file before
the next release. If I am just missing something, please let me know,

Helena 

g.remove vect=wetlandcheckd1
REMOVE [wetlandcheckd1]
ERROR: Cannot open old vector wetlandcheckd1@wrricc on level 1

v.convert wetlandcheckd@cenntenial_hm out=wetlandcheckd1
Reading dig file...
Input file is version 4.
Input file is portable.
0 points read to memory
5 lines read to memory
0 area boundaries read and written to output
0 dead points skipped
0 dead lines skipped
0 dead area boundaries skipped
0 elements of unknown type skipped
5 elements read to memory.
Reading dig_att file...
0 point categories read
0 line categories read
0 centroids read
0 dead point categories skipped
0 dead line categories skipped
0 dead centroids skipped
0 categories of unknown type skipped
0 categories read into memory.
Attaching categories...
Writing new file...
5 points and lines written to output file.
0 centroids written to output file.
No category labels (dig_cats) found, no table created.
Building topology ...
5 primitives registered
Building areas:  100%
0 areas built
0 isles built
Attaching islands:
Attaching centroids:  100%
Topology was built.
Number of nodes     :   6
Number of primitives:   5
Number of points    :   0
Number of lines     :   5
Number of boundaries:   0
Number of centroids :   0
Number of areas     :   0
Number of isles     :   0
GRASS 6.0.cvs (wakestate):~ > d.vect wetlandcheckd1 co=blue
ERROR: Cannot open old vector wetlandcheckd1@wrricc on level 0
Tue, Mar 29 2005 19:07:00    Mail sent by blazek@itc.it  
Return-Path <blazek@itc.it>
Delivered-To grass-bugs@lists.intevation.de
Message-ID <42498B30.3030409@itc.it>
Date Tue, 29 Mar 2005 19:06:56 +0200
From Radim Blazek <blazek@itc.it>
User-Agent Mozilla/5.0 (X11; U; Linux i686; en-US; rv:1.6) Gecko/20040113
X-Accept-Language en-us, en
MIME-Version 1.0
To Request Tracker <grass-bugs@intevation.de>
Cc grass5@grass.itc.it
Subject Re: [GRASS5] [bug #3124] (grass) impossible to remove imported vector file
References <20050329165831.3A0CB1006BB@lists.intevation.de>
In-Reply-To <20050329165831.3A0CB1006BB@lists.intevation.de>
Content-Type text/plain; charset=us-ascii; format=flowed
Content-Transfer-Encoding 7bit
X-Spam-Status No, hits=-4.9 tagged_above=-999.0 required=3.0 tests=BAYES_00
X-Spam-Level
What is written in head file?

Radim

Request Tracker wrote:
> this bug's URL: http://intevation.de/rt/webrt?serial_num=3124
> -------------------------------------------------------------------------
> 
> Subject: impossible to remove imported vector file
> 
> Platform: GNU/Linux/i386
> grass obtained from: Trento Italy site
> grass binary for platform: Compiled from Sources
> 
> I am using GRASS CVS downloaded and compiled March 22.
> In a transition from GRASS5.3 to GRASS6 I have converted quite a few files
from old to new vector format using v.convert. Some work without any problems,
but for some files, I cannot display them, but what is even worse, I cannot remove
them. It would be great to get at least the possibility to remove the file before
the next release. If I am just missing something, please let me know,
> 
> Helena 
> 
> g.remove vect=wetlandcheckd1
> REMOVE [wetlandcheckd1]
> ERROR: Cannot open old vector wetlandcheckd1@wrricc on level 1
> 
> v.convert wetlandcheckd@cenntenial_hm out=wetlandcheckd1
> Reading dig file...
> Input file is version 4.
> Input file is portable.
> 0 points read to memory
> 5 lines read to memory
> 0 area boundaries read and written to output
> 0 dead points skipped
> 0 dead lines skipped
> 0 dead area boundaries skipped
> 0 elements of unknown type skipped
> 5 elements read to memory.
> Reading dig_att file...
> 0 point categories read
> 0 line categories read
> 0 centroids read
> 0 dead point categories skipped
> 0 dead line categories skipped
> 0 dead centroids skipped
> 0 categories of unknown type skipped
> 0 categories read into memory.
> Attaching categories...
> Writing new file...
> 5 points and lines written to output file.
> 0 centroids written to output file.
> No category labels (dig_cats) found, no table created.
> Building topology ...
> 5 primitives registered
> Building areas:  100%
> 0 areas built
> 0 isles built
> Attaching islands:
> Attaching centroids:  100%
> Topology was built.
> Number of nodes     :   6
> Number of primitives:   5
> Number of points    :   0
> Number of lines     :   5
> Number of boundaries:   0
> Number of centroids :   0
> Number of areas     :   0
> Number of isles     :   0
> GRASS 6.0.cvs (wakestate):~ > d.vect wetlandcheckd1 co=blue
> ERROR: Cannot open old vector wetlandcheckd1@wrricc on level 0
> 
> -------------------------------------------- Managed by Request Tracker
> 
> _______________________________________________
> grass5 mailing list
> grass5@grass.itc.it
> http://grass.itc.it/mailman/listinfo/grass5
> 


Tue, Mar 29 2005 19:13:03    Mail sent by blazek@itc.it  
Return-Path <blazek@itc.it>
Delivered-To grass-bugs@lists.intevation.de
Message-ID <42498C9C.7000000@itc.it>
Date Tue, 29 Mar 2005 19:13:00 +0200
From Radim Blazek <blazek@itc.it>
User-Agent Mozilla/5.0 (X11; U; Linux i686; en-US; rv:1.6) Gecko/20040113
X-Accept-Language en-us, en
MIME-Version 1.0
To Request Tracker <grass-bugs@intevation.de>
Cc grass5@grass.itc.it
Subject Re: [GRASS5] [bug #3124] (grass) impossible to remove imported vector file
References <20050329165831.3A0CB1006BB@lists.intevation.de>
In-Reply-To <20050329165831.3A0CB1006BB@lists.intevation.de>
Content-Type text/plain; charset=us-ascii; format=flowed
Content-Transfer-Encoding 7bit
X-Spam-Status No, hits=-4.9 tagged_above=-999.0 required=3.0 tests=BAYES_00
X-Spam-Level
Can you try to run d.vect with debug level 5?

Radim

Request Tracker wrote:
> this bug's URL: http://intevation.de/rt/webrt?serial_num=3124
> -------------------------------------------------------------------------
> 
> Subject: impossible to remove imported vector file
> 
> Platform: GNU/Linux/i386
> grass obtained from: Trento Italy site
> grass binary for platform: Compiled from Sources
> 
> I am using GRASS CVS downloaded and compiled March 22.
> In a transition from GRASS5.3 to GRASS6 I have converted quite a few files
from old to new vector format using v.convert. Some work without any problems,
but for some files, I cannot display them, but what is even worse, I cannot remove
them. It would be great to get at least the possibility to remove the file before
the next release. If I am just missing something, please let me know,
> 
> Helena 
> 
> g.remove vect=wetlandcheckd1
> REMOVE [wetlandcheckd1]
> ERROR: Cannot open old vector wetlandcheckd1@wrricc on level 1
> 
> v.convert wetlandcheckd@cenntenial_hm out=wetlandcheckd1
> Reading dig file...
> Input file is version 4.
> Input file is portable.
> 0 points read to memory
> 5 lines read to memory
> 0 area boundaries read and written to output
> 0 dead points skipped
> 0 dead lines skipped
> 0 dead area boundaries skipped
> 0 elements of unknown type skipped
> 5 elements read to memory.
> Reading dig_att file...
> 0 point categories read
> 0 line categories read
> 0 centroids read
> 0 dead point categories skipped
> 0 dead line categories skipped
> 0 dead centroids skipped
> 0 categories of unknown type skipped
> 0 categories read into memory.
> Attaching categories...
> Writing new file...
> 5 points and lines written to output file.
> 0 centroids written to output file.
> No category labels (dig_cats) found, no table created.
> Building topology ...
> 5 primitives registered
> Building areas:  100%
> 0 areas built
> 0 isles built
> Attaching islands:
> Attaching centroids:  100%
> Topology was built.
> Number of nodes     :   6
> Number of primitives:   5
> Number of points    :   0
> Number of lines     :   5
> Number of boundaries:   0
> Number of centroids :   0
> Number of areas     :   0
> Number of isles     :   0
> GRASS 6.0.cvs (wakestate):~ > d.vect wetlandcheckd1 co=blue
> ERROR: Cannot open old vector wetlandcheckd1@wrricc on level 0
> 
> -------------------------------------------- Managed by Request Tracker
> 
> _______________________________________________
> grass5 mailing list
> grass5@grass.itc.it
> http://grass.itc.it/mailman/listinfo/grass5
> 


Tue, Jul 19 2005 23:24:27    Mail sent by mneteler  
Helena,

is this still an issue?

Markus
Wed, Jul 20 2005 01:32:43    Mail sent by hmitaso@unity.ncsu.edu  
Return-Path <hmitaso@unity.ncsu.edu>
Delivered-To grass-bugs@lists.intevation.de
Message-ID <42DD8FC7.2050003@unity.ncsu.edu>
Date Tue, 19 Jul 2005 19:41:59 -0400
From Helena <hmitaso@unity.ncsu.edu>
Organization NCSU
User-Agent Mozilla/5.0 (X11; U; Linux i686; en-US; rv:1.4) Gecko/20030624
X-Accept-Language en-us, en
MIME-Version 1.0
To Markus Neteler via RT <grass-bugs@intevation.de>
Subject Re: [bug #3124] (grass) impossible to remove imported vector file
References <20050719212427.0DCDF101EE1@lists.intevation.de>
In-Reply-To <20050719212427.0DCDF101EE1@lists.intevation.de>
Content-Type text/plain; charset=us-ascii; format=flowed
Content-Transfer-Encoding 7bit
X-Virus-Scanned Symantec AntiVirus Scan Engine
X-Spam-Status No, hits=-4.9 tagged_above=-999.0 required=3.0 tests=BAYES_00
X-Spam-Level
Markus Neteler via RT wrote:
> Helena,
> 
> is this still an issue?
> 
> Markus
> 
> -------------------------------------------- Managed by Request Tracker
I don't think that it was fixed - there was an empty line in the header
Radim apparently knows how to fix it (see the emails below), but I am not sure
that he did it.
Maybe you could ask him whether he implemented
his suggestion - if yes, I will update and test it again.
I think that he has suggested a fix in vector library but I am not sure where
it should go,

Helena




 >>> What is written in head file?
 >>
 >>
 >> thanks for the hint - the problem files have an extra empty line in
 >> the header - like this
 >>
 >> ORGANIZATION: GRASS Development Team
 >>
 >> DIGIT DATE:   Tue Mar 26 13:37:29
 >> DIGIT NAME:   jaro
 >> MAP NAME:     NCS-GRD2.dxf
 >> MAP DATE:
 >> MAP SCALE:    2400
 >> OTHER INFO:
 >> ZONE:         0
 >> MAP THRESH:   0.000000
 >>
 >>
 >> when I remove that empty line, it works OK (d.vect displays it and
 >> g.remove deletes it)
 >>
 >> I tried to find out why it is putting that line in and it looks like
 >> this file might have been imported under MS Windows (Jaro do you
 >> remember? all the files that do not work have x permissions)
 >> -rw-r--r--    1 helena   helena       2163 Jan 10 22:46 wetland
 >> -rwxr-xr-x    1 helena   helena       1851 Mar 29 11:46 wetlandcheckd
 >
 >
 >
 > 'file wetlandcheckd' will let you know the format.
 > try dos2unix on it?
 >
 >
 >
 >> let me know if I should explore this further - apparently it is the
 >> data that is the problem, but we should find a better way how to
 >> handle such data as other users may have something like this too,
 >
 >
 >
 > there is, use G_getl2() and not fgets() in whatever function is reading
 > the header. This deals with UNIX/DOS/MacOS9 text files nicely.
 > (Radim just added)


The header in < 6 is stored in the binary file, it is read by dig__fread_port_C
and set by Vect_set_*.

Vect_set_* or should probably take care of '\n'.

Radim


Wed, Jul 20 2005 23:47:40    Mail sent by mneteler  
Radim,

do you have a suggestion how to proceed with this bug
report?

Markus
Thu, Jul 21 2005 05:27:44    Mail sent by hmitaso@unity.ncsu.edu  
Return-Path <hmitaso@unity.ncsu.edu>
Delivered-To grass-bugs@lists.intevation.de
Mime-Version 1.0 (Apple Message framework v622)
In-Reply-To <20050720214740.5B44B101F11@lists.intevation.de>
References <20050720214740.5B44B101F11@lists.intevation.de>
Content-Type text/plain; charset=US-ASCII; format=flowed
Message-Id <b5ceab0bee205e215abcda132362f419@unity.ncsu.edu>
Content-Transfer-Encoding 7bit
From Helena Mitasova <hmitaso@unity.ncsu.edu>
Subject Re: [bug #3124] (grass) impossible to remove imported vector file
Date Wed, 20 Jul 2005 23:27:30 -0400
To Markus Neteler via RT <grass-bugs@intevation.de>
X-Mailer Apple Mail (2.622)
X-Virus-Scanned Symantec AntiVirus Scan Engine
X-Spam-Status No, hits=-4.9 tagged_above=-999.0 required=3.0 tests=BAYES_00
X-Spam-Level
Markus,

you could have added the emails that actually have Radim's suggestions 
that I emailed you in case that Radim does not
remember it - I had to look at those emails to find out that I had an 
empty line in the header - I should have emailed it to
the tracker too.

Helena

On Jul 20, 2005, at 5:47 PM, Markus Neteler via RT wrote:

> Radim,
>
> do you have a suggestion how to proceed with this bug
> report?
>
> Markus
>
> -------------------------------------------- Managed by Request Tracker
>
Helena Mitasova
Dept. of Marine, Earth and Atm. Sciences
1125 Jordan Hall, NCSU Box 8208,
Raleigh NC 27695
http://skagit.meas.ncsu.edu/~helena/


Thu, Jul 21 2005 11:13:08    Mail sent by guest  
I have submitted patch to CVS HEAD, please test.

Radim
Wed, Aug 31 2005 21:56:16    Mail sent by mneteler  
Seems to be resolved, closing.

Markus
Wed, Aug 31 2005 21:56:20    Status changed to resolved by mneteler  
Comment | Reply | Take | Open

You are currently authenticated as guest.
[Show Configuration] [Login as another user]

Users Guide - Mail Commands - Homepage of RequestTracker 1.0.7 - list any request