... the user friendly GPS tool


Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
CSV Support
#5
(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
Reply


Messages In This Thread
CSV Support - by routeconverter - 19.02.2018, 17:22
RE: CSV Support - by nordlicht - 19.02.2018, 18:09
RE: CSV Support - by routeconverter - 19.02.2018, 19:18
RE: CSV Support - by nordlicht - 20.02.2018, 08:17
RE: CSV Support - by routeconverter - 20.02.2018, 12:55
RE: CSV Support - by nordlicht - 21.02.2018, 21:17
RE: CSV Support - by pezi - 01.05.2018, 09:05
RE: CSV Support - by routeconverter - 01.05.2018, 19:07
RE: CSV Support - by pezi - 05.05.2018, 08:01
RE: CSV Support - by routeconverter - 07.05.2018, 16:24
RE: CSV Support - by ulko - 05.05.2018, 08:59
RE: CSV Support - by lundefugl - 05.08.2018, 13:14
RE: CSV Support - by routeconverter - 06.08.2018, 11:17
RE: CSV Support - by Hein Blöd - 11.02.2021, 03:02
RE: CSV Support - by routeconverter - 12.02.2021, 15:15

Forum Jump:


Users browsing this thread: 2 Guest(s)