Schema validation

CityJSON schema download

version 0.5: - download cityjson-v05.schema.json

version 0.3: - download cityjson-v03.schema.json

version 0.2: - download cityjson-v02.schema.json

version 0.1: - download cityjson-v01.schema.json

Software to validate a file against the schema

cjvalschema validates a CityJSON against the schema and does extra validation, eg:

  • are the attributes of City Objects and metadata according to CityGML?
  • do the BuildingParts have a parent Building?
  • do the BuildingInstallation have a parent Building?
  • are the arrays for the boundaries and the semantics coherent? (same structure)
  • are there duplicate keys (IDs) for the City Objects? If yes then an error is returned.

Errors and warnings are returned to the user.

JSON Schema is used to validate.