[GRASS5] [bug #976] (grass) v.transform would not read that header of files
Markus Neteler
neteler at itc.it
Thu Apr 4 12:48:15 EST 2002
On Thu, Apr 04, 2002 at 10:41:34AM -0700, rgrmill at 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 :-)
If you send a diff to me, I can upload for now.
Markus
More information about the grass-dev
mailing list