与Google Earh提升 [英] elev with google earh
本文介绍了与Google Earh提升的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!
问题描述
要获得高点的Google软件并转移到该程序中?
To obtain high point of Google''s software and transferred to the program?
using System;
using System.Collections.Generic;
using System.ComponentModel;
using System.Drawing;
using System.Data;
using System.Text;
using System.Windows.Forms;
using System.Runtime.InteropServices;
using EARTHLib;
using System.Threading;
namespace WindowsFormsApplication7
{
public partial class Form1 : Form
{
public Form1()
{
InitializeComponent();
}
public delegate int EnumWindowsProc(IntPtr hwnd, int lParam);
[DllImport("user32", CharSet = CharSet.Auto)]
public extern static IntPtr GetParent(IntPtr hWnd);
[DllImport("user32", CharSet = CharSet.Auto)]
// public extern static bool MoveWindow(IntPtr hWnd, int X, int Y, int nWidth, int nHeight, bool bRepaint);
public extern static bool MoveWindow(IntPtr hWnd, int X, int Y, int nWidth, int nHeight, bool bRepaint);
[DllImport("user32", CharSet = CharSet.Auto)]
public extern static IntPtr SetParent(IntPtr hWndChild, IntPtr hWndNewParent);
private IntPtr GEHrender = (IntPtr)0;
private IntPtr GEParentHrender = (IntPtr)0;
public ApplicationGEClass googleEarth;
public void Unload()
{
if (GEParentHrender != (IntPtr)0)
SetParent(GEHrender, GEParentHrender);
}
private void Form1_Load(object sender, EventArgs e)
{
if (this.DesignMode == false)
{
googleEarth = new ApplicationGEClass();
GEHrender = (IntPtr)googleEarth.GetRenderHwnd();
GEParentHrender = GetParent(GEHrender);
// MoveWindow(GEHrender, 0, 0, this.Width, this.Height, true);
MoveWindow(GEHrender, 0, 0, 800, this.Height, true);
SetParent(GEHrender, this.Handle);
}
}
private void timer1_Tick(object sender, EventArgs e)
{
textBox1.Text = "" + googleEarth.ViewExtents.East;
textBox2.Text = "" + googleEarth.ViewExtents.North;
textBox3.Text = "" + googleEarth.ViewExtents.South;
textBox5.Text = "" + googleEarth.ViewExtents.West;
}
北方和南方,东方和西方,却没有海拔.请帮忙.
North and South, East and West, and it just does not have the elev. Please help.
推荐答案
如果您的意思是海拔":某个区域的海拔应该是多少?点有高程,但有面积?好的,除非它是平坦的... ViewExtents显示一个区域,而不是一个点.
In case you mean "elevation": what should be the elevation for an area? A point has an elevation, but an area? Ok, except when it is flat... ViewExtents shows an area, not a point.
什么......... ?????????? ?????????????????????????????????????????????
L ??
.
What.........??????????????????????????????????????????????.??????
L??
.
这篇关于与Google Earh提升的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!
查看全文