Feature Representation

In addition to the generic FME feature attributes that FME Workbench adds to all features (see About Feature Attributes), the OData reader makes use of the following special attribute names:

Attribute Name Contents

odata_type

The type of geometric entity stored within the feature. The valid values are listed below:

odata_none

odata_point

odata_line

odata_polygon

odata_collection

odata_name

The optional XML tag 'title' on an entry in a feed. This is not strictly a property and may be present on any entry. Any text value is permissible.

The OData feature attributes consist of the properties of the feed. All features contain an odata_type attribute, which, prior to OData v3.0, is always set to odata_none.

The following table summarizes the attribute types supported:

http://msdn.microsoft.com/en-ca/library/ff478141.aspx

Attribute Type Description

string

Represents fixed- or variable-length character data.

Example 1: Hello OData

binary

Represent fixed- or variable- length binary data. Base64 encoded value of the following: '[A-Fa-f0-9][A-Fa-f0-9]*'. Odd pairs of hex digits are not allowed.

Example 1: 23AB

Example 2: 23ABFF

guid

Represents a 16-byte (128-bit) unique identifier value. 'dddddddd-dddd-dddd-dddd-dddddddddddd' where each d represents [A-Fa-f0-9].

Example 1: 12345678-aaaa-bbbb-cccc-ddddeeeeffff

date

Represents a date value without time. yyyy-mm-dd Example 1: 2010-02-26

datetime, datetimeoffset

Represents date and time with an optional time-zone offset and no leap seconds. Has values ranging from 12:00:00 midnight, January 1, 1753 A.D. through 11:59:59 P.M, December 9999 A.D.

yyyy-mm-ddThh:mm[:ss[.fffffff]

Example 1: 2000-12-12T12:00

duration

Represents a signed duration in days, hours, minutes, and (sub)seconds, returned as a string.

Example 1: P104DT7H50M13.133S

time, timeofday

Represents the time of day with values ranging from 0:00:00.x to 23:59:59.y, where x and y depend upon the precision.

<timeLiteral>

timeLiteral = Defined by the lexical representation for time at http://www.w3.org/TR/xmlschema-2.

Example 1: 13:20:00

int64

Represents a signed 64-bit integer value.

[-][0-9]

Example 1: 64

Example 2: -64

int32

Represents a signed 32-bit integer value. [-][0-9]+

Example 1: 32

Example 2: -32

int16

Represents a signed 16-bit integer value.

[-][0-9]+

Example 1: 16

Example 2: -16

sbyte

Represents a signed 8-bit integer value

[-][0-9]+

Example 1: 8

Example 2: -8

byte

Unsigned 8-bit integer value in base 16 (hex).

[A-Fa-f0-9]+

Example 1: FF

single

Represents a floating point number with 7 digits precision that can represent values with approximate range of ± 1.18e -38 through ± 3.40e +38.

[0-9]+.[0-9]+

Example 1: 2.0

stream

Represents a binary data stream. This type is defined at http://msdn.microsoft.com/en-ca/library/ff478141.aspx.

Example 1: FRwvAAI…

double

Represents a floating point number with 15 digits precision that can represent values with approximate range of ± 2.23e -308 through ± 1.79e +308.

[0-9]+ ((.[0-9]+) | [E[+ | -][0-9]+])

Example 1: 1E+10

Example 2: 2.029

Example 3: 2.0

decimal

Represents numeric values with fixed precision and scale. This type can describe a numeric value ranging from negative 10^255 + 1 to positive 10^255 -1.

[0-9]+.[0-9]+

Example 1: 2.345

boolean

Represents the mathematical concept of binary-valued logic.

true | false

Example 1: true

Example 2: false