You are here: FME Readers and Writers > Esri Shape Reader/Writer > User Attributes

User Attributes

Shapefiles require at least one attribute be defined. The attribute definition given must match the definition of the file being read. If it does not, translation is halted and the true definition of the shapefile’s attributes is logged to the log file.

All shapefile attribute names must be uppercase and must not exceed 10 characters in length.

The following table shows the attribute types that are supported.

Name

The name of the shapefile to be written.

Type

Choose one of the following field types.

Width

The width parameter controls the maximum characters that can be stored by the field. For the number type, the width parameter is the total number of characters allocated to the field, including the decimal point.

Index

Writing Attribute Indexes

The Shape writer can index shape data by attribute and produce attribute index files. These files are named as <featureClass>.<attributeName>.atx. FME attempts to index all attributes that are flagged as INDEX in the user attributes tab of the FME Workbench Feature Type Properties.

Any attribute of type char or number that is indexed must be maximum 80 characters wide. Additionally, attribute names cannot contain characters that are illegal in Windows filenames.

If any attributes are flagged for indexing, FME automatically produces spatial index files for the feature type, regardless of the Write Spatial Index setting in the FME Workbench writer parameters dialog. For more information, see the writer parameter Write Spatial Index.

Writing attribute indexes requires that FME is running on a machine with ArcGIS installed.