Feature Representation

In addition to the generic FME feature attributes that FME Workbench adds to all features (see About Feature Attributes), this format adds the format-specific attributes described in this section.

Attribute Name Contents
couchdb_id

This format attribute is the alphanumeric ID for the document which represents the feature on the CouchDB server. This ID is unique among all features of given feature type.

Input features that do not have a couchdb_id attribute will be assigned a unique ID by CouchDB. The user is responsible for ensuring that user-specified IDs are globally-unique on the CouchDB server.

The couchdb_id attribute is not modifiable once the document has been created.

couchdb_rev (read only) This format attribute is the revision ID for the last time the server’s document was modified expressed as a hexadecimal string. The couchdb_rev attribute of a CouchDB document is ­­­­regenerated each time the document is edited (including modifications to the couchdb_rev attribute) because of this the couchdb_rev attribute cannot be set by a user.
couchdb_raw_json This format attribute represents the document as serialized JSON. If “Read Raw JSON” is enabled on the reader, output features will contain the serialized JSON in this attribute. If “Write Raw JSON” is enabled on the writer, input features must have this attribute, and its value must be a valid serialized JSON object.

CouchDB attributes cannot have names that contain non-ASCII characters; however, the attribute values support full UTF-8.

The CouchDB attribute type mapping is as follows.

CouchDB Attribute Type FME Attribute Type

string(width)

fme_varchar(width)

string(width)

fme_char(width)

string(255)

fme_buffer

string(1)

fme_char

real(width, decimal)

fme_decimal(width, decimal)

string(24)

fme_datetime

string(8)

fme_date

string(10)

fme_time

integer

fme_int32

real(10,0)

fme_uint32

real(20,0)

fme_int64

real(20,0)

fme_uint64

integer

fme_int16

integer

fme_uint16

integer

fme_uint8

real(15,7)

fme_real32

real(31,15)

fme_real64

integer

fme_boolean