Example #1
0
        private void UpdateVectorPtrs(Feature feature)
        {
            if (feature.VectorPtrs != null)
            {
                foreach (var vectorPtr in feature.VectorPtrs)
                {
                    if (vectorPtr.Vector == null)
                    {
                        VectorName vectorName = vectorPtr.Name;
                        string     key        = string.Format("{0}-{1}", mapIndex, vectorName.ToString());

                        if (Vectors.ContainsKey(key))
                        {
                            var vector = Vectors[key];
                            vectorPtr.Vector = vector;
                        }
                        else
                        {
                            notFoundGeometries.Add(feature.lnam.ToString());
                        }
                    }
                }
            }
        }
Example #2
0
 private string VectorKey(VectorName vectorName)
 {
     return(string.Format("{0}-{1}", mapIndex, vectorName.ToString()));
 }