You are here: FME Readers and Writers > Oracle Spatial Object Reader/Writer > Feature Representation

Feature Representation

Features read from Oracle Spatial consist of a series of attribute values and geometry data. The feature type of each Database feature is as defined on its DEF line.

Features written to the database have the destination table as their feature type, and attributes as defined by on the DEF line.

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

Attribute/Trait Name

Contents

oracle_type

This attribute stores the type of geometric entity stored within the feature. The valid values are:

oracle_nil
oracle_point
oracle_line
oracle_area

oracle_arc
oracle_rectangle
oracle_circle

oracle_solid
oracle_surface
oracle_multipoint

oracle_multiline
oracle_multipoly

oracle_multisolid
oracle_multisurface
oracle_collection
oracle_raster
oracle_point_cloud

oracle_srid

This attribute or trait is defined only when reading from an Oracle table which has spatial referencing information. It contains the spatial reference identifier (SRID) for the geometry column retrieved. Its value will be the same for all features returned from a particular table when writing vector geometry. Raster features each have an individual coordinate system per feature which specified by this attribute.

The SRID value is used to look up a coordinate system, which is converted to an FME coordinate system and attached to each feature returned by the reader.

This attribute is not used by the Oracle Spatial writer when writing vector geometry.

CoordSys This trait (only present when HANDLE_MULTIPLE_SPATIAL_COLUMNS is enabled) stores the FME coordinate system name that corresponds to the oracle_srid trait.

Features read from, or written to, Oracle Spatial also have an attribute for each column in the database table. The feature attribute name will be the same as the source or destination column name. The attribute and column names are case-sensitive.

The geometry descriptions given here are only entirely correct when using the default geometry encoding. When reading structured geometry from a table with the object model (using the STRUCTURED_GEOMETRY directive), the geometry will be formatted slightly differently. The section Structured Geometry Representation describes how geometry objects are represented when structured geometry is enabled.