Skip to content

Add extra attributes to all city objects #204

@clausnagel

Description

@clausnagel

In CityGML, you can define ADE attributes for abstract CityGML classes, and these attributes are inherited and available for all subclasses. For example, when you add an attribute myAdeAttribute to the abstract root class AbstractCityObject, you can automatically use this attribute for all derived instances like Building, CityFurniture, or LandUse.

In a CityJSON extension schema, you can assign additional attributes to city objects through the "extraAttributes" object. The CityJSON schema itself uses some sort of "abstract" definitions like, for example, "_AbstractCityObject" (see https://3d.bk.tudelft.nl/schemas/cityjson/2.0.1/cityobjects.schema.json).

Is it allowed and supported to reference this "_AbstractCityObject" in an extension schema like shown below?

{
  "type": "CityJSONExtension",
  ...
  "extraAttributes": {
    "_AbstractCityObject": {
      "+myAdeAttribute": {
        "type": "string"
      }
    }
  }
}

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions