Look up product code when unavailable

This commit is contained in:
Dan Paulat 2022-09-05 19:00:01 -05:00
parent 822e523400
commit 0ca1ec2269
3 changed files with 31 additions and 0 deletions

View file

@ -54,6 +54,11 @@ std::shared_ptr<RadarProductView> RadarProductViewFactory::Create(
}
else if (productGroup == common::RadarProductGroup::Level3)
{
if (productCode == 0)
{
productCode = common::GetLevel3ProductCodeByAwipsId(productName);
}
if (level3RadialProducts_.contains(productCode))
{
view = Level3RadialView::Create(productName, radarProductManager);