Home > Backend Development > C#.Net Tutorial > The three-dimensional earth control called by C#, see the three-dimensional earth construction process

The three-dimensional earth control called by C#, see the three-dimensional earth construction process

php是最好的语言
Release: 2018-07-26 17:59:09
Original
3361 people have browsed it

Why use a three-dimensional earth? Three-dimensional Earth is an important development direction of geographic information technology. Compared with two-dimensional map technology, the biggest feature of three-dimensional Earth is that it expresses geographic information and spatial orientation more intuitively and vividly. We can experience the vividness, image, and good interactivity of the three-dimensional earth in applications such as three-dimensional weather simulation and three-dimensional virtual tourism.

1. Why use a three-dimensional earth?

Three-dimensional Earth is an important development direction of geographic information technology. Compared with two-dimensional map technology, the biggest feature of three-dimensional Earth is that it expresses geographic information and spatial orientation more intuitively and vividly. We can experience the vividness, image, and good interactivity of the three-dimensional earth in applications such as three-dimensional weather simulation and three-dimensional virtual tourism.

However, developing and implementing a three-dimensional earth from scratch requires a lot of professional knowledge. Complex algorithms such as various matrices and ray tracing are daunting, and the amount of programming is huge. The high complexity of three-dimensional software development greatly limits the software. Manufacturers integrate cool three-dimensional earth functions into their products.

With the rapid development of the domestic Internet environment, many companies provide complete SDKs for developers to use. Choosing appropriate and stable SDK services and spending very little effort can quickly solve the needs of three-dimensional earth construction.

2. Three-dimensional Earth Construction Process

LocaSpace is a professional three-dimensional geographic information platform that provides powerful functions and stable performance for public institutions, enterprises and scientific research institutions. and cost-effective 3D geographic information solutions. LocaSpace has full-space three-dimensional visualization capabilities, including the surface and underground, and uses a digital earth method to integrate natural features, artificial facilities, and human activities in the earth's space system.

Using LocaSpace SDK can build a three-dimensional earth in the fastest way:
Development basic environment construction:
1) Open Microsoft Visual Studio 2012 and select New Windows Form Application. Select .NET FrameWork 4
2) Copy all files in the [LSV-DotNet-SDK] folder to the [Debug] or [Release] folder of the project.
3) Right-click on "References" in the project manager, select "Add Reference", then browse to the Debug folder and select GSGlobeDotNet.dll and GSToolTipDotNet.dll.

Load the three-dimensional ball:
1) Import the namespace in Form1.cs and load the three-dimensional ball.

using GeoScene.Globe;
namespace HelloWord
{
    public partial class Form1 : Form
    {
        //创建球对象
        GSOGlobeControl globeControl1;
        public Form1()
        {
            InitializeComponent();
            //添加球
            globeControl1 = new GSOGlobeControl();
            this.Controls.Add(globeControl1);
            globeControl1.Dock = DockStyle.Fill;
        }
    }
}
Copy after login

2) Click [F5] to run, you can see the following interface:
The three-dimensional earth control called by C#, see the three-dimensional earth construction process

3) Then, initialize the properties of the three-dimensional ball, and the effect after running is as follows Picture:
The three-dimensional earth control called by C#, see the three-dimensional earth construction process

3. Other 3D GIS functions that can be quickly implemented

In addition to building a 3D earth, use LocaSpace SDK The 3D GIS functions that can be used also include: loading high-resolution images (DOM) and high-precision 3D terrain (DEM), supporting real underground 3D scenes, loading line drawing KML, Shapefile, 3ds, obj and other data formats, and supporting in the earth Various geometries, massive text annotation support, convenient measurement functions, 3D model editing functions, etc.

Zhongke Tuxin has submitted LocaSpace.SDK to two major code hosting platforms: GitHub (overseas) and Mayun (domestic). The two parties will update simultaneously. Follow the public account LocaSpaceViewer and send the keyword "SDK". You can get the link.

Related articles:

[c# tutorial] C# data type

Related videos:

C# tutorial

The above is the detailed content of The three-dimensional earth control called by C#, see the three-dimensional earth construction process. For more information, please follow other related articles on the PHP Chinese website!

Related labels:
source:php.cn
Statement of this Website
The content of this article is voluntarily contributed by netizens, and the copyright belongs to the original author. This site does not assume corresponding legal responsibility. If you find any content suspected of plagiarism or infringement, please contact admin@php.cn
Popular Tutorials
More>
Latest Downloads
More>
Web Effects
Website Source Code
Website Materials
Front End Template