1

I have geometry file in *.xls file, but when I save in *.csv it say "some feature in your workbook might be lost if you save it as CSV (Comma delimited)" however I keep that file anyway and when I import that file in postgres it say "ERROR: extra data after last expected column". Any idea please?

1 Answer 1

1

I think the two messages are separate. The first message is just a warning that anything such as formulae, formatting and additional worksheets cannot be saved in a CSV as it is a simple ascii format. The second message suggests that you maybe have a text field as one of your attributes which contains a comma. This will effectively introduce an extra column break partway through the text field, hence the message about extra data after the last expected column. I recommend that you do a global search and replace to change all commas something else like a full-stop or a hyphen. You could also use a semicolon so long as you are sure that wont get interpreted as a column delimiter (it is sometimes used that way).

1
  • yeah, I did the search and found three commas from nowhere that confused my delimeter.
    – gagas
    Nov 10, 2014 at 8:36

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Not the answer you're looking for? Browse other questions tagged or ask your own question.