program.cs
来自「KML 2.0介绍 KML全称是Keyhole Markup Language 」· CS 代码 · 共 38 行
CS
38 行
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 + =
减小字号Ctrl + -
显示快捷键?