List of Combo Overlay examples: Difference between revisions
No edit summary |
No edit summary |
||
| Line 1: | Line 1: | ||
=Attribute= | ==Attribute== | ||
==Solid Buildings== | ===Solid Buildings=== | ||
The attribute [[Solid (Function Value)|SOLID]] generally has a value of 0 or 1. It can therefore be used directly in a Combo Overlay Formula. | The attribute [[Solid (Function Value)|SOLID]] generally has a value of 0 or 1. It can therefore be used directly in a Combo Overlay Formula. | ||
*Set Combo [[Maplink]] to BUILDINGS | *Set Combo [[Maplink]] to BUILDINGS | ||
| Line 6: | Line 6: | ||
*Set Formula to: <syntaxhighlight copy>@A</syntaxhighlight> | *Set Formula to: <syntaxhighlight copy>@A</syntaxhighlight> | ||
==Residential Buildings== | ===Residential Buildings=== | ||
The [[Unit size (Category Value)|unit size]] category values can be used to identify and rasterize residences, in combination with a <code>GT</code> (Greater than) function with multiple arguments. To setup: | The [[Unit size (Category Value)|unit size]] category values can be used to identify and rasterize residences, in combination with a <code>GT</code> (Greater than) function with multiple arguments. To setup: | ||
*Set [[Rasterization (Combo Overlay)|Combo Rasterization]] to "Attribute:Specific Layer" (SINGLE_LAYER) | *Set [[Rasterization (Combo Overlay)|Combo Rasterization]] to "Attribute:Specific Layer" (SINGLE_LAYER) | ||
| Line 17: | Line 17: | ||
*Set Formula to: <syntaxhighlight copy>GT(@A,@B,@C,@D,@E)</syntaxhighlight> | *Set Formula to: <syntaxhighlight copy>GT(@A,@B,@C,@D,@E)</syntaxhighlight> | ||
==Categorized Residential Buildings== | ===Categorized Residential Buildings=== | ||
The [[Unit size (Category Value)|unit size]] category values can be used to identify and rasterize residence types, in combination with a <code>IF</code> and <code>GT</code> (Greater than) functions with multiple arguments. We will categorize the residential buildings as followed: SOCIAL (1) , NORMAL (2), LUXE (3), SENIOR (4), STUDENT (5) and everything else 0. | The [[Unit size (Category Value)|unit size]] category values can be used to identify and rasterize residence types, in combination with a <code>IF</code> and <code>GT</code> (Greater than) functions with multiple arguments. We will categorize the residential buildings as followed: SOCIAL (1) , NORMAL (2), LUXE (3), SENIOR (4), STUDENT (5) and everything else 0. | ||
| Line 30: | Line 30: | ||
*Set Formula to: <syntaxhighlight copy>IF(GT(@A,0),1,IF(GT(@B,0),2,IF(GT(@C,0),3, IF(GT(@D,0), 4, IF(GT(@E,0),5,0))))</syntaxhighlight> | *Set Formula to: <syntaxhighlight copy>IF(GT(@A,0),1,IF(GT(@B,0),2,IF(GT(@C,0),3, IF(GT(@D,0), 4, IF(GT(@E,0),5,0))))</syntaxhighlight> | ||
=Rasterization= | ==Rasterization== | ||
==Minimum infiltration among layers== | ===Minimum infiltration among layers=== | ||
An example on how the combo overlay can obtain rasterized data from multiple data layers (MapLinks); Terrains, Buildings, Neighborhoods, Areas and Zones. | An example on how the combo overlay can obtain rasterized data from multiple data layers (MapLinks); Terrains, Buildings, Neighborhoods, Areas and Zones. | ||
*Set [[Rasterization (Combo Overlay)|Combo Rasterization]] to "Attribute:Min value" (MIN) | *Set [[Rasterization (Combo Overlay)|Combo Rasterization]] to "Attribute:Min value" (MIN) | ||
| Line 38: | Line 38: | ||
*Set Formula to: <syntaxhighlight copy>@A</syntaxhighlight> | *Set Formula to: <syntaxhighlight copy>@A</syntaxhighlight> | ||
=Timeframes= | ==Timeframes== | ||
==Minimum value among timeframes== | ===Minimum value among timeframes=== | ||
An example on how the Combo Overlay can calculate the minimum value among timeframes of a Prequel Grid Overlay | An example on how the Combo Overlay can calculate the minimum value among timeframes of a Prequel Grid Overlay | ||
*Set [[A prequel (Combo Overlay)]] to the Grid Overlay (with 10 timeframes). | *Set [[A prequel (Combo Overlay)]] to the Grid Overlay (with 10 timeframes). | ||
*Set Formula to: <syntaxhighlight copy>MIN(A0:9)</syntaxhighlight> | *Set Formula to: <syntaxhighlight copy>MIN(A0:9)</syntaxhighlight> | ||
==Maximum value among timeframes== | ===Maximum value among timeframes=== | ||
An example on how the Combo Overlay can calculate the maximum value among timeframes of a Prequel Grid Overlay | An example on how the Combo Overlay can calculate the maximum value among timeframes of a Prequel Grid Overlay | ||
*Set [[A prequel (Combo Overlay)]] to the Grid Overlay (with 10 timeframes). | *Set [[A prequel (Combo Overlay)]] to the Grid Overlay (with 10 timeframes). | ||
*Set Formula to: <syntaxhighlight copy>MAX(A0:9)</syntaxhighlight> | *Set Formula to: <syntaxhighlight copy>MAX(A0:9)</syntaxhighlight> | ||
=Colors= | ==Colors== | ||
==Grid input to colors== | ===Grid input to colors=== | ||
An example on how a combo overlay can return a complex colorization using a grid input without using a legend. This example expects the value of an input Grid Overlay to be: | An example on how a combo overlay can return a complex colorization using a grid input without using a legend. This example expects the value of an input Grid Overlay to be: | ||
* Negative or {{nodata}} in case it has no direction | * Negative or {{nodata}} in case it has no direction | ||
| Line 58: | Line 58: | ||
*Set Formula to: <syntaxhighlight copy>IF(OR(LT(AT, 0), EQ(NO_DATA, AT)), NO_DATA, IF(LT(AT, 15), COLOR(255, 0), IF(LT(AT, 45), COLOR(255, 125, 0), IF(LT(AT, 75), COLOR(255, 255, 0), IF(LT(AT, 105), COLOR(125, 255, 0), IF(LT(AT, 135), COLOR(0, 255, 0), IF(LT(AT, 165), COLOR(0, 255, 125), IF(LT(AT, 195), COLOR(0, 255, 255), IF(LT(AT, 225), COLOR(0, 125, 255), IF(LT(AT, 255), COLOR(0, 0, 255), IF(LT(AT, 285), COLOR(125, 0, 255), IF(LT(AT, 315), COLOR(225, 0, 225), IF(LT(AT, 345), COLOR(225, 0, 125), COLOR(255, 0, 0))))))))))))))</syntaxhighlight> | *Set Formula to: <syntaxhighlight copy>IF(OR(LT(AT, 0), EQ(NO_DATA, AT)), NO_DATA, IF(LT(AT, 15), COLOR(255, 0), IF(LT(AT, 45), COLOR(255, 125, 0), IF(LT(AT, 75), COLOR(255, 255, 0), IF(LT(AT, 105), COLOR(125, 255, 0), IF(LT(AT, 135), COLOR(0, 255, 0), IF(LT(AT, 165), COLOR(0, 255, 125), IF(LT(AT, 195), COLOR(0, 255, 255), IF(LT(AT, 225), COLOR(0, 125, 255), IF(LT(AT, 255), COLOR(0, 0, 255), IF(LT(AT, 285), COLOR(125, 0, 255), IF(LT(AT, 315), COLOR(225, 0, 225), IF(LT(AT, 345), COLOR(225, 0, 125), COLOR(255, 0, 0))))))))))))))</syntaxhighlight> | ||
==Saturate Satellite Imagery== | ===Saturate Satellite Imagery=== | ||
The satellite imagery colors can be saturated using a saturation approximation function. In this example the factor is set to 0.9. | The satellite imagery colors can be saturated using a saturation approximation function. In this example the factor is set to 0.9. | ||
* Set [[A prequel (Combo Overlay)|Grid A]] to a [[Satellite Overlay]] | * Set [[A prequel (Combo Overlay)|Grid A]] to a [[Satellite Overlay]] | ||
Revision as of 12:00, 30 June 2026
Attribute
Solid Buildings
The attribute SOLID generally has a value of 0 or 1. It can therefore be used directly in a Combo Overlay Formula.
Residential Buildings
The unit size category values can be used to identify and rasterize residences, in combination with a GT (Greater than) function with multiple arguments. To setup:
- Set Combo Rasterization to "Attribute:Specific Layer" (SINGLE_LAYER)
- Set Combo Maplink to Buildings
- Set Key A to SOCIAL_UNIT_SIZE_M2
- Set Key B to NORMAL_UNIT_SIZE_M2
- Set Key C to LUXE_UNIT_SIZE_M2
- Set Key D to STUDENT_UNIT_SIZE_M2
- Set Key E to SENIOR_UNIT_SIZE_M2
- Set Formula to:
GT(@A,@B,@C,@D,@E)
Categorized Residential Buildings
The unit size category values can be used to identify and rasterize residence types, in combination with a IF and GT (Greater than) functions with multiple arguments. We will categorize the residential buildings as followed: SOCIAL (1) , NORMAL (2), LUXE (3), SENIOR (4), STUDENT (5) and everything else 0.
To setup:
- Set Combo Rasterization to "Attribute:Specific Layer" (SINGLE_LAYER)
- Set Combo Maplink to Buildings
- Set Key A to SOCIAL_UNIT_SIZE_M2
- Set Key B to NORMAL_UNIT_SIZE_M2
- Set Key C to LUXE_UNIT_SIZE_M2
- Set Key D to SENIOR_UNIT_SIZE_M2
- Set Key E to STUDENT_UNIT_SIZE_M2
- Set Formula to:
IF(GT(@A,0),1,IF(GT(@B,0),2,IF(GT(@C,0),3, IF(GT(@D,0), 4, IF(GT(@E,0),5,0))))
Rasterization
Minimum infiltration among layers
An example on how the combo overlay can obtain rasterized data from multiple data layers (MapLinks); Terrains, Buildings, Neighborhoods, Areas and Zones.
- Set Combo Rasterization to "Attribute:Min value" (MIN)
- Set Combo Maplink to nothing (null)
- Set Key A to GROUND_INFILTRATION_MD
- Set Formula to:
@A
Timeframes
Minimum value among timeframes
An example on how the Combo Overlay can calculate the minimum value among timeframes of a Prequel Grid Overlay
- Set A prequel (Combo Overlay) to the Grid Overlay (with 10 timeframes).
- Set Formula to:
MIN(A0:9)
Maximum value among timeframes
An example on how the Combo Overlay can calculate the maximum value among timeframes of a Prequel Grid Overlay
- Set A prequel (Combo Overlay) to the Grid Overlay (with 10 timeframes).
- Set Formula to:
MAX(A0:9)
Colors
Grid input to colors
An example on how a combo overlay can return a complex colorization using a grid input without using a legend. This example expects the value of an input Grid Overlay to be:
- Negative or NO_DATA in case it has no direction
- A value between 0 and 360 indicating a direction.
Configure the Combo Overlay as followed:
- Set Grid A to an input overlay representing a direction in degrees, such as Surface avg direction result type (Water Overlay)
- Set Formula to:
IF(OR(LT(AT, 0), EQ(NO_DATA, AT)), NO_DATA, IF(LT(AT, 15), COLOR(255, 0), IF(LT(AT, 45), COLOR(255, 125, 0), IF(LT(AT, 75), COLOR(255, 255, 0), IF(LT(AT, 105), COLOR(125, 255, 0), IF(LT(AT, 135), COLOR(0, 255, 0), IF(LT(AT, 165), COLOR(0, 255, 125), IF(LT(AT, 195), COLOR(0, 255, 255), IF(LT(AT, 225), COLOR(0, 125, 255), IF(LT(AT, 255), COLOR(0, 0, 255), IF(LT(AT, 285), COLOR(125, 0, 255), IF(LT(AT, 315), COLOR(225, 0, 225), IF(LT(AT, 345), COLOR(225, 0, 125), COLOR(255, 0, 0))))))))))))))
Saturate Satellite Imagery
The satellite imagery colors can be saturated using a saturation approximation function. In this example the factor is set to 0.9.
- Set Grid A to a Satellite Overlay
- Set Formula to:
COLOR( ADD(MUL(-1, 0.9, ADD(MUL(0.2989, RED(A)), MUL(0.587, GREEN(A)), MUL(0.114, BLUE(A)))), MUL(ADD(1, 0.9), RED(A))), ADD(MUL(-1, 0.9, ADD(MUL(0.2989, RED(A)), MUL(0.587, GREEN(A)), MUL(0.114, BLUE(A)))), MUL(ADD(1, 0.9), GREEN(A))), ADD(MUL(-1, 0.9, ADD(MUL(0.2989, RED(A)), MUL(0.587, GREEN(A)), MUL(0.114, BLUE(A)))), MUL(ADD(1, 0.9), BLUE(A))) )