Ejemplo n.º 1
0
        public VCT2MDB(string strVCTFilePahtName, string strMDBFilePahtName,string strDataSetName,ArcDataType pDatatype)
        {
            m_strDataSetName = strDataSetName;
            m_VCTFile = new VCTFile(true, strVCTFilePahtName);

            if (pDatatype== ArcDataType.MDB)
                m_MDBFile = new MDBFile(false, strMDBFilePahtName);
            else
                m_MDBFile = new FGDBFile(false, strMDBFilePahtName);
		}
Ejemplo n.º 2
0
        public VCT2MDB(string strVCTFilePahtName, string strMDBFilePahtName,string strDataSetName,ArcDataType pDatatype)
        {
            m_strDataSetName = strDataSetName;
            m_VCTFile = new VCTFile(true, strVCTFilePahtName);

            if (pDatatype== ArcDataType.MDB)
                m_MDBFile = new MDBFile(false, strMDBFilePahtName);
            else
                m_MDBFile = new FGDBFile(false, strMDBFilePahtName);
        }
Ejemplo n.º 3
0
        //public event WriteCommpleteEventHandler WriteCommplete;

        /// <summary>
        /// mdb转vct控制类构造函数
        /// </summary>
        /// <param name="strMDBFilePahtName">mdb文件路径</param>
        /// <param name="strVCTFilePahtName">vct文件路径</param>
        /// <param name="pDataType">数据源类型</param>
        public MDB2VCT(string strMDBFilePahtName, string strVCTFilePahtName,ArcDataType pDataType)
        {
            if (pDataType == ArcDataType.MDB)
                m_MDBFile = new MDBFile(true, strMDBFilePahtName);
            else
                m_MDBFile = new FGDBFile(true, strMDBFilePahtName);
            m_VCTFile = new VCTFile(false, strVCTFilePahtName);

            m_pTempFile = new DIST.DGP.DataExchange.VCT.TempData.TempFile(strVCTFilePahtName + ".tmp.mdb");

            //WriteCommplete = null;
        }
Ejemplo n.º 4
0
        //public event WriteCommpleteEventHandler WriteCommplete;
        /// <summary>
        /// mdbתvct�����๹�캯��
        /// </summary>
        /// <param name="strMDBFilePahtName">mdb�ļ�·��</param>
        /// <param name="strVCTFilePahtName">vct�ļ�·��</param>
        /// <param name="pDataType">����Դ����</param>
        public MDB2VCT(string strMDBFilePahtName, string strVCTFilePahtName,ArcDataType pDataType)
        {
            if (pDataType == ArcDataType.MDB)
                m_MDBFile = new MDBFile(true, strMDBFilePahtName);
            else
                m_MDBFile = new FGDBFile(true, strMDBFilePahtName);
            m_VCTFile = new VCTFile(false, strVCTFilePahtName);

            m_pTempFile = new DIST.DGP.DataExchange.VCT.TempData.TempFile(strVCTFilePahtName + ".tmp.mdb");

            //WriteCommplete = null;
        }
Ejemplo n.º 5
0
        public virtual void Dispose()
        {
            if (m_VCTFile != null)
                m_VCTFile.CloseFile();
            m_VCTFile = null;

            Metadata.MetaDataFile.Dispose();

            if (m_pTempFile != null)
                m_pTempFile.Close();
            m_pTempFile = null;

            if (m_dataset != null)
                m_dataset.Dispose();
            m_dataset = null;
            
            if (m_MDBFile != null)
                m_MDBFile.Dispose();
            m_MDBFile = null;
            GC.Collect();
        }
Ejemplo n.º 6
0
        public virtual void Dispose()
        {
            if (m_VCTFile != null)
                m_VCTFile.CloseFile();
            m_VCTFile = null;

            Metadata.MetaDataFile.Dispose();

            if (m_pTempFile != null)
                m_pTempFile.Close();
            m_pTempFile = null;

            if (m_dataset != null)
                m_dataset.Dispose();
            m_dataset = null;

            if (m_MDBFile != null)
                m_MDBFile.Dispose();
            m_MDBFile = null;
            GC.Collect();
        }