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

learn more… | top users | synonyms

78
votes
20answers
75k 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?
21
votes
9answers
31k views

How to convert KML to shapefile without losing attributes using QGIS?

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 ...
7
votes
4answers
4k views

Exporting 3GB ArcGIS Raster to KML without 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
13k 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 ...
2
votes
0answers
1k views

OSGB36 to WGS84 reprojection 'error'

First off, I am a recent convert to QGIS and am greatly impressed with its ease of use and speed compared with the ESRI products with which I am more familiar - my congratulations and thanks to its ...
25
votes
6answers
25k views

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

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 ...
7
votes
5answers
2k views

From .shp to .kml to .shp Without Losing Attributes

I've converted a shapefile with attributes to a .kml for a client. The .kml and attributes were then edited within google earth. I received the updated .kml and now I need to get it back to .shp. ...
5
votes
3answers
5k views

How do you import a .SHP into Sketch-Up?

Does anyone know how to use a .SHP in Trimble Sketch-Up? I have tried exporting to KML and CAD from QGIS, but the KML file doesn't read in Sketch-Up.
2
votes
3answers
3k views

Render vectors from OSM data in POSTGIS database

I'm a newbie when it comes to mapping application. I had successfully loaded my OpenstreetMap data in a Postgresql/PostGIS database. Now my problem is how to render the vector data (the POI's, ways, ...
5
votes
2answers
7k 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?
6
votes
3answers
1k 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 ...
4
votes
1answer
1k views

Does OpenLayers supports KML Ground Overlays?

I am not able to display Ground Overlays in a KML file with OpenLayers. Does OpenLayers supports KML Ground Overlays? If not, how would I proceed in writing my own code or plugin for OpenLayers so ...
4
votes
3answers
1k views

Convert KML to shapefile without losing attribute data

So I want to convert KML files to SHP shapefiles to load it onto PostGIS. Currently I'm using ogr2ogr to do the conversion for me, but it wipes out all the attribute data. How do i preserve this ...
2
votes
0answers
159 views

Command-line utility to convert GPX into KML?

I use Cycle.travel to draw cycling routes. However, the Android application I use on my smartphone only supports KML. As an alternative to GPSVisualizer, I tried the command-line utility GPSBabel, ...
3
votes
1answer
3k views

Problems adding KML layer in OpenLayers

I'm stuggling to add a KML layer to a simple test OpenLayers map - no errors are shown, but the KML layer does not display on the map. I've tried multiple samples including the Sundials on a ...
3
votes
1answer
836 views

KML in QGis with additional Data [closed]

i´ve developed a android app that extracts the exif-information of a photo and creates a KML-file (Placemark) - some additional information like camera-type, focal length,... are stored in the tag "...
1
vote
1answer
861 views

How do I find out if a given lat lon is in a KML Linear ring using shapely?

I'm a GIS basic/novice user. I have some LinearRings in a KML file that give the areas for a bunch of different regions. And then I (will) have some lat lons that I want to test to see if they're ...
0
votes
1answer
2k views

cross domain problem with :OpenLayers.Protocol.HTTP

this code works with local kml files, but not when the kml files are on my other server, I got 3 error : OPTIONS http://192.168.0.150:9000/files/anonymous/AVGHDOP.kml 404 (Not Found) XMLHttpRequest....
0
votes
1answer
670 views

Exporting ArcMap Feature to KML while retaining Attached Photo?

I have a set of point features in an ArcGIS file geodatabase. I have attached a photo to one of the points, using the built-in tools 'enable attachments' and 'add attachment'. The photo is stored on ...
32
votes
6answers
123k 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?
25
votes
4answers
9k views

How to efficiently read a kml file into R

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
9k 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" encoding="UTF-8"?>...
15
votes
3answers
12k 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 ...
4
votes
1answer
6k views

Converting kml to shape file via ogr2ogr including all attributes

Here is the example kml file I am using: <kml xmlns="http://www.opengis.net/kml/2.2"> <Document> <name>My Golf Course Example</name> <Placemark> <name>Club ...
7
votes
1answer
4k 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
2k 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
5answers
3k 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 ...
6
votes
3answers
932 views

Using Google Earth Enterprise & ArcGIS platform together?

I have been fielded a few questions about Google Earth Enterprise (GEE) -which I don't know anything about, I'm having a time finding answers to the two following questions, which can probably be ...
6
votes
2answers
4k 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
14
votes
2answers
32k 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 ...
4
votes
4answers
13k views

How can I import georeferenced photos (jpg, kml, kmz) using QGIS or ArcGIS for Desktop?

I've got several georeferenced digital photos as jpg, kml, and kmz. How can I import them into my GIS projects (QGIS or ArcGIS for Desktop) so I can open them as a popup?
6
votes
3answers
4k views

Labels missing after conversion 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 ...
4
votes
3answers
3k views

Export georeferenced image overlay from KML?

How might one export image(s) from image overlays in a KML file to a standard geo-referenced raster format like geotiff? Use case: NASA's Earth Observatory has a time series of the changing Athabasca ...
4
votes
1answer
2k views

How to batch export layers to KML in ArcMap?

Is there a way to batch export layers to KML from ArcMap (ArcGIS Desktop) by altering the layer to KML tool to have more than one layer input?
4
votes
1answer
4k views

ogr2ogr : Converting KML to GeoJson

I have a requirement to convert .KML file to GeoJSON or JSON. Can you please recommend open source command line tools on GNU/Linux(2.6.32-358.14.1.el6.x86_64)? I have installed gdal, when I run.. ...
3
votes
2answers
5k views

KML (KMZ) generated from ArcGIS 10 open in Google Earth but fail to import into SketchUp 8

So i finally figured out how to import TIN surfaces from ArcGIS 10 into SketchUp 8. To fully replicate the functionality of the legacy ArcGIS SketchUp 6 Extension I would also like to be able to ...
3
votes
1answer
713 views

KML with Google Maps : Google violates same origin policy?

Doesn’t Google Violate the same origin policy when it tries to access the KML files from a globally accessible server? The condition for Google maps to display the KML is that it should be globally ...
3
votes
3answers
3k views

How to register onclick handler for *all* KML feaures in OpenLayers?

I'm a newbie using OpenLayers with JQuery to display vector data from KML files. I'm creating the layer like this: newlayer = new OpenLayers.Layer.Vector( layerid, { projection: MAPVAR....
3
votes
1answer
2k views

Map Grid Index / Reference for Canadian Topo Map

Does anyone know where I can find some kml at different resolutions to show the grid reference for the Canadian topographic maps (CanTopo and toporama). Much like is displayed on the map here: http://...
2
votes
1answer
561 views

How to calculate kml LatLonBox from corner coordinates?

I have corner coordinates for my image upperleft lat/lon 80.5434057263 -35.6660101669 lowerleft lat/lon 74.8586568503 -16.5889844463 upperright lat/lon 83.3580195158 16.0865335458 lowerright lat/...
1
vote
2answers
2k views

OGR DXF to KML conversion

I'm trying to convert a DXF 2010 file to KML using ogr2ogr: ogr2ogr -f "KML" outfile.kml infile.dxf In the file, $INSUNITS is 6, that's meters, if I'm correct? The problem is that DXF is not ...
1
vote
2answers
641 views

Handling KML/CSV with geopandas - DriverError: unsupported driver: u'CSV'

I'm trying to import a dataset of UK postcode districts UK postcode districts from Google Fusion tables into geopandas with the aim of splicing it to a dataset of house prices. The problem is that ...
1
vote
1answer
769 views

how to get the boundaries of a city in KML from google maps

im trying to write a google maps application. and i wanted to only highlight one city in the world ( im using the masking method explained: https://github.com/vasile/geomask) but now im bugged with ...
1
vote
3answers
6k views

How to project Google Earth KML files in ArcGIS so that they display properly?

I am sure my question has been answered in the past but I would really appreciate it if someone could help me with this... I have downloaded a KML point file from Google earth and I imported it into ...
5
votes
1answer
1k views

How do you format an OGR VRT file to best convert a CSV to KML?

I am attempting to get a nice KML for simple review of POI/geocoding from a CSV. I a using ogr2ogr and a vrt. You can see the vet file below, with two attempts to get this right. Basically, the issue ...
5
votes
2answers
3k 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
1answer
4k views

Is there a way to export QGIS layers to KML?

has had anyone had any luck with the new experimental plugin qgis2kml? I keep getting the error msg layer : format not yet supported I had a look but the author has not provided any documentation, ...
4
votes
2answers
330 views

how to create translucent objects in KML?

I've been able to create a KML file that shows a circle on my (Google Earth) map. Now I would like to have a translucent fill on the circle. I'm new to KML, so I'm learning by trial-and-error with ...
4
votes
2answers
260 views

Exporting to KML from ArcGIS for Desktop?

I'm attempting to export a series of points that cover the continental U.S. as well as some of it's territories to KML. When I export to KML and open it in Google Earth, the data loads in, what seems ...
4
votes
4answers
184 views

Google Earth Polygon surface area to follow the curvature of the earth model

Question: When drawing a polygon in Google Earth with latitude, longitude and elevation values at each node, how do you ensure that the surface area of the polygon also represents the desired ...