program.cs

来自「ESRI scheme 文件投影修改」· CS 代码 · 共 43 行

CS
43
字号
using System;
using System.Collections.Generic;
using System.Text;
using System.Xml;
namespace ChangeXMLPrj
{
    class Program
    {
        static void Main(string[] args)
        {
            if( LicenseCheck.CheckLicense()==false)return ;
            //ClsOutToGDB cls = new ClsOutToGDB();
            //cls.CheckInGDB();
            //cls.CheckOutRepia();

            //Console.WriteLine("##Go");解析创建prj文件投影
            //PrjFileProp objprjProp = new PrjFileProp(All.Fprjname );


            Console.WriteLine("##GDB XML FILE:");

            EsriXmlEdit exe = new EsriXmlEdit(All.Fxmlmodelname);
            opera op = new opera();
            exe.ISpatialRef = op.getSpatialRefByPrjFile();
            exe.ESRTTypehead = All.tagAttrvaluePCS;
            exe.Duck();
            exe.Close();

           
            //XMLEditor xmledit = new XMLEditor(All.Fxmlmodelname);
            //XmlNode[] refnodes = xmledit.getNodeWithTag(All.tagSpatialRef);
            //ModelSpatialRefProp objSpatialRefProp = new ModelSpatialRefProp(xmledit);
            //opera op = new opera();
            //objSpatialRefProp.ISpatialRef = op.getSpatialRefByPrjFile();
            //objSpatialRefProp.ParseSpatialRefNodeToProp(refnodes);
            //objSpatialRefProp.PrintArgs();
            //xmledit.CloseXMLDoc(true);

            LicenseCheck.ShutDown();
        }
    }
}

⌨️ 快捷键说明

复制代码Ctrl + C
搜索代码Ctrl + F
全屏模式F11
增大字号Ctrl + =
减小字号Ctrl + -
显示快捷键?