isawnyu / geocollider

Discover potential matches between multiple place databases
MIT License
5 stars 2 forks source link

Column count "off by one" error #18

Open Jmuccigr opened 6 years ago

Jmuccigr commented 6 years ago

When doing a comparison of two csv files where my id is in the first column and lat and long are in the 31st and 32nd columns, and my parameters are:

:separator=>",", :headers=>true, :quote_char=>"\"", :lat=>"32", :lon=>"31", :id=>"1"}

I get the expected output. If I change the parameters to say that there is no header, I get no output.

If I also starting counting columns at 0 not 1, I again get the expected output.

Obviously the presence or absence of a header row shouldn't change the counting method.

I suspect this the parser, but I'm not up to figuring it out (apparently).

PS using "| |" to indicate the default value is a bit weird to me, as is showing a box for a null value. Is that a ruby thing?