https://cgi-italy.github.io/insula/schemas/v1.1.1/common/vector-feature-property.schema.json
Definition of a vector feature property
Abstract | Extensible | Status | Identifiable | Custom Properties | Additional Properties | Access Restrictions | Defined In |
---|---|---|---|---|---|---|---|
Can be instantiated | No | Unknown status | Unknown identifiability | Forbidden | Allowed | none | vector-feature-property.schema.json |
merged type (Vector feature property)
all of
one (and only one) of
{
"id": "numeric_property",
"name": "Numeric property",
"type": "number",
"domain": {
"min": 0,
"max": 100
},
"filterable": true,
"sortable": true
}
{
"id": "string_property",
"name": "String property",
"type": "string",
"filterable": true,
"sortable": true
}
{
"id": "enum_property",
"name": "Enum property",
"type": "enum",
"domain": {
"values": [
{
"value": 0,
"label": "Zero",
"color": "#FF0000"
},
{
"value": 1,
"label": "One",
"color": "#00FF00"
}
]
},
"filterable": true,
"sortable": true
}
Reference this group by using
{"$ref":"https://cgi-italy.github.io/insula/schemas/v1.1.1/common/vector-feature-property.schema.json#/$defs/common"}
Property | Type | Required | Nullable | Defined by |
---|---|---|---|---|
id | string |
Required | cannot be null | Vector feature property |
name | string |
Required | cannot be null | Vector feature property |
description | string |
Optional | cannot be null | Vector feature property |
filterable | boolean |
Optional | cannot be null | Vector feature property |
sortable | boolean |
Optional | cannot be null | Vector feature property |
quantity | object |
Optional | cannot be null | Vector feature property |
The property id (e.g. column name)
id
is required
Type: string
(Property identifier)
cannot be null
defined in: Vector feature property
string
(Property identifier)
The property human readable title
name
is required
Type: string
(Property title)
cannot be null
defined in: Vector feature property
string
(Property title)
The property description
description
is optional
Type: string
(Property description)
cannot be null
defined in: Vector feature property
string
(Property description)
A flag indicating if filtering should be enabled for this property
filterable
is optional
Type: boolean
(Property filtering flag)
cannot be null
defined in: Vector feature property
boolean
(Property filtering flag)
The default value is:
true
A flag indicating if sorting should be enabled for this property
sortable
is optional
Type: boolean
(Property sorting flag)
cannot be null
defined in: Vector feature property
boolean
(Property sorting flag)
The default value is:
true
The quantity measured by a variable
quantity
is optional
Type: object
(Measured quantity)
cannot be null
defined in: Vector feature property
object
(Measured quantity)
{
"id": "area_m2",
"name": "Area",
"description": "Area in squared meters",
"units": "m²"
}
Reference this group by using
{"$ref":"https://cgi-italy.github.io/insula/schemas/v1.1.1/common/vector-feature-property.schema.json#/$defs/stringProperty"}
Property | Type | Required | Nullable | Defined by |
---|---|---|---|---|
type | string |
Required | cannot be null | Vector feature property |
subType | string |
Optional | cannot be null | Vector feature property |
type
is required
Type: string
(String property type constant)
cannot be null
defined in: Vector feature property
string
(String property type constant)
constant: the value of this property must be equal to:
"string"
subType
is optional
Type: string
(String property subtype)
cannot be null
defined in: Vector feature property
string
(String property subtype)
enum: the value of this property must be equal to one of the following values:
Value | Explanation |
---|---|
"url" |
The string should be interpreted as an URL |
"imageUrl" |
The string should be interpreted as an image URL |
Reference this group by using
{"$ref":"https://cgi-italy.github.io/insula/schemas/v1.1.1/common/vector-feature-property.schema.json#/$defs/booleanProperty"}
Property | Type | Required | Nullable | Defined by |
---|---|---|---|---|
type | string |
Required | cannot be null | Vector feature property |
type
is required
Type: string
(Boolean property type constant)
cannot be null
defined in: Vector feature property
string
(Boolean property type constant)
constant: the value of this property must be equal to:
"boolean"
Reference this group by using
{"$ref":"https://cgi-italy.github.io/insula/schemas/v1.1.1/common/vector-feature-property.schema.json#/$defs/numericProperty"}
Property | Type | Required | Nullable | Defined by |
---|---|---|---|---|
type | string |
Required | cannot be null | Vector feature property |
domain | object |
Optional | cannot be null | Vector feature property |
type
is required
Type: string
(Numeric property type constant)
cannot be null
defined in: Vector feature property
string
(Numeric property type constant)
constant: the value of this property must be equal to:
"number"
Definition of a numeric variable domain
domain
is optional
Type: object
(Numeric domain)
cannot be null
defined in: Vector feature property
object
(Numeric domain)
{
"min": 0,
"max": 100,
"step": 1,
"noData": -1
}
Reference this group by using
{"$ref":"https://cgi-italy.github.io/insula/schemas/v1.1.1/common/vector-feature-property.schema.json#/$defs/enumProperty"}
Property | Type | Required | Nullable | Defined by |
---|---|---|---|---|
type | string |
Required | cannot be null | Vector feature property |
domain | object |
Required | cannot be null | Vector feature property |
multifilterSupported | boolean |
Optional | cannot be null | Vector feature property |
type
is required
Type: string
(Enum property type constant)
cannot be null
defined in: Vector feature property
string
(Enum property type constant)
constant: the value of this property must be equal to:
"enum"
Definition of a categorical variable domain
domain
is required
Type: object
(Categorical domain)
cannot be null
defined in: Vector feature property
object
(Categorical domain)
{
"values": [
{
"value": 0,
"label": "First"
},
{
"value": 1,
"label": "Second"
}
]
}
When set allow to specify multiple options when filtering by this attribute
multifilterSupported
is optional
Type: boolean
(Enable Multi filtering)
cannot be null
defined in: Vector feature property
boolean
(Enable Multi filtering)
Reference this group by using
{"$ref":"https://cgi-italy.github.io/insula/schemas/v1.1.1/common/vector-feature-property.schema.json#/$defs/dateProperty"}
Property | Type | Required | Nullable | Defined by |
---|---|---|---|---|
type | string |
Required | cannot be null | Vector feature property |
domain | object |
Optional | cannot be null | Vector feature property |
outputStringFormat | string |
Optional | cannot be null | Vector feature property |
inputStringFormat | string |
Optional | cannot be null | Vector feature property |
type
is required
Type: string
cannot be null
defined in: Vector feature property
string
constant: the value of this property must be equal to:
"date"
Definition of a date variable domain
domain
is optional
Type: object
(Time domain)
cannot be null
defined in: Vector feature property
object
(Time domain)
{
"min": "1928-12-16T00:00:00Z",
"max": "1982-03-02T23:59:59Z"
}
The format used for displaying the date values (ref: https://momentjs.com/docs/#/displaying/format/)
outputStringFormat
is optional
Type: string
(String format)
cannot be null
defined in: Vector feature property
string
(String format)
The format used to parse date values from input string. Not supported. Use ISO8601 format
inputStringFormat
is optional
Type: string
(Input string format)
cannot be null
defined in: Vector feature property
string
(Input string format)