资源简介
KML解析库,直接加载KML,可以获取KML中各种空间特征信息。

代码片段和文件信息
using System;
using SharpKml.Dom;
using SharpKml.Engine;
namespace Examples
{
///
/// Iterates over all the Features in a Kml file and displays an information balloon
///
public static class BalloonFeatures
{
private const string InputFile = “Sample.kml“;
public static void Run()
{
KmlFile file = Program.OpenFile(“Enter a file to show the features of:“);
if ((file != null) && (file.Root != null))
{
EntityMapper mapper = new EntityMapper(file);
foreach (var element in file.Root.Flatten())
{
Feature feature = element as Feature;
if (feature != null)
{
string name = feature.Name ?? “Unnamed feature“;
string balloon = mapper.CreateBalloonText(feature);
Console.WriteLine(“Feature balloon text for ‘{0}‘\n{1}\n“ name balloon);
}
}
}
}
}
}
属性 大小 日期 时间 名称
----------- --------- ---------- ----- ----
目录 0 2013-05-16 03:47 Examples\
文件 1127 2013-05-16 03:47 Examples\BalloonFeatures.cs
文件 1785 2013-05-16 03:47 Examples\Change.cs
文件 1628 2013-05-16 03:47 Examples\Clone.cs
文件 1565 2013-05-16 03:47 Examples\CreateIconst
文件 1412 2013-05-16 03:47 Examples\CreateKml.cs
文件 1205 2013-05-16 03:47 Examples\CreateKmz.cs
目录 0 2013-05-16 03:47 Examples\Data\
文件 1174 2013-05-16 03:47 Examples\Data\camera_mode.png
文件 919 2013-05-16 03:47 Examples\Data\doc.kml
文件 5310 2013-05-16 03:47 Examples\Data\Sample.kml
文件 1486893 2013-05-16 03:47 Examples\Data\zermatt.jpg
文件 3452 2013-05-16 03:47 Examples\Examples.csproj
文件 815 2013-05-16 03:47 Examples\Inlinest
文件 751 2013-05-16 03:47 Examples\ParseKml.cs
文件 5711 2013-05-16 03:47 Examples\Program.cs
文件 1464 2013-05-16 03:47 Examples\Showst
文件 2149 2013-05-16 03:47 Examples\SortPlacemarks.cs
文件 803 2013-05-16 03:47 Examples\Splitst
文件 1422 2013-05-16 03:47 SharpKml-SL.sln
文件 1872 2013-05-16 03:47 SharpKml.sln
目录 0 2013-05-16 03:47 SharpKml\
目录 0 2013-05-16 03:47 SharpKml\ba
文件 2891 2013-05-16 03:47 SharpKml\ba
文件 9338 2013-05-16 03:47 SharpKml\ba
文件 769 2013-05-16 03:47 SharpKml\ba
文件 2486 2013-05-16 03:47 SharpKml\ba
文件 744 2013-05-16 03:47 SharpKml\ba
文件 2129 2013-05-16 03:47 SharpKml\ba
文件 5170 2013-05-16 03:47 SharpKml\ba
文件 4253 2013-05-16 03:47 SharpKml\ba
............此处省略289个文件信息
- 上一篇:简单的基于C#的教材管理系统
- 下一篇:基于Visual C#的DirectX开发
相关资源
- ArcGIS Runtime SDK for .NET
- ArcGIS MapServer 要素类
- 出图:地图服务和要素类(ESRI.ArcGI
- 桔园施肥计算(ESRI.ArcGIS)
- 武测GIS实习报告
-
MapGIS K9 ob
jects二次开发程序 - ArcEngine最全的实验代码GIS程序设计教
- GDAL202.rar
- 基于C#开发的迷你GIS系统
- ArcGIS Engine 10 二次开发 esri 内部培训资
- ArcGIS-Engine基础开发教程(C#)C#二次开
- ArcGIS Engine 10开发手册 书中的代码
- 基于C#+Arcgis Engine 开发的房产测绘软件
- GIS小型地理展示系统
- WebGIS 开发 简单(asp.net+arcgis server),
- 基于C#+AE构建GIS 公路灾害信息查询系
- ArcGIS_Engine_C#开发教程+源码超值
- ★基于C#+ArcGIS Engine构建的GIS桌面端应
- Arcgis Engine C# web开发(共24个)
- 关于C#的GIS定位显示
- C# ArcGISEngine 分区统计最小二乘
- 基于C#开发的开源GIS项目 KLMap
- ArcGIS Engine 10开发手册
- 基于C#.net和AE的GIS系统二次开发
- GIS算法c#实现:八方向栅格化,扫描线
- ArcGIS 10.2 + VS2012二次开发源码与说明文
- 点和线多边形缓冲区 c#算法
- Sharpmap GIS C#开发的Map渲染类库
- 开源GIS Sharpmap及其shp资源
- C#版GIS软件源码
评论
共有 条评论