private void AddFieldDefinitions()
        {
            MapFieldDefinitionCollection mapFieldDefinitions = base.m_mapVectorLayer.MapFieldDefinitions;

            if (mapFieldDefinitions != null)
            {
                foreach (MapFieldDefinition item in mapFieldDefinitions)
                {
                    this.m_spatialElementManager.AddFieldDefinition(base.GetUniqueFieldName(item.Name), this.GetFieldType(item.DataType));
                }
            }
        }
        private void ProcessNonSpatialFields(MapSpatialElement embeddedElement, ISpatialElement spatialElement)
        {
            MapFieldCollection mapFields = embeddedElement.MapFields;

            if (mapFields != null)
            {
                MapFieldDefinitionCollection mapFieldDefinitions = base.m_mapVectorLayer.MapFieldDefinitions;
                if (mapFieldDefinitions != null)
                {
                    foreach (MapField item in mapFields)
                    {
                        MapFieldDefinition fieldDefinition = mapFieldDefinitions.GetFieldDefinition(item.Name);
                        if (fieldDefinition == null)
                        {
                            throw new RenderingObjectModelException(RPRes.rsMapInvalidFieldName(RPRes.rsObjectTypeMap, base.m_mapVectorLayer.MapDef.Name, base.m_mapVectorLayer.Name, item.Name));
                        }
                        this.m_spatialElementManager.AddFieldValue(spatialElement, base.GetUniqueFieldName(item.Name), this.GetFieldValue(item.Value, fieldDefinition.DataType));
                    }
                }
            }
        }