# writers.text¶

The text writer writes out to a text file. This is useful for debugging or getting smaller files into an easily parseable format. The text writer supports both GeoJSON and CSV output.

## Example¶

{
"pipeline":[
{
"filename":"inputfile.las"
},
{
"type":"writers.text",
"format":"geojson",
"order":"X,Y,Z",
"keep_unspecified":"false",
"filename":"outputfile.txt"
}
]
}


## Options¶

filename
File to write to, or “STDOUT” to write to standard out [Required]
format
Output format to use. One of “geojson” or “csv”. [Default: csv]
order
Comma-separated list of dimension names, giving the desired column order in the output file, for example “X,Y,Z,Red,Green,Blue”. [Default: none]
keep_unspecified
Should we output any fields that are not specified in the dimension order? [Default: true]
jscallback
When producing GeoJSON, the callback allows you to wrap the data in a function, so the output can be evaluated in a <script> tag.