[GRASS5] [bug #976] (grass) v.transform would not read that header of files

Carl wrote:

I'll have to look to see if I can dig something up or reproduce this.

My recollection is that it was a map generated by v.in.dxf.

That was also true in my case, so I ran some tests, importing vector
files with v.in.dxf then exporting them with v.out.ascii. They
consistently have a blank line after the first line of the header.

The problem appears to be that when v.in.dxf assigns the organization
name as "GRASS Development Team" on line 44 of make_header.c that it
includes a newline in the string. The newline is stored in the binary
vector file header and when v.out.ascii prints the header it adds
another newline. So we have a blank line.

I removed the newline in the string and it works fine, but I haven't set
up CVS write access yet, so the problem still needs to be fixed.

Roger Miller

On Thu, Apr 04, 2002 at 10:41:34AM -0700, rgrmill@rt66.com wrote:

Carl wrote:

> I'll have to look to see if I can dig something up or reproduce this.
>
> My recollection is that it was a map generated by v.in.dxf.

That was also true in my case, so I ran some tests, importing vector
files with v.in.dxf then exporting them with v.out.ascii. They
consistently have a blank line after the first line of the header.

The problem appears to be that when v.in.dxf assigns the organization
name as "GRASS Development Team" on line 44 of make_header.c that it
includes a newline in the string. The newline is stored in the binary
vector file header and when v.out.ascii prints the header it adds
another newline. So we have a blank line.

thanks for investigating!

I removed the newline in the string and it works fine, but I haven't set
up CVS write access yet, so the problem still needs to be fixed.

You are still welcome :slight_smile:

If you send a diff to me, I can upload for now.

Markus