Skip to content

Commit

Permalink
Add an example of extra semantic surface for an Extension
Browse files Browse the repository at this point in the history
  • Loading branch information
hugoledoux committed Nov 6, 2023
1 parent 643ac91 commit 0241531
Showing 1 changed file with 15 additions and 4 deletions.
19 changes: 15 additions & 4 deletions extensions/download/v20/generic.ext.json
Original file line number Diff line number Diff line change
@@ -1,16 +1,27 @@
{
"type": "CityJSONExtension",
"name": "Generic",
"uri": "https://www.cityjson.org/extensions/download/generic.ext.json",
"version": "1.0.1",
"uri": "https://www.cityjson.org/extensions/download/v20/generic.ext.json",
"version": "1.1.0",
"versionCityJSON": "2.0",
"description": "Extension to handle GenericCityObject; meant as a template to learn how to construct an Extension",
"description": "Example of an Extension for a generic city object; meant as a template to learn how to construct an Extension",

"extraRootProperties": {},

"extraAttributes": {},

"extraSemanticSurfaces": {},
"extraSemanticSurfaces": {
"+GenericSemanticSurface": {
"type": "object",
"properties": {
"type": { "enum": [ "+GenericSemanticSurface" ] },
"attribute_1": {"type": "number"},
"attribute_2": {"type": "string"}
},
"required": [ "type" ],
"additionalProperties": false
}
},

"extraCityObjects": {
"+GenericCityObject": {
Expand Down

0 comments on commit 0241531

Please sign in to comment.