KML is an XML file format used to display and annotate geographic data, made popular by Google Earth.

learn more… | top users | synonyms

60
votes
19answers
47k views

How to convert between KML and Esri's shapefile (SHP) format?

My users are sending me point data that were digitized using GoogleEarth. How can I convert their KML to a shapefile?
22
votes
5answers
69k views

Display a local file in Google Maps

How can I get a KML/KMZ file to display on Google Maps without a public facing web server?
19
votes
6answers
11k views

What's next if our KML is too big/complex for the Google Maps API?

Our web app includes simple mapping capabilities (currently just markers and KML overlays on an embedded Google Map). This works pretty well; the only real limitation we face is KML overlays that go ...
14
votes
2answers
2k views

Is it possible to gray out a Google Maps map except for some area?

What i am looking for is a way to emphasize a certain area on a Google Maps map by graying out the rest of the world. I heard about some solution of using 2 polygons of which 1 is visible and the ...
13
votes
9answers
15k views

How to convert KML to shapefile without losing attributes?

I'm new to QGIS and all geoinformation itself but have to work on some difficult stuff. I have a KML file with hundreds of points. To each point there is information, such as Name, Power, Age (it's a ...
12
votes
2answers
6k views

ogr2ogr converting to shapefile - how to select feature types?

Shapefiles can only have one geometry type, but many other formats (kml, geojson) can have multiple types. When converting to shapefiles, is it possible to to tell ogr2ogr to create multiple ...
11
votes
4answers
2k views

shp2kml license expired, looking for free solution

So I work for a small African non-profit. I do all the GIS and data work. Most of the layers I create, I convert to kml layers so my boss can then use them quickly and easily in Google Earth. But now ...
11
votes
3answers
24k views

How do I import/export KML to ArcGIS Desktop?

I have come across several scripts and tools to import and export KML into ArcGIS Desktop. Is there a one tool that: Imports/Exports KML into ArcGIS Desktop at v10 Does not cost money ...
11
votes
2answers
3k views

How to efficiently read a kml file into R

Hi I'm working with huge .kml files (up to 10 Gb) and need an efficient way to read them into R. Until now I've been converting them to shapefiles via QGIS and then back into R with readShapePoly and ...
11
votes
1answer
569 views

How to create a KML that supports animated ground overlays?

I have 12 images that represent weather conditions at day 1 through day 12. I am using gdal2tiles to produce map tiles from each of these images. gdal2tiles also produces a KML file that can be used ...
9
votes
4answers
13k views

Can I convert a kmz file to kml?

I have a kmz file. Is there an easy way to convert it to KML? Can I just "unzip"?
9
votes
5answers
2k views

GML, KML, GeoJSON - Speed rendering 3109 polygons?

I am working with Geoserver, serving U.S. Lower 48 counties to openlayers (3109 polygons - lots more vertices). The counties are loaded into a postgis database. I am curious about developer ...
9
votes
4answers
326 views

Google Maps and Search for KML URL

Can anyone tell me how I could add the functionality as seen on google maps that allow users to specify a URL to a KML file in the search bar? I would like to include this in my own embedded map but ...
9
votes
2answers
975 views

Why does one part of GML -> KML conversion not work on Google Maps?

Brand new to all of this, not even sure this is the right forum to ask in... I have a client who wants to visualise cancer incidence and mortality rates by local/unitary authority across Great ...
8
votes
4answers
5k views

Does Bing Maps 7 support KML?

I'm having no luck finding examples. I've found code like that below but this is for earlier versions. shapeLayer = new VEShapeLayer(); shapeSpec = new ...
8
votes
1answer
2k views

How do I create an animation in google earth using png overlays with kml timestamps?

I have the following kml files, each with a different timestamp and png: <?xml version="1.0" encoding="UTF-8"?> <kml xmlns="http://www.opengis.net/kml/2.2" ...
7
votes
4answers
6k views

Plotting KML files onto a Google Map

I would like to show a map on my website. I have 2 different kinds of KML files that need to be plotted. One defines region boundaries. The other points within those boundaries. The region boundaries ...
7
votes
3answers
782 views

where do I download POIs from Wikipedia? placeopedia used to have them but is now gone

I am trying to improve OpenStreetMap in Siem Reap, Cambodia. A way I am doing this is to add temple locations. I hear that there is a dataset of temple locations available from Wikipedia (presumably ...
7
votes
5answers
3k views

Is there a way to view KML natively in ArcMap?

Answering this question: How do I import/export KML to ArcGIS Desktop? raised another one. There are loads of tools to import/export kml/kmz. Are there tools available for native viewing of KML in ...
7
votes
3answers
9k views

converting kml into a vector graphic… and back

Is there a simple means to convert, say, an svg or other vector image format file to KML and vise versa? There are incredibly powerful vector editing tools which attempt to replicate the way reality ...
7
votes
2answers
1k views

Converting KML files for use with Python library Shapely

I am trying to get a KML-file (wijken.kml) into Shapely. The KML-file is validated against the proper XML schema, so I guess the input is correct. Routes I have tried: 1) Converting to WKT or WKB ...
7
votes
4answers
2k views

Presenting geospatial data in Powerpoint

I am looking for a more elegant way to display geospatial data in Powerpoint. KMLs seem to be becoming the norm for quickly showing interactive geospatial data to colleagues and the general public. ...
7
votes
1answer
2k views

Output polygon data from postGIS and read it on Google Maps API

So, I have a group of polygons stored in PostGIS. I'm trying to build a web application with Google Base maps (using Google Maps API). Now, How do i output the polygons in the right format so that ...
7
votes
3answers
4k views

Is it possible to export dynamic labels from ArcMap to KMZ? (Or alternate approach)

I am preparing increasingly more maps and layers for export to KML/KMZ as it seems to be the most convenient way to quickly analyze spatial data by my superiors. In order to export labels I seem to ...
6
votes
3answers
739 views

Advantages of WFS over GeoJSON/KML?

I'm planning to create an online map with openlayers (2 or 3) or leaflet. I have to show some points/markers (~30.000), polygons (~500) and lines on top of an OSM map in several layers. Those points ...
6
votes
3answers
1k views

.NET library to convert KML to WKT?

Anyone know of a free OpenSource .NET library i could use to convert KML to WKT? I know i can use openlayers and there are many JavaScript possibilities, but i need to do this on the back-end.
6
votes
2answers
3k views

Generate a kml file from Google results

Is it possible to generate a kml file of searched items in Google Maps. For example: Search for highschools in Virginia Return the results as a kml file with the schoolname address and location
6
votes
1answer
4k views

How to import KML file, with custom data, to Postgres/PostGIS database?

By custom, I don't mean a different structure of KML file, but in <description></description> section, I have data with HTML tags of this kind: <?xml version="1.0" ...
6
votes
2answers
2k views

Why can't I edit KML/GML layers?

Newbie here confused by my first experience in QGIS I have a handful of lines defining a bike route. Originally they were saved in a .gml file and later translated into .kml so they could be viewed ...
6
votes
3answers
771 views

Google Earth Enterprise & ArcGIS - How do you use them together?

I have been fielded a few questions about Google Earth Enterprise--which I don't know anything about, I'm having a time finding answers to the two following questions, which can probably be summed up ...
6
votes
3answers
2k views

Connecting markers by following the roads in Google Maps

I have many markers in a kml file. All the markers are on the roads. I wonder if there is a way to process the data and connect the markers by following the road? Of course, the markers should not be ...
6
votes
1answer
214 views

GIS storage format for better performance - Android device

We have developed an android application which loads different eco-zones and does geo-fencing based on current GPS location. We have converted a shapefile to KML, then to JSON format, for loading in ...
6
votes
1answer
283 views

regionating vector data for use in Google Earth

Does anybody know of free/open source tools to regionate vector (kml) data, like the regionate tool in Google Earth Pro (see http://support.google.com/earth/bin/answer.py?hl=en&answer=175007)? I ...
6
votes
3answers
818 views

How to convert factfinder2.census.gov map data to KML?

I've downloaded a map from http://factfinder2.census.gov/faces/tableservices/jsf/pages/productview.xhtml?pid=DEC_10_SF1_P1 (limited to San Francisco census tracts), and I'd like to convert it to KML ...
6
votes
0answers
148 views

KML (KMZ) to layer including all attributes [duplicate]

Possible Duplicate: How to convert KML to shapefile without losing attributes? This question is here in many variations but though I went through it I still don't have any good solution how ...
5
votes
4answers
7k views

How do I export from Wikimapia to KML

I'm not a API person but a GIS user and I would like to export points from a category from Wikimapia to KML or any other useful GIS formats. Has anyone developed that? It could be interesting to add ...
5
votes
4answers
928 views

draw shp files or kml files on ipad?

I need to be able to draw a polygon in the field while the landowner is there to approve it. Is there an app that is easy to use so all of the field hands can operate it? I also need to be able to ...
5
votes
3answers
2k views

“File not found at…” error when loading KML into Google Maps

I have a KML file on a public URL like http://host.com/dir/file.kml If I put that KML file on another server, and put the new URL in the search box on Google Maps, it loads the KML into google maps. ...
5
votes
2answers
4k views

How to parse KML data using geotools?

Geotools contains some packages dealing with KML: org.geotools.kml and org.geotools.kml.bindings. I assume it was designed to parse KML data. Do you know how to use it?
5
votes
2answers
2k views

ogr2ogr kml to shp conversion created 184 shapefiles?! What am I missing?

I'm trying to convert this KML dataset of ice arenas to a shapefile using ogr2ogr (GDAL 1.8). After some initial troubleshooting to get the script running, it's creating 184 different shapefiles (736 ...
5
votes
3answers
3k views

Labels aren't showing up when I convert from .mxd to .kml

I've been trying to convert a map from .mxd to .kml for google earth. The map has municipalities labeled as well as train stations. When I save it and open it in Google Earth, only the train station ...
5
votes
2answers
1k views

How do I export a 3GB ArcGIS Raster to KML w/o losing resolution?

I have a 3GB raster layer, and I'd like to export it to KML for use with Google Earth. When I use the "Layer to KML" conversion tool in ArcMap, I end up with a low-resolution overlay: looks like one ...
5
votes
4answers
1k views

Create a ground overlay kml from georeferenced raster

I have a world georeferenced raster (5m resolution, ~4000 x 4000 pixels) that I would like to display in google earth. I am looking for a simple and effective way to generate this kml file. Using ...
5
votes
1answer
733 views

How to create a balloon for a dynamic KML file?

I want to create a balloon for a KML file that dynamically moves. The example that I am working on is sundials.html. Let's say that the KML is moving. How we would get the balloon to move as well? ...
5
votes
4answers
4k views

Google maps kml and polygon eventclick error

I have a google map polygon kml file that I am loading on a google map. When I click on the polygon, I draw a line from that polygon to places on the map. To do this I am using the code: //Add KML ...
5
votes
1answer
1k views

How to get labels to diplay in Google Earth after saving to KML?

When saving a QGIS layer as kml, is it possible to have labels be displayed when opened in Google Earth?
5
votes
2answers
894 views

Loading data onto PostGIS using KML files with attibute data

So, I have a kml file which contains 317 data points (317 polygons and the respective 317 names). The kml file also contains attribute data which pops up in a bubble on Google earth with about 12 ...
5
votes
3answers
818 views

Plot a EPSG:4326 KML File using Google Maps V3

I have a KML file that uses EPSG:4326. Is there any way to plot this onto a Google Map (v3) which uses Mercator? Here is the page I am working on The district data comes from one source and is ...
5
votes
5answers
5k views

How to Embed KML files (Google Earth) into a website without the google gadget?

I am trying to embed a KML file onto our webpage and the way it was previously done, using the KML embedding tool from Google no longer works, it seems that google has taken the gadget down or ...
5
votes
3answers
3k views

What restrictions on KML/KMZ upload exist in Google Maps API v3?

I am currently using the google maps api v3 to load kml files into my web application. The file I am having trouble with is a KML which is 274 KB big. It will not load (uncompressed the file is ...