Update building attribute (TQL): Difference between revisions

From Tygron Support wiki
Jump to navigation Jump to search
(Created page with "{{Update TQL|suppresscategory=true|allowselflinks=true| {{Update TQL|type=row|attribute=AREA|description=Update specified attribute with provided values for specific Area|fixed=1|polygon=false|}} }} {{Param TQL|suppresscategory=true|allowselflinks=true|list=true| {{: Area (TQL Param)}} {{: Area with attribute (TQL Param)}} {{: Attribute (TQL Param)}} {{: Attribute max (TQL Param)}} {{: Attribute min (TQL Param)}} {{: Buffer (TQL Param)}} {{: Building (TQL Param)}} {...")
 
No edit summary
 
(4 intermediate revisions by the same user not shown)
Line 1: Line 1:
{{Update TQL|suppresscategory=true|allowselflinks=true|
{{Update TQL|suppresscategory=true|allowselflinks=true|<onlyinclude>
{{Update TQL|type=row|attribute=AREA|description=Update specified attribute with provided values for specific [[Area]]|fixed=1|polygon=false|}}
{{Update TQL|type=row|attribute=BUILDING|description=Update specified attribute with provided values for a specific [[Building]] or all buildings intersecting the query polygons|fixed=No|polygon=true|}}</onlyinclude>
}}
}}


Line 37: Line 37:
{{: Zone with attribute (TQL Param)}}
{{: Zone with attribute (TQL Param)}}
}}
}}
===Examples===
'''Traffic intensity on roads'''
The traffic intensity is a function value which affects calculations related to [[Traffic Model|traffic]]. Some use-cases require these values to be updated dynamically. This can be done per neighborhood. (In this example, the [[neighborhood]] in question has the ID 1.)
<code>UPDATE_BUILDING_TRAFFIC_FLOW_WHERE_CATEGORY_IS_ROAD_AND_NEIGHBORHOOD_IS_1</code>
* <code>UPDATE_BUILDING</code>: We're changing an attribute of a building.
* <code>TRAFFIC_FLOW</code>: The attribute we are changing is the TRAFFIC_FLOW, which is the technical name of a function value.
* <code>CATEGORY_IS_ROAD</code>: We only want to update this value on roads.
* <code>NEIGHBORHOOD_IS_1</code>: We are updating only in this specific neighborhood. Nothing outside the neighborhood is updated by this statement.


{{TQL nav}}
{{TQL nav}}

Latest revision as of 14:36, 17 February 2023

Allowed clause parameters

Examples

Traffic intensity on roads

The traffic intensity is a function value which affects calculations related to traffic. Some use-cases require these values to be updated dynamically. This can be done per neighborhood. (In this example, the neighborhood in question has the ID 1.)

UPDATE_BUILDING_TRAFFIC_FLOW_WHERE_CATEGORY_IS_ROAD_AND_NEIGHBORHOOD_IS_1

  • UPDATE_BUILDING: We're changing an attribute of a building.
  • TRAFFIC_FLOW: The attribute we are changing is the TRAFFIC_FLOW, which is the technical name of a function value.
  • CATEGORY_IS_ROAD: We only want to update this value on roads.
  • NEIGHBORHOOD_IS_1: We are updating only in this specific neighborhood. Nothing outside the neighborhood is updated by this statement.