Skip to content

DiGi.CityGML.Classes

github-actions[bot] edited this page Jul 15, 2026 · 2 revisions

DiGi.CityGML.Classes Namespace

Classes

Building Class

Represents a building entity within the CityGML model, providing properties for roof type and associated surfaces.

public class Building : DiGi.Core.Parameter.Classes.ParametrizedUniqueIdObject, DiGi.CityGML.Interfaces.ICityGMLParametrizedUniqueIdObject, DiGi.CityGML.Interfaces.ICityGMLUniqueIdObject, DiGi.CityGML.Interfaces.ICityGMLSerializableObject, DiGi.CityGML.Interfaces.ICityGMLObject, DiGi.Core.Interfaces.IObject, DiGi.Core.Interfaces.ISerializableObject, DiGi.Core.Interfaces.ICloneableObject<DiGi.Core.Interfaces.ISerializableObject>, DiGi.Core.Interfaces.ICloneableObject, DiGi.Core.Interfaces.IUniqueIdObject, DiGi.Core.Interfaces.IUniqueObject, DiGi.Core.Parameter.Interfaces.IParametrizedUniqueIdObject, DiGi.Core.Parameter.Interfaces.IParametrizedUniqueObject, DiGi.Core.Parameter.Interfaces.IParametrizedObject

Inheritance System.ObjectDiGi.Core.Classes.ObjectDiGi.Core.Classes.SerializableObjectDiGi.Core.Parameter.Classes.ParametrizedObjectDiGi.Core.Parameter.Classes.ParametrizedUniqueIdObject → Building

Implements ICityGMLParametrizedUniqueIdObject, ICityGMLUniqueIdObject, ICityGMLSerializableObject, ICityGMLObject, DiGi.Core.Interfaces.IObject, DiGi.Core.Interfaces.ISerializableObject, DiGi.Core.Interfaces.ICloneableObject<DiGi.Core.Interfaces.ISerializableObject>, DiGi.Core.Interfaces.ICloneableObject, DiGi.Core.Interfaces.IUniqueIdObject, DiGi.Core.Interfaces.IUniqueObject, DiGi.Core.Parameter.Interfaces.IParametrizedUniqueIdObject, DiGi.Core.Parameter.Interfaces.IParametrizedUniqueObject, DiGi.Core.Parameter.Interfaces.IParametrizedObject

Constructors

Building(Building) Constructor

Initializes a new instance of the Building class by copying an existing building instance.

public Building(DiGi.CityGML.Classes.Building? building);

Parameters

building Building

The source building object to copy from.

Building(string, int, IEnumerable<ISurface>) Constructor

Initializes a new instance of the Building class with specified unique identifier, roof type ID, and surfaces.

public Building(string? uniqueId, int roofTypeId, System.Collections.Generic.IEnumerable<DiGi.CityGML.Interfaces.ISurface>? surfaces);

Parameters

uniqueId System.String

The unique identifier for the building.

roofTypeId System.Int32

The identifier representing the type of the roof.

surfaces System.Collections.Generic.IEnumerable<ISurface>

A collection of surfaces associated with the building.

Building(JsonObject) Constructor

Initializes a new instance of the Building class from a JSON object.

public Building(System.Text.Json.Nodes.JsonObject? jsonObject);

Parameters

jsonObject System.Text.Json.Nodes.JsonObject

The JSON object containing the building data.

Properties

Building.RoofTypeId Property

Gets the identifier for the type of roof associated with this building.

public int RoofTypeId { get; }

Property Value

System.Int32

Building.Surfaces Property

Gets or sets the collection of surfaces that constitute the building's geometry.

public System.Collections.Generic.IEnumerable<DiGi.CityGML.Interfaces.ISurface>? Surfaces { get; private set; }

Property Value

System.Collections.Generic.IEnumerable<ISurface>

CityModel Class

Represents a city model that contains a collection of buildings and implements unique identification for CityGML objects.

public class CityModel : DiGi.Core.Parameter.Classes.ParametrizedUniqueIdObject, DiGi.CityGML.Interfaces.ICityGMLUniqueIdObject, DiGi.CityGML.Interfaces.ICityGMLSerializableObject, DiGi.CityGML.Interfaces.ICityGMLObject, DiGi.Core.Interfaces.IObject, DiGi.Core.Interfaces.ISerializableObject, DiGi.Core.Interfaces.ICloneableObject<DiGi.Core.Interfaces.ISerializableObject>, DiGi.Core.Interfaces.ICloneableObject, DiGi.Core.Interfaces.IUniqueIdObject, DiGi.Core.Interfaces.IUniqueObject

Inheritance System.ObjectDiGi.Core.Classes.ObjectDiGi.Core.Classes.SerializableObjectDiGi.Core.Parameter.Classes.ParametrizedObjectDiGi.Core.Parameter.Classes.ParametrizedUniqueIdObject → CityModel

Implements ICityGMLUniqueIdObject, ICityGMLSerializableObject, ICityGMLObject, DiGi.Core.Interfaces.IObject, DiGi.Core.Interfaces.ISerializableObject, DiGi.Core.Interfaces.ICloneableObject<DiGi.Core.Interfaces.ISerializableObject>, DiGi.Core.Interfaces.ICloneableObject, DiGi.Core.Interfaces.IUniqueIdObject, DiGi.Core.Interfaces.IUniqueObject

Constructors

CityModel() Constructor

Initializes a new instance of the CityModel class.

public CityModel();

CityModel(CityModel) Constructor

Initializes a new instance of the CityModel class by copying an existing city model.

public CityModel(DiGi.CityGML.Classes.CityModel? cityModel);

Parameters

cityModel CityModel

The source city model to copy from.

CityModel(IEnumerable<Building>) Constructor

Initializes a new instance of the CityModel class with a specified collection of buildings.

public CityModel(System.Collections.Generic.IEnumerable<DiGi.CityGML.Classes.Building>? buildings);

Parameters

buildings System.Collections.Generic.IEnumerable<Building>

The collection of buildings to associate with this city model.

CityModel(JsonObject) Constructor

Initializes a new instance of the CityModel class using a JSON object.

public CityModel(System.Text.Json.Nodes.JsonObject? jsonObject);

Parameters

jsonObject System.Text.Json.Nodes.JsonObject

The JSON object used to initialize the city model.

Properties

CityModel.Buildings Property

Gets or sets the collection of buildings contained within the city model.

public System.Collections.Generic.IEnumerable<DiGi.CityGML.Classes.Building>? Buildings { get; private set; }

Property Value

System.Collections.Generic.IEnumerable<Building>

GroundSurface Class

Represents a ground surface in the CityGML model, typically used to define the terrain or floor surfaces.

public class GroundSurface : DiGi.CityGML.Classes.Surface

Inheritance System.ObjectDiGi.Core.Classes.ObjectDiGi.Core.Classes.SerializableObjectDiGi.Core.Classes.UniqueObjectDiGi.Core.Classes.UniqueIdObjectSurface → GroundSurface

Constructors

GroundSurface(GroundSurface) Constructor

Initializes a new instance of the GroundSurface class by copying an existing GroundSurface instance.

public GroundSurface(DiGi.CityGML.Classes.GroundSurface? groundSurface);

Parameters

groundSurface GroundSurface

The ground surface instance to copy from.

GroundSurface(string, IPolygonalFace3D) Constructor

Initializes a new instance of the GroundSurface class with a specified unique identifier and geometry.

public GroundSurface(string? uniqueId, DiGi.Geometry.Spatial.Interfaces.IPolygonalFace3D? geometry);

Parameters

uniqueId System.String

The unique identifier for the ground surface.

geometry DiGi.Geometry.Spatial.Interfaces.IPolygonalFace3D

The 3D polygonal face geometry associated with the ground surface.

GroundSurface(JsonObject) Constructor

Initializes a new instance of the GroundSurface class using a JSON object.

public GroundSurface(System.Text.Json.Nodes.JsonObject? jsonObject);

Parameters

jsonObject System.Text.Json.Nodes.JsonObject

The JSON object containing the data to initialize the ground surface.

RoofSurface Class

Represents a roof surface within the CityGML model, inheriting from the base Surface class.

public class RoofSurface : DiGi.CityGML.Classes.Surface

Inheritance System.ObjectDiGi.Core.Classes.ObjectDiGi.Core.Classes.SerializableObjectDiGi.Core.Classes.UniqueObjectDiGi.Core.Classes.UniqueIdObjectSurface → RoofSurface

Constructors

RoofSurface(RoofSurface) Constructor

Initializes a new instance of the RoofSurface class by copying an existing RoofSurface instance.

public RoofSurface(DiGi.CityGML.Classes.RoofSurface? roofSurface);

Parameters

roofSurface RoofSurface

The source RoofSurface object to copy from.

RoofSurface(string, IPolygonalFace3D) Constructor

Initializes a new instance of the RoofSurface class with a specified unique identifier and geometry.

public RoofSurface(string? uniqueId, DiGi.Geometry.Spatial.Interfaces.IPolygonalFace3D? geometry);

Parameters

uniqueId System.String

The unique identifier for the roof surface.

geometry DiGi.Geometry.Spatial.Interfaces.IPolygonalFace3D

The 3D polygonal face geometry associated with the roof surface.

RoofSurface(JsonObject) Constructor

Initializes a new instance of the RoofSurface class using the provided JSON object.

public RoofSurface(System.Text.Json.Nodes.JsonObject? jsonObject);

Parameters

jsonObject System.Text.Json.Nodes.JsonObject

The System.Text.Json.Nodes.JsonObject containing the data to initialize the roof surface.

Surface Class

Represents an abstract base class for a surface in the CityGML model, providing unique identification and geometric representation.

public abstract class Surface : DiGi.Core.Classes.UniqueIdObject, DiGi.CityGML.Interfaces.ISurface, DiGi.CityGML.Interfaces.ICityGMLUniqueIdObject, DiGi.CityGML.Interfaces.ICityGMLSerializableObject, DiGi.CityGML.Interfaces.ICityGMLObject, DiGi.Core.Interfaces.IObject, DiGi.Core.Interfaces.ISerializableObject, DiGi.Core.Interfaces.ICloneableObject<DiGi.Core.Interfaces.ISerializableObject>, DiGi.Core.Interfaces.ICloneableObject, DiGi.Core.Interfaces.IUniqueIdObject, DiGi.Core.Interfaces.IUniqueObject

Inheritance System.ObjectDiGi.Core.Classes.ObjectDiGi.Core.Classes.SerializableObjectDiGi.Core.Classes.UniqueObjectDiGi.Core.Classes.UniqueIdObject → Surface

Derived
GroundSurface
RoofSurface
UndefinedSurface
WallSurface

Implements ISurface, ICityGMLUniqueIdObject, ICityGMLSerializableObject, ICityGMLObject, DiGi.Core.Interfaces.IObject, DiGi.Core.Interfaces.ISerializableObject, DiGi.Core.Interfaces.ICloneableObject<DiGi.Core.Interfaces.ISerializableObject>, DiGi.Core.Interfaces.ICloneableObject, DiGi.Core.Interfaces.IUniqueIdObject, DiGi.Core.Interfaces.IUniqueObject

Constructors

Surface(Surface) Constructor

Initializes a new instance of the Surface class by cloning an existing surface instance.

public Surface(DiGi.CityGML.Classes.Surface? surface);

Parameters

surface Surface

The source surface object to clone.

Surface(string, IPolygonalFace3D) Constructor

Initializes a new instance of the Surface class with a specified unique identifier and geometry.

public Surface(string? uniqueId, DiGi.Geometry.Spatial.Interfaces.IPolygonalFace3D? geometry);

Parameters

uniqueId System.String

The unique identifier for the surface.

geometry DiGi.Geometry.Spatial.Interfaces.IPolygonalFace3D

The polygonal face representing the 3D geometry of the surface.

Surface(JsonObject) Constructor

Initializes a new instance of the Surface class using data from a JSON object.

public Surface(System.Text.Json.Nodes.JsonObject? jsonObject);

Parameters

jsonObject System.Text.Json.Nodes.JsonObject

The JSON object containing the surface properties.

Properties

Surface.Geometry Property

Gets the 3D polygonal face geometry associated with this surface.

public DiGi.Geometry.Spatial.Interfaces.IPolygonalFace3D? Geometry { get; }

Implements Geometry

Property Value

DiGi.Geometry.Spatial.Interfaces.IPolygonalFace3D
A clone of the underlying DiGi.Geometry.Spatial.Interfaces.IPolygonalFace3D geometry, or null if not defined.

UndefinedSurface Class

Represents a surface in the CityGML model where the specific type of surface is not defined.

public class UndefinedSurface : DiGi.CityGML.Classes.Surface

Inheritance System.ObjectDiGi.Core.Classes.ObjectDiGi.Core.Classes.SerializableObjectDiGi.Core.Classes.UniqueObjectDiGi.Core.Classes.UniqueIdObjectSurface → UndefinedSurface

Constructors

UndefinedSurface(UndefinedSurface) Constructor

Initializes a new instance of the UndefinedSurface class by copying another instance.

public UndefinedSurface(DiGi.CityGML.Classes.UndefinedSurface? undefinedSurface);

Parameters

undefinedSurface UndefinedSurface

The source UndefinedSurface instance to copy from.

UndefinedSurface(string, IPolygonalFace3D) Constructor

Initializes a new instance of the UndefinedSurface class with a unique identifier and geometry.

public UndefinedSurface(string? uniqueId, DiGi.Geometry.Spatial.Interfaces.IPolygonalFace3D? geometry);

Parameters

uniqueId System.String

The unique identifier for the surface.

geometry DiGi.Geometry.Spatial.Interfaces.IPolygonalFace3D

The polygonal face 3D geometry associated with the surface.

UndefinedSurface(JsonObject) Constructor

Initializes a new instance of the UndefinedSurface class using a JSON object.

public UndefinedSurface(System.Text.Json.Nodes.JsonObject? jsonObject);

Parameters

jsonObject System.Text.Json.Nodes.JsonObject

The JSON object containing the surface data.

WallSurface Class

Represents a wall surface within the CityGML model, inheriting from the base Surface class.

public class WallSurface : DiGi.CityGML.Classes.Surface

Inheritance System.ObjectDiGi.Core.Classes.ObjectDiGi.Core.Classes.SerializableObjectDiGi.Core.Classes.UniqueObjectDiGi.Core.Classes.UniqueIdObjectSurface → WallSurface

Constructors

WallSurface(WallSurface) Constructor

Initializes a new instance of the WallSurface class by copying an existing WallSurface instance.

public WallSurface(DiGi.CityGML.Classes.WallSurface? wallSurface);

Parameters

wallSurface WallSurface

The source wall surface instance to copy from.

WallSurface(string, IPolygonalFace3D) Constructor

Initializes a new instance of the WallSurface class with a specified unique identifier and geometry.

public WallSurface(string? uniqueId, DiGi.Geometry.Spatial.Interfaces.IPolygonalFace3D? geometry);

Parameters

uniqueId System.String

The unique identifier for the wall surface.

geometry DiGi.Geometry.Spatial.Interfaces.IPolygonalFace3D

The polygonal 3D face representing the geometry of the wall surface.

WallSurface(JsonObject) Constructor

Initializes a new instance of the WallSurface class using the provided JSON object.

public WallSurface(System.Text.Json.Nodes.JsonObject? jsonObject);

Parameters

jsonObject System.Text.Json.Nodes.JsonObject

The JSON object containing the wall surface data.

Clone this wiki locally