Geometry color (Building Attribute)

From Tygron Support wiki
Revision as of 15:17, 20 January 2023 by Frank@tygron.nl (talk | contribs) (Frank@tygron.nl moved page Geometry Color to Geometry Color (Building Attribute) without leaving a redirect)
Jump to navigation Jump to search

What is the GEOMETRY_COLOR attribute?

The GEOMETRY_COLOR attribute enables the option to update the color of functions, specified by attribute, by using a Tygron Query Language (TQL) query. It actually does not overwrite the color, so removing the attribute will restore the original color of the model.

How to use the GEOMETRY_COLOR attribute

As the operation is performed by TQL, the task can be done in the Editor, with the Query Tool. More advanced users can also perform these queries through the API.

We will use the following example:
UPDATE_BUILDINGGEOMETRY_COLORWHEREATTRIBUTEISFOO

How to update the Geometry Color of a building:
  1. Select a building and add the attribute FOO:1.
  2. From the top bar, open the Query Tool (Current Situation > Queries > TQL Query Tool).
  3. Construct the above mentioned example, select the update color (Update to Value), and execute the query.
  4. The selected building color is now updated, according to the newly added GEOMETRY_COLOR attribute.


Specific Use Cases

Identify buildings by energy label

  • Give each building an energy label as attribute.
  • Construct a query that gives a corresponding color to each label group.

Identify trees with disease/ animal plague

  • Mark each infested tree with a suitable attribute.
  • Construct a query that gives a corresponding color to each label group.

Colorize 3D models that lack textures (I3S/ 3D BAG/ CityGML)

  • Construct a query that gives a corresponding color to each Function type.