Skip to main content

category-attribute

schema/components/category-attribute/1.1.0/category-attribute.schema.json

A category attribute assigns categorical labels to geometric elements. It uses attribute_type = "category".

Values are stored as integers that index into a lookup table (via category-data):

  • table — A lookup table mapping integer indices to category names.
  • values — Integer indices into the lookup table, one per geometric element.
  • nan_description — A nan-categorical component defining how NaN values are interpreted.

See Understanding attributes for more detail.

Used by: channel-attribute, one-of-attribute.

Properties

category-attribute (v1.1.0)

An attribute that describes a category.

PropertyTypeDescriptionFlags
nameStringThe name of the attribute⬆️
keyStringAn identifier of the attribute, used to keep track of the attribute when it is renamed.
The identifier must be unique within an attribute list.⬆️
attribute_typeStringType of the attribute.⬆️
attribute_descriptioncategory-attribute-descriptionThe attribute description record.⬆️
tablelookup-tableLookup table associated with the attributes.⬆️
valuesinteger-array-1The index values of the attributes.⬆️
attribute_typeString
nan_descriptionnan-categoricalDescribes the values used to designate not-a-number.

Legend

FlagDescription
⬆️Inherited property
Required property

What is the reason for your feedback?