Code Monkey home page Code Monkey logo

Comments (3)

jratike80 avatar jratike80 commented on June 18, 2024

For me a multiline header line feels very odd. Excel really seems to rely on making difference between LF and CRLF.

image

I would accept that GDAL does not parse such header lines.

I tried to read a test CSV back to Excel with poor success. I trust you that it is possible somehow but I did not manage to guess how. I could not read it with QGIS either. Maybe it is because of my locale (Finnish).
This is how Excel wants to open the CSV file that it created by itself:

image

from gdal.

atlight avatar atlight commented on June 18, 2024

Excel really seems to rely on making difference between LF and CRLF.

But see my note:

(Note, when you use Excel to create a file with line breaks in cells, those line breaks are saved as LF only, even though the line breaks between records are CRLF. However, no CSV reader I tested behaved differently when I interchanged LF and CRLF in various permutations.)

It is true that Excel saves the file like that, but it does not rely on that pattern of line endings when opening a file.

from gdal.

jratike80 avatar jratike80 commented on June 18, 2024

I am sceptical but I may be wrong. How could it make a difference between the LF that is separating the lines in the header and after the header? But anyway, user can simply avoid multiline headers or edit the CSV file before reading it with GDAL.

from gdal.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.