Skip to content

Commit

Permalink
Merge pull request #50 from lmichaelis-fhg/feature/cityobject-id
Browse files Browse the repository at this point in the history
Add getter for the CityObject's ID node
  • Loading branch information
njam committed May 19, 2024
2 parents 160a770 + eb50bed commit ea89b8f
Showing 1 changed file with 7 additions and 0 deletions.
7 changes: 7 additions & 0 deletions src/citygml/CityObject.mjs
Original file line number Diff line number Diff line change
Expand Up @@ -20,6 +20,13 @@ class CityObject {
return new Envelope(envelopeNode)
}

/**
* @returns {String} This object's ID ("gml:id")
*/
get id() {
return this.cityNode.getAttribute('gml:id')
}

/**
* @returns {TriangleMesh}
*/
Expand Down

0 comments on commit ea89b8f

Please sign in to comment.