Writer Directives

The suffixes shown are prefixed by the current <WriterKeyword> in a mapping file. By default, the <WriterKeyword> for the GeoJSON writer is GEOJSON.

DATASET

Required/Optional: Required

The file to which the GeoJSON writer should write. If the file does not exist, it will be created.

Example

GEOJSON_DATASET c:\geojson_file.json

Workbench Parameter

Destination GeoJSON File

STRICT_SPEC

Required/Optional: Optional

This determines whether output will adhere strictly to the GeoJSON grammar. An array will be used as the outermost element in order to represent multiple layers; a single layer will not be contained by an array. Possible values for this directive are YES and NO.

Example:

GEJSON STRICT_SPEC YES

Workbench Parameter

Fully conform to GeoJSON grammar

WRITER_CHARSET

Required/Optional: Optional

The character set encoding in which the GeoJSON text will be written. Possible values for this directive are UTF-8, UTF-16, UTF-16BE, UTF16-LE, UTF-32, UTF-32BE and UTF-32LE. If no character set is specified, the GeoJSON text will be written in the UTF-8 character set.

Example:

GEOJSON_WRITER_CHARSET UTF-16

Workbench Parameter

Output Character Set

WRITE_BOM

Required/Optional: Optional

The value of this directive 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. Possible values for this directive are Yes and No. The default value is No.

Example:

GEOJSON_WRITE_BOM Yes

Workbench Parameter

Byte Order Marker

JSONP_FUNC_NAME

Required/Optional: Optional

The value of this directive 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 JSON from external domains, which 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.

Example:

JSONP_FUNC_NAME getFeatures

Workbench Parameter

JSONP Function Name