GeoJSON (Geographic JavaScript Object Notation) Writer Parameters
Writer Parameters
The character set encoding in which the GeoJSON text will be written. If no character set is specified, the GeoJSON text will be written in the UTF-8 character set.
Specifies whether or not the GeoJSON writer should preface the JSON text with a byte order marker to indicate the endianness of the Unicode text. The default value is No.
This determines whether output will adhere strictly to the GeoJSON grammar. An array will be used as the outermost element to represent multiple layers; a single layer will not be contained by an array.
Formatting Parameters
The formatting of the output JSON file.
Linear: The entire JSON document is output on one line. This option produces the smallest possible JSON files.
Pretty Print: The JSON document will contain additional whitespace characters, making it much more human-readable.
This parameter controls the indentation style in the JSON document, and is enabled when Formatting Type is Pretty Print. The indentation style can use either tab characters, or a variable number of space characters.
The writer will use the value of this parameter to limit the number of decimal digits printed for each coordinate.
Valid values range from 1 to 15. The default value is 10, which gives sub-millimeter accuracy when writing WGS84 coordinates. A lower number of digits can dramatically reduce the size of the output file when writing out a large number of coordinates.
This parameter has no effect on attribute values that contain floating point numbers.
Geometry
- Yes (default): Area and donut geometries will be converted to a "right-hand" orientation (that is, outer boundaries will be in a counterclockwise orientation and inner boundaries will be in a clockwise orientation).
- No: These geometries will be written out in their existing orientation.
By default, the GeoJSON writer will reproject all features to the WGS84/EPSG:4326 coordinate system.
Setting this parameter to No will disable this automatic reprojection, and feature geometries will be written in the coordinate system they had when arriving at the writer.
Features with no coordinate system will be assumed to already be in the WGS84 coordinate system.
JSONP
Specifies the JSONP JavaScript function name that the user wants to wrap the GeoJSON file with. JSONP (JSON with Padding) is developed as a standard for grabbing GeoJSON from external domains, that works well with AJAX calls.
The default value is null. If no value is set or the default is set, then the GeoJSON writer will output a GeoJSON file without the JSONP padding. (optional)