google-earth

Debugging KML file

不想你离开。 提交于 2019-12-22 18:34:58
问题 <?xml version="1.0" encoding="UTF-8"?> <kml xmlns="http://www.opengis.net/kml/2.2" xmlns:gx="http://www.google.com/kml/ext/2.2" xmlns:kml="http://www.opengis.net/kml/2.2" xmlns:atom="http://www.w3.org/2005/Atom"> <Document> <Placemark> <Name>Test Name</Name> <Description><b>Project Information</b><br><ul><li>Project Name: Test Name</li><li>Project Number: Test Number</li><li>Project Location: Test Location</li><li>System: Test System</li></ul><br><b>Project Team</b><br><br><ul><li>Regional

What is the best way to generate KML files in C#?

↘锁芯ラ 提交于 2019-12-22 03:40:30
问题 What is the best way to generate KML files using C#? Is there a class library that I can use? I have looked and struggled to find anything interesting. libkml doesn't have a C# implementation or wrapper. Any help would be great. 回答1: SharpKML - library based on Google's C++ implementation of libkml 回答2: Here are ​​​​​​​​​​​​​​​​some: http://code.google.com/p/kml-library/ http://www.codeproject.com/KB/cs/Google_Earth_KML_Files.aspx http://gekml.boseefus.com/ 来源: https://stackoverflow.com

Qt and Google Earth API

隐身守侯 提交于 2019-12-22 03:16:31
问题 Is it possible to develop an application in Qt, using Google Earth? For example, I want to show the earth (as in google earth) as a sphere via QtGL in my application. 回答1: It is obvious that you can use google earth api with Qt. And I want to share a secret(!!!). Google earth is developed with Qt. :D Here you can find some people discussing about google earth and Qt. Here is some anothe example. 回答2: You could start by looking at the GE Api here. There is a discussion on embedding Google

Building large KML file

痴心易碎 提交于 2019-12-21 05:39:08
问题 I generate KML files which may have 50,000 placemarks or more, arranged in Folders based on a domain-specific grouping. The KML file uses custom images which are packed in to a KMZ file. I'm looking to breakup the single KML file in to multiple files, partitioned based on the grouping, so rather than having 1 large document with folders, i'd have a root/index KML file with folders linking to the smaller KML files. Is this possible though? I think that a KMZ file can contain only 1 KML file,

Create kml from csv in Python

牧云@^-^@ 提交于 2019-12-20 12:47:33
问题 I am new to Python. I am working on gps files. I need to convert a CSV file having all the gps data to kml file. Below is the code in python I am using : import csv #Input the file name. fname = raw_input("Enter file name WITHOUT extension: ") data = csv.reader(open(fname + '.csv'), delimiter = ',') #Skip the 1st header row. data.next() #Open the file to be written. f = open('csv2kml.kml', 'w') #Writing the kml file. f.write("<?xml version='1.0' encoding='UTF-8'?>\n") f.write("<kml xmlns=

Create kml from csv in Python

谁说我不能喝 提交于 2019-12-20 12:46:11
问题 I am new to Python. I am working on gps files. I need to convert a CSV file having all the gps data to kml file. Below is the code in python I am using : import csv #Input the file name. fname = raw_input("Enter file name WITHOUT extension: ") data = csv.reader(open(fname + '.csv'), delimiter = ',') #Skip the 1st header row. data.next() #Open the file to be written. f = open('csv2kml.kml', 'w') #Writing the kml file. f.write("<?xml version='1.0' encoding='UTF-8'?>\n") f.write("<kml xmlns=

Does the Android API support KML files?

你离开我真会死。 提交于 2019-12-18 04:18:33
问题 Is there a way in Android to load KML files from Google Earth into a map widget? Specifically I am looking to load saved shapes created in Google Earth overtop a map widget as easily as possible. Has anybody ever tried this before? 回答1: It is an old question but this answer might be of some use if someone happens to stumble upon it. Do you mean to add the kml file onto a mapfragment inside an app programmatically? If so, you can use this method. private void loadKml(File file) { try(

Does the Android API support KML files?

偶尔善良 提交于 2019-12-18 04:18:00
问题 Is there a way in Android to load KML files from Google Earth into a map widget? Specifically I am looking to load saved shapes created in Google Earth overtop a map widget as easily as possible. Has anybody ever tried this before? 回答1: It is an old question but this answer might be of some use if someone happens to stumble upon it. Do you mean to add the kml file onto a mapfragment inside an app programmatically? If so, you can use this method. private void loadKml(File file) { try(

Nesting KMZ files

家住魔仙堡 提交于 2019-12-17 20:52:42
问题 Is it possible to create one KMZ file that is composed of several smaller KMZ files? I would prefer to not have to manually merge the actual KML entities, but I will if that's the only option. 回答1: A KMZ file can have any number of inner KML files (NOT KMZ files). But the first entry in the KMZ file must be the root KML file (typically named doc.kml ), which may include network links with references to other KML or KMZ files. Several inner KML files, for example, could reference a shared

How to find the installation directory of a third-party application, such as Google Earth, using C#?

人盡茶涼 提交于 2019-12-12 18:32:18
问题 I have the following code fragment that starts a Google Earth process using a hardcoded path: var process = new Process { StartInfo = { //TODO: Get location of google earth executable from registry FileName = @"C:\Program Files\Google\Google Earth\googleearth.exe", Arguments = "\"" + kmlPath + "\"" } }; process.Start(); I want to programmatically fetch the installation location of googleearth.exe from somewhere (most likely the registry). 回答1: Obviously if you're opening a specific file