Geometry color (Building Attribute): Difference between revisions

From Tygron Support wiki
Jump to navigation Jump to search
No edit summary
No edit summary
 
(18 intermediate revisions by 4 users not shown)
Line 1: Line 1:
{{being updated}}
{{building attributes
{{construction attributes
| <onlyinclude>
| <onlyinclude>
{{construction attributes|type=row|icon=|attribute=GEOMETRY_COLOR|unit=Integer||Function value=|description=Updates construction color to custom color selection.}} </onlyinclude>
{{building attributes|type=row|icon=|attribute=GEOMETRY_COLOR|unit=[[Color]]||Function value=|description=Updates [[building]] color to custom color selection.}} </onlyinclude>
}}
}}
==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 [[TQL|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==
The GEOMETRY_COLOR [[Attribute]] allows for updating the color of [[functions]], specified by Attribute, by using the [[Tygron Query Language]]. It actually does not overwrite the color, so removing the attribute will restore the original color of the model.
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:<br>
==Specific Use Cases==
<code>UPDATE_BUILDING</code><code>GEOMETRY_COLOR</code><code>WHERE</code><code>ATTRIBUTE</code><code>IS</code><code>FOO</code>
*Identify buildings by energy label
<br>
**Give each building an energy label as attribute.  
{{Editor steps|title=update the Geometry Color of a building|Select a building and add the attribute FOO:1.|From the top bar, open the Query Tool (Current Situation > Queries > TQL Query Tool).|Construct the above mentioned example, select the update color (Update to Value), and execute the query.|The selected building color is now updated, according to the newly added GEOMETRY_COLOR attribute.}}
**Construct a query that gives a corresponding color to each label group.
<br>
*Identify trees with disease/ animal plague
<gallery mode="nolines">
**Mark each infested tree with a suitable attribute.  
File:AddAttribute1.jpg|1. Select a building and add the attribute FOO:1.
**Construct a query that gives a corresponding color to each label group.
File:OpenQueryTool1.jpg|2. From the top bar, open the Query Tool (Current Situation > Queries > TQL Query Tool).
*Colorize [[Custom Geometry|3D models]] that lack textures ([[I3S]]/ 3D BAG/ [[CityGML]])
File:ConstructQuery1.jpg|3. Construct the above mentioned example, select the update color (Update to Value), and execute the query.
**Construct a query that gives a corresponding color to each Function type.
File:GeometryColorUpdated1.jpg|4. The selected building color is now updated, according to the newly added GEOMETRY_COLOR attribute.
</gallery>


==Speciffic Use Cases==
{{article end
===Identify buildings by energy label===
|seealso=
*Give each building an energy label as attribute.
* [[Custom Geometries]]
*Construct a query that gives a corresponding color to each label group.
* [[Building]]
===Identify trees with disease/ animal plague===
|howtos=
*Mark each infested treewith a suitable attribute.
* [[How to use the GEOMETRY COLOR 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.

Latest revision as of 14:25, 29 February 2024

The GEOMETRY_COLOR Attribute allows for updating the color of functions, specified by Attribute, by using the Tygron Query Language. It actually does not overwrite the color, so removing the attribute will restore the original color of the model.

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.