Exemplo n.º 1
0
        /// <summary>
        /// Constructs the value table used for the
        /// </summary>
        /// <returns></returns>
        private IGPValueTableType BuildWhereClauseValueTable()
        {
            IGPValueTableType vt   = new GPValueTableTypeClass();
            IGPDataType       type = null;
            int columnIndex        = 0;

            m_whereClauseIndices.Clear();

            // First column: attribute names (based on the selected feature class)
            type = new FieldTypeClass();
            vt.AddDataType(type, Properties.Resources.DESC_ADC_VT_ATTRIBUTE, 150, null);
            m_whereClauseIndices.Add(C_ID_VT_ATTRIBUTE, columnIndex++);

            // Second column: comparison operators (fixed, based on what Workflow Manager supports)
            type = new GPStringTypeClass();
            vt.AddDataType(type, Properties.Resources.DESC_ADC_VT_OPERATOR, 50, null);
            m_whereClauseIndices.Add(C_ID_VT_OPERATOR, columnIndex++);

            // Third column: values (based on the selected attribute)
            type = new GPStringTypeClass();
            vt.AddDataType(type, Properties.Resources.DESC_ADC_VT_VALUE, 150, null);
            m_whereClauseIndices.Add(C_ID_VT_VALUE, columnIndex++);

            return(vt);
        }
Exemplo n.º 2
0
 public SimpleType(FieldTypeClass typeClass)
 {
     this.typeClass = typeClass;
 }