IdentifierAdder

Adds object identifiers from the RoadSpaces model to an AbstractCityObject (CityGML model).

Constructors

Link copied to clipboard

Functions

Link copied to clipboard
fun addDetailedIdentifier(id: RoadspaceObjectIdentifier, name: Option<String>, subName: String, index: Int = 0, dstCityObject: AbstractCityObject)

Adds a pseudo random hash id (hash based on the id, name, subName, index) and name-subName to the dstCityObject.

Link copied to clipboard
fun addIdentifier(id: LaneIdentifier, name: String, dstCityObject: AbstractCityObject)
fun addIdentifier(id: RoadspaceIdentifier, name: String, dstCityObject: AbstractCityObject)
fun addIdentifier(id: RoadspaceObjectIdentifier, name: String, dstCityObject: AbstractCityObject)

Adds a pseudo random hash id (hash based on the id and the name) and name to the dstCityObject.

Link copied to clipboard
fun addUniqueIdentifier(id: LaneIdentifier, dstCityObject: AbstractCityObject)

Adds the hashed id of the LaneIdentifier to the dstCityObject, whereby the id can only be assigned once (otherwise an IllegalArgumentException is thrown).

fun addUniqueIdentifier(id: RoadspaceObjectIdentifier, dstCityObject: AbstractCityObject)

Adds the hashed id and the name of the RoadspaceIdentifier to the dstCityObject, whereby the id can only be assigned once (otherwise an IllegalArgumentException is thrown).

Link copied to clipboard

Returns a completely random id.

Link copied to clipboard

Returns the GML identifier (with prefix) of the id.