3D Digital Sandbox Interactive Big Data Visualization GIS Geographic Information System Lesson 10

Three-dimensional electronic sand table interactive drone oblique photography big data visualization GIS geographical information system lesson 10

Set system.ini as follows
Server=122.112.229.220
user=GisTest
Password=chinamtouch. com

This database only provides data near Chengdu South Railway Station. Please note, 104.0648,30.61658

The SDK comes with a customized basic panel, which is encapsulated based on Canvas and supports multi-touch, single-click mouse dragging, and wheel zooming. Using this basic panel, secondary development only requires care. Content: the above code:

<m1:MCanvas
    xmlns:m1="clr-namespace:GisLib;assembly=GisLib" x:Class="Teach3DGIS.UserControl1"
             xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
              xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
             xmlns:mc="http://schemas.openxmlformats.org/markup-compatibility/2006" 
             xmlns:d="http://schemas.microsoft.com/expression/blend/2008" 
               xmlns:m="clr-namespace:GisLib"
           
             mc:Ignorable="d" 
             Height="262" Width="444">
 
</m1:MCanvas>
using GisLib;
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
using System.Windows;
using System.Windows.Controls;
using System.Windows.Data;
using System.Windows.Documents;
using System.Windows.Input;
using System.Windows.Media;
using System.Windows.Media.Imaging;
using System.Windows.Navigation;
using System.Windows.Shapes;
 
namespace Teach3DGIS
{
    /// <summary>
    /// UserControl1.xaml 的交互逻辑
    /// </summary>
    public partial class UserControl1 : MCanvas
    {
        public UserControl1()
        {
            InitializeComponent();
        }
    }
}
你在IDE中则可以看到如下界面:

 

At this time, you only need to pay attention to what content is displayed on the UI. Multi-touch operations and mouse drag actions are already supported. The calling method is as follows:

 UserControl1 ShowImage = new UserControl1();
            Canvas.SetTop(ShowImage, 200);
            Canvas.SetLeft(ShowImage, 300);< /span> Based on this SDK Some built-in panels are: display pictures (GisLib.ShowImage), display videos (GisLib.ShowVod), display panoramic pictures (GisLib.Show360Image), display panoramic videos (GisLib.Q360Vod), display xps documents (GisLib.ShowDocx)
            Canvas.SetZIndex(ShowImage, 30);

The calling code is as follows:

display image

 
            GISLIB.SHOWIMAGE ShowImage = New ShowImage (AppDomain.currentDomain.BaseDirectory + & Quot; Background .jpg & Quot;); canvas.Settop (ShowImage, 200); a i=2> Canvas.SetLeft(ShowImage, 300);             Canvas.SetZIndex(ShowImage, 30);             ShowImage.MShow(); //Show animation Show video




 GisLib.ShowVod ShowImage = new ShowVod(AppDomain.CurrentDomain.BaseDirectory + "War Scene.wmv",new TimeSpan(0));
            Canvas.SetTop(ShowImage, 200 );
            Canvas.SetLeft(ShowImage, 300);
            Canvas.SetZIndex(ShowImage, 30);
            ShowImage.MShow (); //Display animation
Display panoramic image panel:

GisLib.Show360Image ShowImage = new Show360Image(300,200);
            ShowImage.InitPic(@"D:\MTOUCH GIS\data\Chengdu City\Panorama\Panorama.jpg") ;
            Canvas.SetTop(ShowImage, 200);
            Canvas.SetLeft(ShowImage, 300);
            Canvas.SetZIndex( ShowImage, 30);
            ShowImage.MShow(); //Show animation


Panoramic video: (can display videos shot with 720° settings, such as those shot by Xiaomi panoramic camera)

 

  GisLib.Q360Vod ShowImage = new GisLib.Q360Vod(320, 200);
            ShowImage.InitPic (@"D:\MTOUCH GIS\data\Chengdu City\Panorama\Panorama .jpg","Panorama video");
 
            Canvas.SetTop(ShowImage, 200);
            Canvas.SetLeft(ShowImage, 300); a>
            a> xps document display:
            ShowImage.MShow(); //Show animation Canvas.SetZIndex(ShowImage, 30);

    GisLib.ShowDocx ShowImage = new ShowDocx("1.xps");
            Canvas.SetTop(ShowImage, 200);
            Canvas. SetLeft(ShowImage, 300);
            Canvas.SetZIndex(ShowImage, 30);
            ShowImage.MShow(); //Show animation
Due to the characteristics of WPF. Therefore, all panels can support multiple people operating at the same time. While one person is operating the map, another person can also operate other panels at the same time without affecting each other.
 

Guess you like

Origin blog.csdn.net/qq_37897462/article/details/131104635