public string AddRuleField(object dataValue)
        {
            string text = this.GenerateUniqueFieldName();

            this.AddFieldDefinition(text, CoreSpatialElementManager.GetFieldType(dataValue));
            return(text);
        }
Example #2
0
 public SpatialDataSetMapper(VectorLayerMapper vectorLayerMapper, Dictionary <SpatialElementKey, SpatialElementInfoGroup> spatialElementsDictionary, CoreSpatialElementManager spatialElementManager, MapControl coreMap, MapMapper mapMapper)
     : base(vectorLayerMapper, spatialElementsDictionary, coreMap, mapMapper)
 {
     this.m_spatialElementManager = spatialElementManager;
     this.m_spatialDataSet        = (MapSpatialDataSet)base.m_mapVectorLayer.MapSpatialData;
     this.m_dataSet         = this.m_spatialDataSet.DataSet;
     this.m_dataSetInstance = this.m_dataSet.Instance;
 }
Example #3
0
 public RuleMapper(MapAppearanceRule mapRule, VectorLayerMapper vectorLayerMapper, CoreSpatialElementManager coreSpatialElementManager)
 {
     this.m_mapRule                   = mapRule;
     this.m_mapVectorLayer            = vectorLayerMapper.m_mapVectorLayer;
     this.m_coreMap                   = vectorLayerMapper.m_coreMap;
     this.m_coreSpatialElementManager = coreSpatialElementManager;
     this.m_mapMapper                 = vectorLayerMapper.m_mapMapper;
 }
Example #4
0
 private bool AddFieldDefinition(string fieldUniqueName, object value)
 {
     if (value != null)
     {
         this.m_spatialElementManager.AddFieldDefinition(fieldUniqueName, CoreSpatialElementManager.GetFieldType(value));
         return(true);
     }
     return(false);
 }
 public EmbeddedSpatialDataMapper(VectorLayerMapper vectorLayerMapper, Dictionary <SpatialElementKey, SpatialElementInfoGroup> spatialElementsDictionary, ISpatialElementCollection embeddedCollection, CoreSpatialElementManager spatialElementManager, MapControl coreMap, MapMapper mapMapper)
     : base(vectorLayerMapper, spatialElementsDictionary, coreMap, mapMapper)
 {
     this.m_spatialElementManager = spatialElementManager;
     this.m_embeddedCollection    = embeddedCollection;
 }
Example #6
0
 public SizeRuleMapper(MapSizeRule mapColorRule, VectorLayerMapper vectorLayerMapper, CoreSpatialElementManager coreSpatialElementManager)
     : base(mapColorRule, vectorLayerMapper, coreSpatialElementManager)
 {
 }