Ejemplo n.º 1
0
        public IField GetField(int index)
        {
            IField value = null;

            if (Feature != null && index >= 0 && index < FieldCount)
            {
                value = new GdalField(Feature, index);
            }
            return(value);
        }
Ejemplo n.º 2
0
        public IField GetField(string name)
        {
            IField value = null;

            if (Feature != null && !string.IsNullOrEmpty(name))
            {
                var fieldCount = Feature.GetFieldCount();
                for (int i = 0; i < fieldCount; i++)
                {
                    var fieldDefn = Feature.GetFieldDefnRef(i);
                    if (fieldDefn.GetName() == name)
                    {
                        value = new GdalField(Feature, i);
                        break;
                    }
                }
            }
            return(value);
        }