Ejemplo n.º 1
0
        public WritePolygonNodes(ESRIData.Dataset dataset,TempData.TempFile pTempFile, VCTFile pVCTFile, int nNewEntityID)
        {
            m_dataset = dataset;
            m_pTempFile = pTempFile;
            m_VCTFile = pVCTFile;
            m_nNewEntityID = nNewEntityID;
            m_nLayerCount = m_dataset.GetLayerCount();

            //WriteCommplete = null;
        }
Ejemplo n.º 2
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.º 3
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();
        }