[prev in list] [next in list] [prev in thread] [next in thread] 

List:       vtk-developers
Subject:    Re: [vtk-developers] Overview Question (Again)
From:       Jeff Baumes <jeff.baumes () kitware ! com>
Date:       2009-10-19 18:35:35
Message-ID: 2137e33e0910191135s12b8d48ewc9445f4caa0ecd3b () mail ! gmail ! com
[Download RAW message or body]

Jerry,

When reading in the files, set Field Delimiter Characters to ", "
(that's a comma and a space), and set Merge Consecutive Delimiters to
1.

The issue is how the CSV reader deals with combinations of spaces and
quotes. In the line

> "Jerry", 0, "Cse", 3

the "Cse" is parsed as " Cse" (with a space), since there is a space
between the comma and beginning quote. An alternate solution is to
remove the spaces after commas in your edge file.

Jeff

On Mon, Oct 19, 2009 at 8:27 AM, Jerry Clarke <clarke@arl.army.mil> wrote:
> If this is the wrong list to post this question, let me know.
> But I need to get this working.
>
> ---------------------------------
>
> http://www.sandia.gov/OverView/index.htm says to use this list for questions
> so ....
>
>
> I'm trying use TableToGraph in OverView. I can use it successfully on CSV
> files with numeric data but run into trouble with string data. For example :
>
> Vertex file :
>
> "Title", "Id", "Value"
> "Jerry", 0, 1.0
> "Clarke", 1, 2.0
> "Acc", 2, 100.0
> "Cse", 3, 200.0
>
> Edge File :
>
> "From", "FromId", "To", "ToId"
> "Jerry", 0, "Cse", 3
> "Jerry", 0, "Acc", 2
>
>
>
> I can create a graph using FromId and ToId but not From and To.
>
> Perhaps a related issue, when I read in the CSV I get the error :
>
> Generic Warning: In
> /home/clarke/ParaView3/ParaView3/Servers/ServerManager/vtkSMPropertyHelper.cxx,
> line 82
> Failed to locate property: Attribute
>
>
> Generic Warning: In
> /home/clarke/ParaView3/ParaView3/Servers/ServerManager/vtkSMPropertyHelper.cxx,
> line 451
> Call not supported for the current property type.
>
> All columns seem to load but the warning may point to something.
> I'm using the 0.7 version from CVS.
>
> Thanks
>
> Jerry
> _______________________________________________
> Powered by www.kitware.com
>
> Visit other Kitware open-source projects at
> http://www.kitware.com/opensource/opensource.html
>
> Follow this link to subscribe/unsubscribe:
> http://www.vtk.org/mailman/listinfo/vtk-developers
>
>
_______________________________________________
Powered by www.kitware.com

Visit other Kitware open-source projects at http://www.kitware.com/opensource/opensource.html

Follow this link to subscribe/unsubscribe:
http://www.vtk.org/mailman/listinfo/vtk-developers

[prev in list] [next in list] [prev in thread] [next in thread] 

Configure | About | News | Add a list | Sponsored by KoreLogic