[GRASS5] [bug #1389] (grass) v.cutregion.sh: resultant vector file(s) Comments are garbage

this bug's URL: http://intevation.de/rt/webrt?serial_num=1389
-------------------------------------------------------------------------

Subject: v.cutregion.sh: resultant vector file(s) Comments are garbage

Platform: GNU/Linux/i386
grass obtained from: Mirror of Trento site
grass binary for platform: Compiled from Sources
GRASS Version: 5.0.0 (August 2002)

When using v.cutregion.sh, the resultant vector file, and region boundary area-vector (if saved) contain the same garbage in the vector Comments field.

Original line vector file imported with v.in.shape has no comment.

Should it grab Original Scale from the input vector as well?

eg:
v.cutregion.sh input=coastline output=milf_coastln -s -r
v.info milf_coastln

+---------------------------------------------------------------------------+
| Layer: milf_coastln Date: 11/01/02 |
| Mapset: bathy Organization: GRASSroots organiza|
| Location: milford Name of creator: v.cutregion.sh |
| DataBase: /home/hb/grass5_data/ |
| Title: Vector map: coastline ( milf_coastln) |
----------------------------------------------------------------------------|
| |
| Type of Map: Vector (level: 2) Number of Categories: 1 |
| Number of lines: 11 |
| Number of areas: 0 |
| Number of islands: 0 |
| |
| Projection: New Zealand Map Grid (zone 0) |
| N: 5620507 S: 5600163 |
| E: 2109087 W: 2089091 |
| |
| Source date: 2002 |
| Original scale 1:1 |
| Map threshold: 0.00076 |
| Comments: |
| taß<øÿ¿05@ø@05@ |
| |
+---------------------------------------------------------------------------+

-------------------------------------------- Managed by Request Tracker

On Fri, Nov 01, 2002 at 12:22:11AM +0100, Request Tracker wrote:

this bug's URL: http://intevation.de/rt/webrt?serial_num=1389
-------------------------------------------------------------------------

Subject: v.cutregion.sh: resultant vector file(s) Comments are garbage

Platform: GNU/Linux/i386
grass obtained from: Mirror of Trento site
grass binary for platform: Compiled from Sources
GRASS Version: 5.0.0 (August 2002)

When using v.cutregion.sh, the resultant vector file, and region boundary area-vector (if saved) contain the same garbage in the vector Comments field.

Original line vector file imported with v.in.shape has no comment.

Should it grab Original Scale from the input vector as well?

eg:
v.cutregion.sh input=coastline output=milf_coastln -s -r
v.info milf_coastln

[...]

| taß<øÿ¿05@ø@05@ |
| |
+---------------------------------------------------------------------------+

Thanks for reporting.
There was "OTHER INFO" missing in the header contruction part of
v.cutregion.sh.

Fixed in CVS.

Markus