20.02.2018, 12:55
(20.02.2018, 08:17)nordlicht Wrote: funktioniert jetzt, allerdings interpretiert RC die entstandenen CSV-Dateien dann immer als Track, obwohl sie ja eigentlich ohne Typ sind. Ist das eine Nebenwirkung der Columbus- und QStarz-CSV-Formate?
Das ist keine Nebenwirkung. Eigentlich weiß man ja nicht, was die Positionen in einer CSV-Datei denn nun sind. Also habe ich Track genommen. Hätte auch Wegpunkte sein können, doch die meiste Dateien, die ich zugeschickt bekommen habe, waren Tracks.
(20.02.2018, 08:17)nordlicht Wrote: Bei CSV_Komma wird nur das Beschreibungsfeld in "" eingefaßt, bei CSV_Semicolon alle Felder, ist das so beabsichtigt?
So macht es die Bibliothek, die ich verwende.
(20.02.2018, 08:17)nordlicht Wrote: RC schreibt in die CSV-Dateien Unix-Linefeeds (nur LF), was den normalen Windows-User etwas irritieren wird, wenn er eine solche Datei mit dem Windows-Notepad öffnet. Das erwartet CR+LF als Zeilenschaltung, sonst wird der Dateiinhalt bei reinen Textdateien als fortlaufende Zeile angezeigt.
Wenn man Wordpad / Write nimmt, sieht es wieder besser aus, oder?
Zitat aus https://github.com/FasterXML/jackson-dat...master/csv
Quote:Since CSV is a very loose "standard", there are many extensions to basic functionality. Jackson supports following extension or variations:
- Customizable delimiters (through CsvSchema)
- Default separator is comma (,), but any other character can be specified as well
- Default text quoting is done using double-quote ("), may be changed
- It is possible to enable use of an "escape character" (by default, not enabled): some variations use \ for escaping. If enabled, character immediately followed will be used as-is, except for a small set of "well-known" escapes (\n, \r, \t, \0)
- Linefeed character: when generating content, the default linefeed String used is "\n" but this may be changed
- Null value: by default, null values are serialized as empty Strings (""), but any other String value be configured to be used instead (like, say, "null", "N/A" etc)
- Use of first row as set of column names: as explained earlier, it is possible to configure CsvSchema to indicate that the contents of the first (non-comment) document row is taken to mean set of column names to use
- Comments
- When enabled (via CsvSchema, or enabling JsonParser.Feature.ALLOW_YAML_COMMENTS), if a row starts with a # character, it will be considered a comment and skipped
--
Christian
Christian
