{"action":"created","issue":{"url":"https://api.github.com/repos/mapnik/mapnik/issues/3065","labels_url":"https://api.github.com/repos/mapnik/mapnik/issues/3065/labels{/name}","comments_url":"https://api.github.com/repos/mapnik/mapnik/issues/3065/comments","events_url":"https://api.github.com/repos/mapnik/mapnik/issues/3065/events","html_url":"https://github.com/mapnik/mapnik/issues/3065","id":106149331,"number":3065,"title":"CSV Plugin: # of columns(11) > # of headers(9) parsed for row 2","user":{"login":"BergWerkGIS","id":4549888,"avatar_url":"https://avatars.githubusercontent.com/u/4549888?v=3","gravatar_id":"","url":"https://api.github.com/users/BergWerkGIS","html_url":"https://github.com/BergWerkGIS","followers_url":"https://api.github.com/users/BergWerkGIS/followers","following_url":"https://api.github.com/users/BergWerkGIS/following{/other_user}","gists_url":"https://api.github.com/users/BergWerkGIS/gists{/gist_id}","starred_url":"https://api.github.com/users/BergWerkGIS/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/BergWerkGIS/subscriptions","organizations_url":"https://api.github.com/users/BergWerkGIS/orgs","repos_url":"https://api.github.com/users/BergWerkGIS/repos","events_url":"https://api.github.com/users/BergWerkGIS/events{/privacy}","received_events_url":"https://api.github.com/users/BergWerkGIS/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":2,"created_at":"2015-09-12T11:27:08Z","updated_at":"2015-09-14T08:51:46Z","closed_at":null,"body":"@artemp there seems to be a bug with csv parsing.\r\n\r\nTrying to get the benchmarks working on Windows before moving to `boost@1.59` (https://github.com/mapbox/windows-builds/issues/56) I came across a csv parsing error.\r\n\r\nCommand I ran:\r\n\r\n```\r\nmapnik-gyp\\build\\Release\\test_rendering.exe --name roads.xml --map benchmark\\data\\roads.xml\r\n```\r\n\r\nOutputs **a lot** of (with different # of columns):\r\n```\r\nMapnik LOG> 2015-09-12 11:00:10: CSV Plugin: # of columns(11) > # of headers(9) parsed for row 2\r\n```\r\n\r\nI changed `csv_datasource.cpp` to output the offending line with each message and for example get:\r\n\r\n<pre>\r\nMapnik LOG> 2015-09-12 11:00:10: CSV Plugin: # of columns(11) > # of headers(9) parsed for <b>row 2</b>\r\n\"LINESTRING (1478396.617193207610399 6891531.804702173918486,1478382.845091919181868 6891499.554082627408206,1478361.561783624347299 6891449.124428308568895)\",56,motorway,0,1,1,motorways,19,1\r\n</pre>\r\n\r\nLooking into `roads.csv`, it turns out, that the offending line is [the last line (853)](https://github.com/mapnik/mapnik/blob/ad80c9165762b9b19917260529e76a63e4f1c6a3/benchmark/data/roads.csv#L853) and not **`row 2`** as in the message.\r\n\r\nNevertheless, the line looks fine to me."},"comment":{"url":"https://api.github.com/repos/mapnik/mapnik/issues/comments/140004658","html_url":"https://github.com/mapnik/mapnik/issues/3065#issuecomment-140004658","issue_url":"https://api.github.com/repos/mapnik/mapnik/issues/3065","id":140004658,"user":{"login":"artemp","id":59056,"avatar_url":"https://avatars.githubusercontent.com/u/59056?v=3","gravatar_id":"","url":"https://api.github.com/users/artemp","html_url":"https://github.com/artemp","followers_url":"https://api.github.com/users/artemp/followers","following_url":"https://api.github.com/users/artemp/following{/other_user}","gists_url":"https://api.github.com/users/artemp/gists{/gist_id}","starred_url":"https://api.github.com/users/artemp/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/artemp/subscriptions","organizations_url":"https://api.github.com/users/artemp/orgs","repos_url":"https://api.github.com/users/artemp/repos","events_url":"https://api.github.com/users/artemp/events{/privacy}","received_events_url":"https://api.github.com/users/artemp/received_events","type":"User","site_admin":false},"created_at":"2015-09-14T08:51:46Z","updated_at":"2015-09-14T08:51:46Z","body":"@beaugunderson - German locale is likely related to this issue. I'll need your help with testing :) "}}