Esempio n. 1
0
        private void addLandTypeToDictionary(AmfPixelInfo pixel)
        {
            List<byte> landTypes = null;
            if (this.uniqueLandTypeIdProClimate.ContainsKey(pixel.climateId))
            {
                landTypes = this.uniqueLandTypeIdProClimate[pixel.climateId];
            }
            else
            {
                landTypes = new List<byte>();
            }

            if (!landTypes.Contains(pixel.landTypeId))
            {
                landTypes.Add(pixel.landTypeId);
            }

            this.uniqueLandTypeIdProClimate[pixel.climateId] = landTypes;
        }
Esempio n. 2
0
 public void addPixel(AmfPixelInfo pixel)
 {
     this.pixels.Add(pixel);
     addLandTypeToDictionary(pixel);
 }