{
	"description": "Settings and classes for plane slope classification",
	"type": "object",
	"$schema": "http://json-schema.org/draft-04/schema#",
	"title": "Plane Slope Class Info",
	"required": [
		"settings",
		"classes"
	],
	"definitions": {
		"method-2": {
			"type": "object",
			"description": "Classification method 2",
			"properties": {
				"sloping_plane_classes_maximum_angle": {
					"type": "number",
					"description": "maximum inclination angle of sloping plane patches [deg]",
					"maximum": 360.0,
					"minimum": -360.0
				},
				"sloping_plane_classes_minimum_angle": {
					"type": "number",
					"description": "minimum inclination angle of sloping plane patches [deg]",
					"maximum": 360.0,
					"minimum": -360.0
				},
				"plane_classification_method": {
					"type": "integer",
					"description": "method ID (=2)",
					"maximum": 2,
					"minimum": 2
				}
			},
			"required": [
				"plane_classification_method",
				"sloping_plane_classes_minimum_angle",
				"sloping_plane_classes_maximum_angle"
			]
		},
		"method-1": {
			"type": "object",
			"description": "Classification method 1",
			"properties": {
				"maximum_inclination_angle_horizontal": {
					"type": "number",
					"description": "maximum inclination angle of horizontal plane patches [deg]",
					"maximum": 360.0,
					"minimum": -360.0
				},
				"plane_classification_method": {
					"type": "integer",
					"description": "method ID (=1)",
					"maximum": 1,
					"minimum": 1
				}
			},
			"required": [
				"plane_classification_method",
				"maximum_inclination_angle_horizontal"
			]
		}
	},
	"properties": {
		"classes": {
			"type": "object",
			"description": "Class definition table",
			"additionalProperties": false,
			"patternProperties": {
				"^[0-9]+$": {
					"description": "one field per class, field name is class number, field value is class name",
					"type": "string"
				}
			}
		},
		"settings": {
			"type": "object",
			"description": "Classification settings, details see documentation of rdbplanes",
			"oneOf": [
				{
					"$ref": "#/definitions/method-1"
				},
				{
					"$ref": "#/definitions/method-2"
				}
			]
		}
	}
}