Writer Directives

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

DATASET

The folder to which the ESIRJSON writer should write. Each feature type will be output as a single JSON file in this folder.

Required/Optional

Required

Mapping File Syntax

ESRIJSON_DATASET c:\data\esrijson

Workbench Parameter

Destination ESRIJSON Folder

WRITER_CHARSET

The character set encoding in which the ESRIJSON text will be written.

Values

UTF-8 | UTF-16 | UTF-16BE | UTF16-LE | UTF-32 | UTF-32BE | UTF-32LE

If no character set is specified, the ESRIJSON text will be written in the UTF-8 character set.

Required/Optional

Optional

Mapping File Syntax

ESRIJSON_WRITER_CHARSET UTF-16

Workbench Parameter

Output Character Set

WRITE_BOM

The value of this directive specifies whether or not the ESRIJSON writer should preface the JSON text with a byte order marker to indicate the endianness of the Unicode text.

Required/Optional

Optional

Values

Yes | No (default)

Mapping File Syntax

ESRIJSON_WRITE_BOM Yes

Workbench Parameter

Byte Order Marker

JSONP_FUNC_NAME

The value of this directive specifies the JSONP JavaScript function name that the user wants to wrap the ESRIJSON file with.

JSONP (JSON with Padding) is developed as a standard for grabbing JSON from external domains, which works well with AJAX calls.

Required/Optional

Optional

Values

The default value is null. If no value is set or the default is set, then the ESRIJSON writer will output ESRIJSON files without the JSONP padding.

Mapping File Syntax

ESRIJSON_JSONP_FUNC_NAME getFeatures

Workbench Parameter

JSONP Function Name