Problems with the csv driver

38 views
Skip to first unread message

gvSIGMac

unread,
Aug 30, 2012, 6:01:45 PM8/30/12
to openjum...@googlegroups.com
Dear all,
I'm having problem to read csv files in the set options mode. The same files are read w/o any trouble if auto mode is chosen.
Options offered are straight forward to the best of my knowledge but I ain't unable to figure out the comments meaning. I've tried different options that lead me to an empty message and
See View / Log For Stack Traces
-1 (Array Index Out of Bounds Exception)
So far I haven't found solution by my means.
Any clues?

________________________________
Agustin

Michaël Michaud

unread,
Aug 30, 2012, 6:19:34 PM8/30/12
to openjum...@googlegroups.com
Hi Agustin,
> I'm having problem to read csv files in the set options mode. The same files are read w/o any trouble if auto mode is chosen.
> Options offered are straight forward to the best of my knowledge but I ain't unable to figure out the comments meaning.
If the auto mode can read your file, why do you want to use the set
options mode ?

More seriously, I agree that the "set comment line" option may look awkward.
The code is quite flexible thanks to regular expression, but the UI is
not user friendly.

If you send me the header of your file, I can have a look and give you
some hints
(or try to improve the plugin UI so that it is more straightforward to
set the good option)

Micha�l
> I've tried different options that lead me to an empty message and
> See View / Log For Stack Traces
> -1 (Array Index Out of Bounds Exception)
> So far I haven't found solution by my means.
> Any clues?
>
> ________________________________
> Agustin
>
> -- You received this message because you are subscribed to the Google Groups openjump-users group. To post to this group, send email to openjum...@googlegroups.com. To unsubscribe from this group, send email to openjump-user...@googlegroups.com. For more options, visit this group at https://groups.google.com/d/forum/openjump-users?hl=en
>
>

Agustin Diez-Castillo

unread,
Aug 31, 2012, 2:44:22 AM8/31/12
to openjum...@googlegroups.com
Thanks. 

On Fri, Aug 31, 2012 at 12:19 AM, Michaël Michaud <michael...@free.fr> wrote:
Hi Agustin,

I'm having problem to read csv files in the set options mode. The same files are read w/o any trouble if auto mode is chosen.
Options offered are straight forward to the best of my knowledge but I ain't unable to figure out the comments meaning.
If the auto mode can read your file, why do you want to use the set options mode ?
Well, I download the 'raw' file from a Total Station and this is not readable by OpenJUMP because it has no header. When I add an appropriate header the file is read by OpenJUMP.  

More seriously, I agree that the "set comment line" option may look awkward. 
The code is quite flexible thanks to regular expression, but the UI is not user friendly.

If you send me the header of your file, I can have a look and give you some hints
(or try to improve the plugin UI so that it is more straightforward to set the good option)
So my question will move to: how can I read a csv with no header? I'm sending the file to Michael.  
If wishes are on ... Now the driver, let the user to manage two header lines but on occasion there are files with more than two lines header, maybe is a good option to skip n lines.

Michaël
I've tried different options that lead me to an empty message and
See View / Log For Stack Traces
-1 (Array Index Out of Bounds Exception)
So far I haven't found  solution by my means.
Any clues?

________________________________
Agustin

-- You received this message because you are subscribed to the Google Groups openjump-users group. To post to this group, send email to openjump-users@googlegroups.com. To unsubscribe from this group, send email to openjump-users+unsubscribe@googlegroups.com. For more options, visit this group at https://groups.google.com/d/forum/openjump-users?hl=en



-- You received this message because you are subscribed to the Google Groups openjump-users group. To post to this group, send email to openjump-users@googlegroups.com. To unsubscribe from this group, send email to openjump-users+unsubscribe@googlegroups.com. For more options, visit this group at https://groups.google.com/d/forum/openjump-users?hl=en

Reply all
Reply to author
Forward
0 new messages