Ejemplo n.º 1
0
        private FieldInfo[] GetNonSpatialFieldInfos()
        {
            MapFieldNameCollection mapFieldNames = this.m_spatialDataSet.MapFieldNames;

            if (mapFieldNames == null)
            {
                return(null);
            }
            FieldInfo[] array = new FieldInfo[mapFieldNames.Count];
            for (int i = 0; i < mapFieldNames.Count; i++)
            {
                FieldInfo fieldInfo = new FieldInfo();
                string    fieldName = base.GetFieldName(((ReportElementCollectionBase <MapFieldName>)mapFieldNames)[i]);
                fieldInfo.UniqueName      = base.GetUniqueFieldName(fieldName);
                fieldInfo.Index           = this.GetFieldIndex(fieldName);
                fieldInfo.DefinitionAdded = false;
                array[i] = fieldInfo;
            }
            return(array);
        }
        private void GetFieldNameMapping(out string[] dbfNames, out string[] uniqueNames)
        {
            MapFieldNameCollection mapFieldNames = this.m_shapefile.MapFieldNames;

            if (mapFieldNames == null)
            {
                dbfNames    = null;
                uniqueNames = null;
            }
            else
            {
                dbfNames    = new string[mapFieldNames.Count];
                uniqueNames = new string[mapFieldNames.Count];
                for (int i = 0; i < mapFieldNames.Count; i++)
                {
                    string fieldName = base.GetFieldName(((ReportElementCollectionBase <MapFieldName>)mapFieldNames)[i]);
                    dbfNames[i]    = fieldName;
                    uniqueNames[i] = SpatialDataMapper.GetUniqueFieldName(base.m_mapVectorLayer.Name, fieldName);
                }
            }
        }