Exemplo n.º 1
0
        public void CaseExportAllInfo()
        {
            IFeatureClass fClass = null;

            ArcObjectExportTool <object> arcObjectExportTool = new ArcObjectExportTool <object>();

            arcObjectExportTool.SetCallBack = CallBack;
            arcObjectExportTool.ExportInfo(new List <object>())
            .ExportTo(fClass)
            .SaveEveryNRecord(100)
            .Insert();
        }
Exemplo n.º 2
0
        public void CaseExportFeatureClass()
        {
            IFeatureClass srcFeatureClass = null;
            IFeatureClass desFeatureClass = null;

            ArcObjectExportTool <IFeatureClass> arcObjectExportTool = new ArcObjectExportTool <IFeatureClass>();

            arcObjectExportTool.SetCallBack = CallBack;
            arcObjectExportTool.ExportInfo(srcFeatureClass)
            .ExportTo(desFeatureClass)
            .SaveEveryNRecord(100)
            .Insert();
        }
Exemplo n.º 3
0
        public void CaseExportSpecifiedInfo()
        {
            IFeatureClass fClass = null;

            ArcObjectExportTool <info> arcObjectExportTool = new ArcObjectExportTool <info>();

            arcObjectExportTool.SetCallBack = CallBack;
            arcObjectExportTool.ExportInfo(new List <info>())
            .ExportTo(fClass)
            .SaveEveryNRecord(100)
            .MappingField(x => x.Ref_OID, "Ref_OID")
            .Insert();
        }
Exemplo n.º 4
0
        public void ExportAllInfo()
        {
            List <TestInfo> lstInfo = new List <TestInfo>();
            IFeatureClass   fClass  = null;

            ArcObjectExportTool objExport = new ArcObjectExportTool();

            objExport.SetExportInfo <TestInfo>()
            .SetExportAllInfo(true)
            .SetExportList(lstInfo)
            .SetExportFeatureClass(fClass)
            .Insert();
        }
Exemplo n.º 5
0
        public void ExportSpecifically()
        {
            List <TestInfo> lstInfo = new List <TestInfo>();
            IFeatureClass   fClass  = null;

            ArcObjectExportTool objExport = new ArcObjectExportTool();

            objExport.SetExportInfo <TestInfo>()
            .SetExportAllInfo(false)
            .SetExportList(lstInfo)
            .SetExportFeatureClass(fClass)
            .MappingField(x => x.Name, "BL_Name")
            .Insert();
        }