⭐ 欢迎来到虫虫下载站! | 📦 资源下载 📁 资源专辑 ℹ️ 关于我们
⭐ 虫虫下载站

📄 program.cs

📁 KML 2.0介绍 KML全称是Keyhole Markup Language KML
💻 CS
字号:
using System;
using System.Collections.Generic;
using System.Text;

namespace KMLCreator
{
  class Program
  {
    static void Main(string[] args)
    {

      //Generic List of KML Coords
      List<KMLCoordinates> l = new List<KMLCoordinates>();

      //Sample KML Coords
      l.Add(new KMLCoordinates(0.0, 51.0));
      l.Add(new KMLCoordinates(0.2, 51.01));
      l.Add(new KMLCoordinates(-0.1, 51.03));
      l.Add(new KMLCoordinates(0.03, 51.01));
      l.Add(new KMLCoordinates(-0.5, 51.05));
      l.Add(new KMLCoordinates(0.5, 51.05));
      l.Add(new KMLCoordinates(0.6, 51.06));

      //Creates a line here
      KMLLine kl = new KMLLine(l, "LineSample", "This is a Line Sample");
      kl.Save();

      //Sample KML Coords
      KMLCoordinates p = new KMLCoordinates(0.25, 51.25);

      //Creates a line here
      KMLPoint kp = new KMLPoint(p, "PointSample", "This is a Point Sample");
      kp.Save();

    }
  }
}

⌨️ 快捷键说明

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