示例#1
0
        private PropertySet GetModifiedLocatorProperties()
        {
            PropertySet propertySet = _locatorProperties.Copy();

            PropertySetProperty prop = propertySet.PropertyArray.FirstOrDefault(o => o.Key == "MinimumMatchScore");

            if (prop != null)
            {
                prop.Value = MinimumScore;
            }

            prop = propertySet.PropertyArray.FirstOrDefault(o => o.Key == "SpellingSensitivity");

            if (prop != null)
            {
                prop.Value = SpellingSensitivity;
            }

            if (!String.IsNullOrEmpty(CoordinateSystem))
            {
                List <PropertySetProperty> propList = new List <PropertySetProperty>(propertySet.PropertyArray);
                propList.Add(new PropertySetProperty("OutputSpatialReference", SpatialReference.Create(CoordinateSystem)));
                propertySet.PropertyArray = propList.ToArray();
            }

            return(propertySet);
        }
示例#2
0
        public void Copy()
        {
            PropertySet original = new PropertySet();
            original.Add("abc", "123");
            original.Add("def", "");

            PropertySet copy = original.Copy();

            Assert.AreNotSame(original, copy);
            AssertAreEqual(original, copy);
        }
示例#3
0
        public void Copy()
        {
            PropertySet original = new PropertySet();

            original.Add("abc", "123");
            original.Add("def", "");

            PropertySet copy = original.Copy();

            Assert.AreNotSame(original, copy);
            AssertAreEqual(original, copy);
        }