Export GDF with label quoted

2 views
Skip to first unread message

Gutemberg Vieira

unread,
Jun 26, 2009, 3:52:59 PM6/26/09
to guess-discuss
Hi,

I think this may be a bug.
When I export a GDF file, if labels have the comma character ',' as
part of it, and as labels not exported inside quotes, then I try to
open this file, it will give errors because of this character.
Also, I don't know how to quote the single quote when write a GDF
file. Sorry, but I couldn't find this in the manual.

Thanks for nay help,
Gutemberg

Eytan Adar

unread,
Jun 26, 2009, 7:54:49 PM6/26/09
to guess-...@googlegroups.com
That's probably a bug but I'm afraid I can't replicate it...

I open sample.gdf, and then do:

v1.label = "something,something else"
exportGDF("dummy.gdf")

I then exit and load dummy.gdf and it seems to work. The generated
gdf appears to have labels quoted.

Which version are you using?

-Eytan

Gutemberg Vieira

unread,
Jun 30, 2009, 2:18:26 PM6/30/09
to guess-...@googlegroups.com
Eytan,

In fact, I was precipate, what happened is that the last NodeField in
the GDF was image like below:

nodedef>name VARCHAR,label VARCHAR,labelvisible BOOLEAN,color
VARCHAR,x DOUBLE,y DOUBLE,visible BOOLEAN,strokecolor
VARCHAR,labelcolor VARCHAR,fixed BOOLEAN,style TINYINT,width
DOUBLE,height DOUBLE,image VARCHAR

And the last char in a node definition was a comma like below:

V123,V123,false,skyblue,422.62374016373116,86.74167361782948,true,cadetblue,,false,2,10.0,10.0,

Removing the Image Field from de nodedef line and the last comma in
the node lines, fixed the file. So, I think this was the problem.

--
Gutemberg
Reply all
Reply to author
Forward
0 new messages