Questions tagged [kml]

Keyhole Markup Language (KML) is an XML standard used for expressing geographic annotation and visualisations. The KML file format is used to display and annotate geographic data in Google Earth and other applications.

Overview

KML (Keyhole Markup Language) is an based language for expressing geographic annotation and visualization on web-based online and mobile maps (2d) and earth browsers (3d). It originated as the save format for , but is now an Open Geospatial Consortium (OGC) standard.

In practice most data in kml form is actually stored in a kmz file, which is simply kml data compressed in the format.

Other References

Tag Usage

Consider whether the question would be more suitable on Stack Overflow SE or GIS SE.

2655 questions
13
votes
3 answers

Generated KML file from SQL query save to local drive

My SQL Query generates a XML output: select 'TEST.kml' as name, (select 'TEST' as name, ( select ( select top 10 issue as name, null as description, …
user1046415
  • 779
  • 4
  • 23
  • 43
13
votes
2 answers

How to draw a route between two markers in Google Maps API?

I have a requirement where, onclick, I have to draw a route in between two markers when I select. I have successfully uploaded a KML file on Google MAPS API, so the markers are clearly visible on Google MAPS API. When I select a two markers onclick,…
sTg
  • 4,313
  • 16
  • 68
  • 115
12
votes
5 answers

Importing CSV File to Google Maps

I have an quite big CSv File I want to have in Google Maps or just on a map. These are just coordinates but I have 600.000 of them.. Do you have any Idea how I can do this? I've added an screenshot from XTabulator below:
woodleader
  • 923
  • 1
  • 5
  • 14
12
votes
2 answers

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

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.
evilhomer
  • 8,946
  • 4
  • 24
  • 21
12
votes
2 answers

How do you create a polygon shape in a KML that is positioned in the air?

I need to be able to place a polygon object with a given height into a KML that will be located above the ground. I'm looking to display airspace information into a KML and each airspace has a low altitude and and high altitude value. The closest…
James Larkin
  • 123
  • 1
  • 1
  • 4
12
votes
7 answers

Read and parse KML in java

Is there any library available to parse KML ?
Evgeny Shepelyuk
  • 129
  • 1
  • 1
  • 4
11
votes
2 answers

Extra when using builder to generate XML

I'm trying to generate KML using Builder. I know their are some options out there to help with this but I will be doing some 2.2 specific things that aren't supported by the KML gems I've looked at and would generally like to be able to accomplish…
Nick
  • 8,483
  • 10
  • 46
  • 65
11
votes
4 answers

Displaying KML Layers on Maps at Native Android apps Best Practice

I have big KML file to a native Android application, please check the following details and give an advice. KML file details: size: 1.7 MB total number of kml file elements: 500 elements total number of polygon: 1000 polygon Android app…
Wael Abo-Aishah
  • 942
  • 2
  • 10
  • 27
11
votes
5 answers

What is the difference between gson and json?

I see word 'gson' at various places in books related to android , blogs etc. Is it similar to kml in any way or it is different .
Rishabh Maurya
  • 1,448
  • 3
  • 22
  • 40
11
votes
5 answers

How to simplify (reduce number of points) in KML?

I have a similar problem to this post. I need to display up to 1000 polygons on an embedded Google map. The polygons are in a SQL database, and I can render each one as a single KML file on the fly using a custom HttpHandler (in ASP.NET), like this…
Herb Caudill
  • 50,043
  • 39
  • 124
  • 173
11
votes
1 answer

Displaying Names on the Map using KML

I am able to display polygons, circles, etc etc, using KML. Now i want to display only some Names using KML. Is this Possible ?
Pravin Kumar
  • 693
  • 1
  • 9
  • 35
11
votes
5 answers

Reading in XML/KML files using C#

I'm trying to import the kml xml Google earth file into an application, but i can't seem to get the xDocument syntax right in order to do what i want, i'm wondering if anyone could suggest a way to read in the kml xml file. I understand the basics…
norbert
  • 335
  • 1
  • 7
  • 19
10
votes
6 answers

Create kml from csv in Python

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…
Darkpain
  • 135
  • 1
  • 3
  • 10
10
votes
1 answer

Inspect and Parse KML with pyKML

similar to this: Extract Coordinates from KML BatchGeo File with Python But I want to know how to inspect the data object, as well as how to iterate it, and parse all the Placemark to get the coordinates. The below is the how the KML looks like, and…
resting
  • 16,287
  • 16
  • 59
  • 90
10
votes
1 answer

Using pyKML to parse KML Document

I'm using the pyKML module for extracting coordinates from a given KML file. My Python code is as follows: from pykml import parser fileobject = parser.fromstring(open('MapSource.kml', 'r').read()) root =…
Newtt
  • 6,050
  • 13
  • 68
  • 106