Secondary Development of Google Earth

Source: Internet
Author: User

Secondary Development of Google Earth has very weak functions and very little information.
The following two links are provided:
Googleearth API instructions
Link: http://www.tootc.cn/bbs/viewthread.php? Tid = 2602
Abstract:
Googleearth API keyhole 1.0 Type Library
When you want to use the googleearth API, you must first reference it in the project. Take VB as an example and select "Reference" in the "project" menu ",
If you have installed googleearth, "Keyhole 1.0 Type Library" is displayed in the reference column"
It is the master of googleearth.Program.

After the reference, open the Object Browser and you will be able to see the googleearth API classes and functions and attributes !!

The googleearth API has four classes. Each class has multiple functions and attributes.
The following describes the common functions:

Class khfeature
Property hasview as long read-only does not know what it means. It has never been used. Which expert can give an explanation?
Property visibility as long landmark visual Option

Class khinterface
Property autopilotspeed as double Ge automatic flight speed
Function currentview (terrain as long) as khviewinfo Ge current view
Property currentviewextents as khviewextents read-only
Function getfeaturebyname (name as string) as khfeature
Function getpointonterrainfromscreencoords (screen_x as double, screen_y as double) as double ()
Sub loadkml (kmldata as string) imports kml strings. Chinese characters are not supported.
Sub openfile (filename as string) Open the landmark File
Sub quitapplication () Exit the program
Sub savescreenshot (filename as string, quality as long) Save
Sub setfeatureview (feature as khfeature, speed as double)
Sub setrenderwindowsize (width as long, height as long)
Sub setview (view as khviewinfo, terrain as long, speed as double) Use khviewinfo to set the angle of view range
Sub setviewparams (LAT as double, Lon as double, range as double ,_
Tilt as double, azimuth as double, terrain as long, speed as double) Use a numerical value to set the angle of view range.
Property streamingprogresspercentage as long read-only data transfer progress percentage

Class khviewextents
Property east as double read-only
Property north as double read-only
Property south as double read-only
Property west as double read-only

Class khviewinfo
Property azimuth as double Azimuth
Property latitude as double latitude
Property longpolling as double longitude
Property range as double range
Property tilt as double dip

Using these functions, You can partially control GE to implement some small functions,

Google Earth com api documentation
Link: http://earth.google.com/comapi/index.html

Introduction

This document describes the features of the Google Earth com api. the Google Earth com api allows third party applications to query information from and send commands to Google Earth. through iapplicationge, applications can query the current viewport, control the 3D viewpoint, use kml features, and more.

This Google Earth com api documentation package includes des:

    • This documentation
    • Earth. IDL-the original IDL for COM interface and documentation

Gevcontorl (gevc) is a completely COM control.
Gevcontorl (gevc) is a completely COM control. It is supported for all versions of googleearth so far and has high compatibility and availability. It is able to convert Ge view (Earth view) integrated into the developer's application system, and supports the scroll wheel function. with gevc developers, you don't have to worry about how GE is integrated into the system, so you can focus on developing business functions using GE APIs.
Link: http://www.gis9.com

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.