Skip to content
On this page

Overview | Individual Tree

Basics: LocationCoordinatesImage

Version: 0.0.1

Description ...

Schema

https://schema.vinv.io/vinv-individual-tree/0.0.1.json

Click me to view the code
json
{
    "$id": "https://schema.vinv.io/vinv-individual-tree/0.0.1.json",
    "$schema": "http://json-schema.org/draft-07/schema#",
    "title": "Individual Tree",
    "description": "Tree definition",
    "type": "object",
    

    "required": [
        "location",
        "species",
        "dbh"
    ],
    "properties": {
        "location": {
            "$ref": "https://schema.vinv.io/location/0.0.1.json"
        },
        "species": {
            "$ref": "https://schema.vinv.io/species/0.0.1.json"
        },
        "dbh": {
            "title": "Diameter at Breast Height",
            "description": "Diameter in centimeter",
            "type": "number",
            "minimum": 1,
            "maximum": 100,
            "multipleOf" : 0.1,
            "examples": [
                34,
                56
            ],
            "vinv:unit": "Centimeter",
            "vinv:unitSymbol": "cm",
            "vinv:speech": true
        },
        "height":{
            "title": "Height",
            "description": "Height in Meter",
            "type": ["number", "null"],
            "minimum": 0.5,
            "maximum": 99,
            "multipleOf" : 0.1,
            "examples": [
                14,
                13.5,
                15.60
            ],
            "vinv:unit": "Meter",
            "vinv:unitSymbol": "m",
            "vinv:speech": true
        },
        "trunk": {
            "type": ["object", "null"],
            "title": "Trunk definition",
            "description": "Trunk definition",
            "required": [
                "dimensions"
            ],
            "properties": {
                "dimensions": {
                    "title": "Trunk Dimensions",
                    "description": "Diameter per height",
                    "type": "array",
                    "items": {"$ref": "#/$defs/dimension_at_height"}
                },
                "image_trunk": { 
                    "title": "Image of the trunk",
                    "description": "Image of the trunk",
                    "$ref": "https://schema.vinv.io/image/0.0.1.json"
                }
            }
        },
        "crown": {
            "type": ["object", "null"],
            "title": "Crown",
            "description": "Crown definition",
            "required": [
                "dimensions"
            ],
            "properties": {
                "dimensions": {
                    "title": "Crown Dimensions",
                    "description": "Diameter per height",
                    "type": "array",
                    "items": {"$ref": "#/$defs/dimension_at_height"}
                },
                "image_crown": { 
                    "title": "Image of the trunk",
                    "description": "Image of the trunk",
                    "$ref": "https://schema.vinv.io/image/0.0.1.json"
                }
            }
        },
        "birth": {
            "title": "Birthday",
            "description": "Birthday of the tree",
            "type": ["string", "null"],
            "format": "date",
            "examples": [
                "2010-09-13"
            ]
        }
    },
    "$defs": {
        "dimension_at_height":{
            "$schema": "http://json-schema.org/draft-07/schema#",
            "title": "Diameter at height",
            "description": "Array including height and diameter at height",
            "type": ["object", "null"],
            "minItems":2,
            "maxItems": 2,
            "additionalItems": false,
            "properties": {
                "height":{
                    "type": "number",
                    "title": "Height",
                    "description": "Height of tree in PERCENT where diameter is measured",
                    "minimum": 0.1,
                    "maximum": 1,
                    "examples": [
                        0.5,
                        0.1
                    ]
                },
                "diameter": {
                    "type": "number",
                    "title": "Diameter",
                    "description": "Diameter in CENTIMETER at measured height",
                    "minimum": 10,
                    "maximum": 100,
                    "examples": [
                        34,
                        38
                    ]
                }
            }
        }
    }
}
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139

Go to the full documentation.

Example File

This example file is automatically generated. Raw Example

json
{
  "location": {
    "coordinates": {
      "longitude": 130.5627874,
      "latitude": 50.5627874,
      "altitude": 130
    },
    "accuracy": 12,
    "geogrid": {
      "h3": "8428309ffffffff",
      "geohash": "ww8p1r4t8"
    }
  },
  "species": "JM2",
  "dbh": 56,
  "height": 15.6,
  "trunk": {
    "dimensions": [
      {
        "height": 0.1,
        "diameter": 38
      }
    ],
    "image_trunk": {
      "uri": "https://schema.vinv.io/asset/img/logo.png",
      "encoder": "image/jpeg",
      "compression": 0.8,
      "width": 500,
      "height": 500
    }
  },
  "crown": {
    "dimensions": [
      {
        "height": 0.1,
        "diameter": 38
      }
    ]
  },
  "birth": "2010-09-13"
}
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40

Released under the GNU GENERAL PUBLIC LICENSE.