Skyline学习资料以及实用代码汇总

基本知识点:

1.5.2 偏移,俯仰和翻滚角度 

摄像机、飞机和对象的偏移(方向),俯仰(倾斜)和翻滚角的定义如下图所示。
  
      

 

1、偏移角   Yaw


        范围从 0到 360,0=北。TerraExplorer Pro 通过调整无效值操作将无效值调整到这个范围。

 

2、俯仰角  Pitch
范围-90°到+90°,+90=从下到上垂直,-90=从上到下垂直。TerraExplorer Pro 通过调整无效值操作将无效值调整到这个范围。

     

3、翻滚角 Roll
范围-90°到+90°,0=水平,+90=向右翻滚至垂直,-90=向左翻滚至垂直。TerraExplorer Pro 通过调整无效值操作将无效值调整到这个范围。

   

 

 

 

 

代码:

1.测距离: 

2.怎么实现画圆空间查询 

3.sharpkml  

4.Reading a KML (XML) file

 5. c# - 如何解析KML文件以从地标元素检索坐标点? 

  

6. C#获取照片中Exif信息里GPS经纬度 

源代码: 

改进后

  

7. C#如何遍历某个文件夹中的所有子文件和子文件夹(循环递归遍历多层)  

  

8.求时间差,时分秒

  

  

复制代码
 1 using System;
 2 using System.Diagnostics;
 3 using System.Threading;
 4 class Program
 5 {
 6     static void Main(string[] args)
 7     {
 8         Stopwatch stopWatch = new Stopwatch();
 9         stopWatch.Start();
10         Thread.Sleep(10000);
11         stopWatch.Stop();
12         // Get the elapsed time as a TimeSpan value.
13         TimeSpan ts = stopWatch.Elapsed;
14 
15         // Format and display the TimeSpan value.
16         string elapsedTime = String.Format("{0:00}:{1:00}:{2:00}.{3:00}",
17             ts.Hours, ts.Minutes, ts.Seconds,
18             ts.Milliseconds / 10);
19         Console.WriteLine("RunTime " + elapsedTime);
20     }
21 }
View Code
复制代码

 9.打开文件夹选择多个文件

  

复制代码
 1 using (OpenFileDialog fileDialog = new OpenFileDialog())
 2             {
 3                 fileDialog.Title = "请选择文件";
 4                 fileDialog.Filter = "kml files (*.cpt)|*.cpt|All files (*.*)|*.*";
 5                 fileDialog.FilterIndex = 1;
 6                 fileDialog.InitialDirectory = SamplesDirectory;
 7                 fileDialog.Multiselect = true;
 8 
 9                 if (fileDialog.ShowDialog() == DialogResult.OK)
10                 {
11                     foreach (string file in fileDialog.FileNames)
12                     {
13                         string fileName = System.IO.Path.GetFileName(file);
14                         ISGWorld701 sgworld = new SGWorld701();
15                         IPosition701 tower2Position = sgworld.Creator.CreatePosition(120, 30, 0, AltitudeTypeCode.ATC_TERRAIN_RELATIVE, 0, 0, 0);
16                         sgworld.Creator.CreatePointCloudModel(file, tower2Position, null, fileName);
17                     }
18 
19                 }
20 
21             }
View Code
复制代码

 

 10.Skyline二次开发--(1)动态对象自定义路径漫游

 

 

 

 

网站:

  官网论坛二次开发模块

  GIS派-shaoge

  Skyline TerraExplorer 7.0- 扩展信息树

  Skyline 7.0 二次开发示例代码下载

  skyline 5

  Skyline 二次开发鼠标获取三维坐标

  Skyline桌面二次开发之路径漫游(C#)

 
 
 
posted @   Youse的二分口粮地  阅读(490)  评论(0编辑  收藏  举报
编辑推荐:
· 基于Microsoft.Extensions.AI核心库实现RAG应用
· Linux系列:如何用heaptrack跟踪.NET程序的非托管内存泄露
· 开发者必知的日志记录最佳实践
· SQL Server 2025 AI相关能力初探
· Linux系列:如何用 C#调用 C方法造成内存泄露
阅读排行:
· 震惊!C++程序真的从main开始吗?99%的程序员都答错了
· 【硬核科普】Trae如何「偷看」你的代码?零基础破解AI编程运行原理
· 单元测试从入门到精通
· 上周热点回顾(3.3-3.9)
· Vue3状态管理终极指南:Pinia保姆级教程
点击右上角即可分享
微信分享提示