Example #1
0
 public TableBaseM(AbsM.IDataRepositoryM source, object id, int?srid, AbsM.ETableType type)
 {
     _source  = source;
     _id      = id;
     _type    = type;
     _srid    = srid;
     _isLayer = srid.HasValue;
 }
Example #2
0
        public CosmeticTableBaseM(AbsM.IDataRepositoryM source, int srid)
            : base(source, srid, AbsM.ETableType.MapLayer)
        {
            _axMapLib = (Source as AbsVM.DataRepositoryVM).MapViewer;

            _id      = CosmeticTableBaseM.cosmeticLayerId++;
            _objects = new ObservableCollection <CosmeticObjectM>();

            PrimaryKeyField = new CosmeticFieldM(this, PkFieldName, "id", AbsM.EFieldType.Integer, false);

            Fields.Add(PrimaryKeyField);
            Fields.Add(new CosmeticFieldM(this, "label", Rekod.Properties.Resources.CosTableView_Label, AbsM.EFieldType.Text, false));
            Fields.Add(new CosmeticFieldM(this, GeomFieldName, "Геометрия", AbsM.EFieldType.Geometry, false));

            DefaultStyle = new PgStyleLayerM(CosmeticStyleType.All);
            LabelStyle   = new PgStyleLableM();

            PropertyChanged += CosmeticTableBaseM_PropertyChanged;
        }
Example #3
0
 public RastTableBaseM(AbsM.IDataRepositoryM source, int id, string filePath, AbsM.ETableType type)
     : base(source, id, Convert.ToInt32(Program.srid), type)
 {
     FilePath    = filePath;
     ConnectType = FileExtensionConnectTypeBehavior.GetConnectType(filePath);
 }
Example #4
0
 public RastTableBaseM(AbsM.IDataRepositoryM source, AbsM.ETableType type)
     : base(source, Convert.ToInt32(Program.srid), type)
 {
 }
Example #5
0
 public TableBaseM(AbsM.IDataRepositoryM source, int?srid, AbsM.ETableType type)
     : this(source, 0, srid, type)
 {
     _isNewTable = true;
 }
Example #6
0
 public VMPTableBaseModel(AbsM.IDataRepositoryM source, String id, AbsM.ETableType type)
     : base(source, id, Convert.ToInt32(((AbsVM.DataRepositoryVM)source).MapViewer.SRID), type)
 {
 }
Example #7
0
 public PgTableBaseM(AbsM.IDataRepositoryM source, Int32 id, int?srid, AbsM.ETableType type)
     : base(source, id, srid, type)
 {
     _id = id;
 }
Example #8
0
 public PgTableBaseM(AbsM.IDataRepositoryM source, int?srid, AbsM.ETableType type) :
     base(source, srid, type)
 {
 }
Example #9
0
 public GroupM(AbsM.IDataRepositoryM source)
 {
     _tables     = new ObservableCollection <AbsM.ILayerM>();
     this.Source = source;
     _isNewGroup = true;
 }
Example #10
0
 public GroupM(AbsM.IDataRepositoryM source, int id)
 {
     _tables     = new ObservableCollection <AbsM.ILayerM>();
     this.Id     = id;
     this.Source = source;
 }