/// <summary> /// Check if the given layer supports the Mil2525d spec. /// </summary> /// <remarks>Currently checks for symbolset</remarks> /// <param name="layer"></param> /// <returns></returns> public static Task <bool> HasMil2525Attributes(BasicFeatureLayer layer) { return(QueuedTask.Run(() => { var fdescs = layer.GetFieldDescriptions(); foreach (var fdesc in fdescs) { if (fdesc.Name.ToLower() == "symbolset") { return true; } } return false; })); }
/// <summary> /// Check if the given layer supports the Mil2525d spec. /// </summary> /// <remarks>Currently checks for symbolset</remarks> /// <param name="layer"></param> /// <returns></returns> public static Task<bool> HasMil2525Attributes(BasicFeatureLayer layer) { return QueuedTask.Run(() => { var fdescs = layer.GetFieldDescriptions(); foreach (var fdesc in fdescs) { if (fdesc.Name.ToLower() == "symbolset") return true; } return false; }); }