public void PopulateFeatureWithAttributes(ref Feature feature)
{
if (!string.IsNullOrEmpty(DisplayAttributes.Identity))
{
feature["identity"] = DisplayAttributes.Identity;
}
if (!string.IsNullOrEmpty(DisplayAttributes.SymbolSet))
{
feature["symbolset"] = Convert.ToInt32(DisplayAttributes.SymbolSet);
}
if (!string.IsNullOrEmpty(DisplayAttributes.SymbolEntity))
{
feature["symbolentity"] = Convert.ToInt32(DisplayAttributes.SymbolEntity);
}
//Indicator / HQTFFD /
if (!string.IsNullOrEmpty(DisplayAttributes.Indicator))
{
feature["indicator"] = DisplayAttributes.Indicator;
}
//Echelon or Mobility
if (!string.IsNullOrEmpty(DisplayAttributes.Echelon))
{
feature["echelon"] = DisplayAttributes.Echelon;
}
if (!string.IsNullOrEmpty(DisplayAttributes.Mobility))
{
feature["mobility"] = DisplayAttributes.Mobility;
}
//Statuses or Operation
if (!string.IsNullOrEmpty(DisplayAttributes.OperationalCondition))
{
feature["operationalcondition"] = DisplayAttributes.OperationalCondition;
}
if (!string.IsNullOrEmpty(DisplayAttributes.Status))
{
feature["status"] = DisplayAttributes.Status;
}
//Delta attributes
if (!string.IsNullOrEmpty(DisplayAttributes.Context))
{
feature["context"] = DisplayAttributes.Context;
}
if (!string.IsNullOrEmpty(DisplayAttributes.Modifier1))
{
feature["modifier1"] = DisplayAttributes.Modifier1;
}
if (!string.IsNullOrEmpty(DisplayAttributes.Modifier2))
{
feature["modifier2"] = DisplayAttributes.Modifier2;
}
//LABELS
if (LabelAttributes.DateTimeValid != null)
{
feature["datetimevalid"] = LabelAttributes.DateTimeValid.ToString();
}
if (LabelAttributes.DateTimeExpired != null)
{
feature["datetimeexpired"] = LabelAttributes.DateTimeExpired.ToString();
}
if (!string.IsNullOrEmpty(LabelAttributes.UniqueDesignation))
{
feature["uniquedesignation"] = LabelAttributes.UniqueDesignation;
}
if (!string.IsNullOrEmpty(LabelAttributes.StaffComments))
{
feature["staffcomment"] = LabelAttributes.StaffComments;
}
if (!string.IsNullOrEmpty(LabelAttributes.AdditionalInformation))
{
feature["additionalinformation"] = LabelAttributes.AdditionalInformation;
}
if (!string.IsNullOrEmpty(LabelAttributes.Type))
{
feature["type"] = LabelAttributes.Type;
}
if (!string.IsNullOrEmpty(LabelAttributes.CommonIdentifier))
{
feature["commonidentifier"] = LabelAttributes.CommonIdentifier;
}
if (LabelAttributes.Speed != null)
{
//Short
feature["speed"] = LabelAttributes.Speed;
}
if (!string.IsNullOrEmpty(LabelAttributes.HigherFormation))
{
feature["higherFormation"] = LabelAttributes.HigherFormation;
}
if (!string.IsNullOrEmpty(LabelAttributes.Reinforced))
{
feature["reinforced"] = LabelAttributes.Reinforced;
}
if (!string.IsNullOrEmpty(LabelAttributes.Credibility))
{
feature["credibility"] = LabelAttributes.Credibility;
}
if (!string.IsNullOrEmpty(LabelAttributes.Reliability))
{
feature["reliability"] = LabelAttributes.Reliability;
}
if (!string.IsNullOrEmpty(LabelAttributes.CountryCode))
{
feature["countrycode"] = LabelAttributes.CountryCode;
}
}