Documentation ¶
Overview ¶
Package export implements a command to export a GBIF occurrence table into a TSV file compatible with the RFC 4180.
Index ¶
Constants ¶
This section is empty.
Variables ¶
View Source
var Command = &command.Command{
Usage: `export [-tax <file>]
[-i|--input <file>] [-o|--output <file>]`,
Short: "export to TSV RFC 4180 file",
Long: `
Command export reads a GBIF occurrence table from the standard input and
prints a TSV file compatible with RFC 4180 (using tabs instead of commas).
Once a file is exported, it is no longer compatible with GBIFer, as GBIF
occurrence tables do not follow the quotation rules of RFC 4180. Also, it uses
the column names "latitude" and "longitude" instead of "DecimalLatitude" and
"DecimalLongitude". While no longer compatible with GBIFer, the output file
will preserve GBIF ID fields, so it will be possible to trace the origin of
each occurrence.
By default, it will use the species name from the occurrence file. If the flag
--tax is defined, the indicated file will be used to retrieve the accepted
species name from the taxonomy.
By default, it will read the data from the standard input; use the flag
--input, or -i, to select a particular file.
By default, the results will be printed in the standard output; use the flag
--output, or -o, to define an output file.
`,
SetFlags: setFlags,
Run: run,
}
Functions ¶
This section is empty.
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.