Datatypes

Length (linear dimension)

ID length

DatatypeNot PIIDraft

This record is a draft: it has not been reviewed yet and may be incomplete or wrong. Do not rely on it for compliance decisions. Help improve it (see CONTRIBUTING.md).

Size of an object measured along one dimension, such as the length of a cable, the depth of a shelf or the height of a person. Datasets store it as a number in millimetres, centimetres, metres, inches or feet, or in pixels for images and screen elements, with the unit either in the value or in the column name or metadata. The regular expression recognizes only values that carry one of these unit symbols. Height and width are narrower datatypes for the vertical and the horizontal dimension.

Parent datatype
Numeric value numeric
Categories
All measurable values (percentage, amount and e.t.c), Common
Countries
Global (not tied to a country)
Languages
Common to most languages
Wikidata
P2043
Quality
90/100 · missing: detector coverage
Metacrafter rules
no detection rule yet
Supported by tools
no tool record lists this type yet

Regular expression

^\d+(?:[.,]\d+)?\s?(?:mm|cm|m|in|ft|px)\.?$

Python re syntax.

Examples

ValueDescription
2.5 mmetres
180 cmcentimetres
1920pxpixels without a space
6 ft.feet, abbreviation with a dot
cm invalidunit without a number
72.5 kg invalidunit of mass

Child datatypes

IDNameCategoriesCountriesDescription
height Height draft values, common global Vertical size of a person or an object, such as the height of a person, a building, a product package or an image. Datasets usually keep...
width Width draft values, common global Horizontal size of an object measured from side to side, such as the width of an image, a screen, a piece of furniture or a road....

Translations

LanguageNameDescription
RussianДлина

Sources

Use this record