I am working on adding a River Gauge layer to the Watch Center Solution. I have my feed completed and am working on mapping the fields. I am using the Hurricane feed and hurricane fields to help me with the arcade expressions.
For the alert type field I am using this arcade:
When(
$feature["STORMTYPE"] == 'TD', 'Tropical Depression',
$feature["STORMTYPE"] == 'TS', 'Tropical Storm',
$feature["STORMTYPE"] == 'HU', 'Hurricane',
$feature["STORMTYPE"] == 'DB', 'Disturbance',
$feature["STORMTYPE"] == 'STD', 'Subtropical Depression',
$feature["STORMTYPE"] == 'SS', 'Subtropical System',
$feature["STORMTYPE"] == 'STS', 'Subtropical System',
$feature["STORMTYPE"] == 'WV', 'Tropical Wave',
$feature["STORMTYPE"] == 'EX', 'Extratropical Storm',
'Typhoon')
Solved! Go to Solution.
The first When statement is missing the DefaultValue
When(
$feature.status == 'action', 'Action Stage',
$feature.status == 'minor', 'Minor Flood Stage',
$feature.status == 'moderate', 'Moderate Flood Stage',
$feature.status == 'major', 'Major Flood Stage',
'N/A')
The first When statement is missing the DefaultValue
When(
$feature.status == 'action', 'Action Stage',
$feature.status == 'minor', 'Minor Flood Stage',
$feature.status == 'moderate', 'Moderate Flood Stage',
$feature.status == 'major', 'Major Flood Stage',
'N/A')
Thanks for the help! That did the trick. I'm new to using arcade and really appreciate the assistance