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

learn more… | top users | synonyms

1
vote
1answer
313 views

Parse a KML for Openalyers

I am trying to get a kml from a URL to display in OpenLayers. However, it is a ground overlay so it cannot be displayed the standard way. I found this thread: Does OpenLayers supports KML Ground ...
2
votes
2answers
1k views

Exporting OpenLayers.Layer.WMS to GeoJSON / KML

I'm looking the way to exporting an especific region of a WMS layer to some XML format (GeoJSON, GML, KML) using OpenLayers and Geoserver. I've found how to export features objects with OpenLayers....
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"?>...
1
vote
0answers
339 views

Import KML or KMZ files into Qgis [duplicate]

Possible Duplicate: Can QGIS open KMZ files? Is it possible to import Google Earth generated KML or KMZ files into QGIS and then use these files as background data for a project? I intend to ...
3
votes
3answers
3k views

import kml in qgis : kml.kml is not a valid or recognized data source

When I import kml.kml (generated from ArcGIS) into Google Earth, there is no problem. However, when I try importing this file as vector layer in QGIS 1.8 on XUbuntu 12.04, I get this error : kml.kml ...
1
vote
1answer
832 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 ...
2
votes
3answers
341 views

How would you use change the projection within KML file?

I have created some KML files by converting the projection with both ARC and MapWindow. I'm looking for ways to automate exporting the data from our application with coordinates in State Plane "ESRI:...
2
votes
1answer
892 views

Problems using 2 maps with multiple layers and loadend event

I have 2 or more maps with one ore n layers on each map. Now I want zoom to extent for each map, but the getDataExtent returns only for the last layer in the last map a bounds. Can you help me? Here ...
2
votes
1answer
1k views

Problem with layer order in OpenLayers and Google styled maps

I'm using OpenLayers with Google styled maps. My biggest problem is KML polygon layer which needs to be under roads layer but it isn't (see prtscr). What am I doing wrong? This is my coding: <...
3
votes
1answer
412 views

What open-source web mapping solution I need to use for this situation?

I will try to explain what I need to do. I have about thirty KML polygons. I need to put them on some satellite map. On the top of these layers (KMLs, satellite) there must go layer with roads. I don'...
3
votes
1answer
716 views

How to show a point on mouse over a hidden polygon?

Any suggestions on how to show a point on mouse over a hidden polygon? A single kml file contains two polygons and two points as in the image, I've hidden these polygon and point by setting stylemap ...
3
votes
5answers
5k views

How do I make KML overlays appear in OpenLayers at all zoom levels?

I need to overlay KML polygons on basic map in OpenLayers. I need that KML is visible on every zoom level. I did some coding, but my KML is not showing up. What am I doing wrong? Thanks. <!DOCTYPE ...
0
votes
1answer
637 views

How to create KML file with OpenLayers?

I try to create kml file from features. My code var feature=myVecLayer.getFeatureByFid('filedata.1'); var format; function GetKMLFromFeatures(feature) { ...
1
vote
1answer
610 views

geoxml3 parseKMLString function not working?

I am unable to use Parser.parseKMLString(). Its giving me a error saying Parser.parseKMLString() is not a function. What i am trying to do is, read the KML file on the server and return the entire ...
3
votes
0answers
738 views

How Do i Secure My KML files for a rails application?

I would want to keep my KML files to be secure or password protected. I am keeping them on a public server, and i dont want them to be accessible to anyone. I am using geoxml3, so any lock applied to ...
3
votes
1answer
539 views

How to put a roads layer (OpenStreetMap) on top of KML polygons?

I need to develop a map where KMLs are overlayed with road layers. So, KMLs are polygons, and I would need to use a map tiles like OpenStreetMaps. But the problem is how to put roads on top of KML ...
2
votes
0answers
686 views

egeoxml vs geoxml

What is the difference between egeoxml and geoxml? What i know is both are client-side parsers and both allow me to edit the kml files on the run. I guess egeoxml is an initiative by google itself ...
3
votes
1answer
706 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 ...
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 ...
3
votes
1answer
425 views

ArcMap 10.1 Python split inconsistent string

I converted a kml file to a feature class. All of the fields from the kml were combined into two fields in the feature class. One of them contains information delimited by "/" and the other contains ...
5
votes
0answers
54 views

How are the edges of a polygon defined? [duplicate]

Possible Duplicate: Are long lines in shapefiles to be considered geodesics or straight lines in the 2D latlong space? In various representations, such as shapefiles and kml, polygons are ...
1
vote
0answers
1k views

How to highlight area in KML googlemaps on mouse-over event?

How to highlight area in KML googlemaps on mouse-over event? I am trying the same thing as this example How to highlight the area in google map on mouse hover I saw the example given with polylines ...
2
votes
1answer
2k views

OpenLayers Vector KML draw black when change the style

I am trying to change the style of an OpenLayers.Vector using radio buttons and redraw it, but the result is a black vector. I tried own build OpenLayers11 and 12, beside api openlayers hosted. <!...
1
vote
1answer
754 views

Exporting vector to kml with ogr2ogr without extended data

If I convert a shapefile as kml in QGIS, GRASS or ogr2ogr directly, defining the name and/or description field with the -dsco tag, all columns in the attribute table of the input layer are exported to ...
2
votes
1answer
2k views

'undefined' is not a constructor (evaluating 'new > OpenLayers.Layer.GML'

My OpenLayers map was working fine before, showing a KML overlay. Suddenly it broke. Now I see this error in my browser error console. TypeError: 'undefined' is not a constructor (evaluating 'new ...
6
votes
1answer
599 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 ...
4
votes
3answers
8k views

How to merge many individual KML layers into one?

I'd like to open a USGS KML file of bedrock geology for an entire county, but there are over 2,000 individual polygon layers. Does anyone know if there is a way to merge all of these layers together ...
6
votes
3answers
1k 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 ...
3
votes
1answer
166 views

Converting Spidertracks GPS flight tracks into shapefile or kml?

I have some data that will be comming to me from helicopter flights and was recorded with Spidertracks software. Does anyone know how to convert flight tracks from 'Spidertracks' gps flight tracks ...
3
votes
3answers
1k views

openlayers attribute substitution failing on kml file

I'm trying to read in mile markers for a marathon from a .kml file and use the MILE attribute to set the label. My layer code looks like this: // add layer mile_markers_layer = new OpenLayers.Layer....
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 ...
1
vote
1answer
817 views

How to autoclamp to ground automatically in Google Earth using a dynamic KML created from ArcGIS Server 10

It loads as an absolute everytime so terrain must be turned off to see the lines. Any idea how to get it so they default to clamped to ground? Using newest version of GE.
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, ...
0
votes
1answer
401 views

How to cluster kml features in OpenLayers

Is it possible to cluster KML features in OpenLayers, and are there any samples? I can find separate samples for clusters and KML but nothing which handles both together. Thanks
3
votes
3answers
5k views

How to display 33k placemarks with custom symbols/labels?

I want to overlay address numbers on our embedded Google Map (V3 api). Even though the KML is under 2 MB, it exceeds the 1,000 feature limit; there are over 33,000 placemarks. Fusion tables solve ...
4
votes
1answer
303 views

How to generate xml for use with geoxml3

I have a kml and shp I would like to convert to an xml to use with geoxml3. How would I go about doing such a thing? The xml I generate should look something like this: <?xml version="1.0" ...
3
votes
4answers
1k views

can't read attribute from map file (.kml) using openlayers

I want to create thematic maps using openlayer with kml map. but when i run the code, color and label thematic maps of the polygon can't show up. instead writing out undefined. what's the cause? are ...
4
votes
1answer
91 views

Different ways to publish media-enhanced route/trail information to mobile users

I'm looking for some different approaches that a non-profit I'm helping could use to publish information about some tourism routes. Each route is 1-2 tracks, with some historical background ...
2
votes
1answer
1k views

Filtering a loaded kml file in OpenLayers

I'm trying to create an interactive search engine (for finding event tickets) of which one of its features is a visual map that shows related venues using OpenLayers. I have a plethora of venues (...
7
votes
4answers
4k 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. ...
3
votes
2answers
4k views

Openlayers create, edit and save/export to kml

I'm trying to create, edit and save a point vector as kml file in an Openlayers app. I have managed the create and edit by adding and empty vector layer and then adding the control OpenLayers....
2
votes
3answers
4k views

How feasible to extract data from KML/KMZ files

We have a large bunch of KML files, they are basically global cable maps. In our company they are wide-spread and everybody uses them with Google Earth. Now there is an interest to extract ...
1
vote
0answers
586 views

Loading a KML Layer Underneath a Fusion Table Layer

I am working on a map that will incorporate both Fusion Tables and KML layers, parsed through geoXML3. As my Fusion Table Layer is a point file I would like it to always be on top of the KML's which ...
2
votes
2answers
921 views

How to parse and display KML on Bing maps under SSL

This may seem like a simple question at first, but let me explain. We have several mapping solutions, however one is strictly Bing maps (v6) based. "Use open layers" will not be a possible solution ...
1
vote
1answer
2k views

Order of KML Layers in Google Maps API V3

I'm working on a website that when finished will allow the user to turn on and off a number of different KML layers using checkboxes, the layers are parsed through geoXML3 and I want to know how to ...
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 ...
2
votes
0answers
823 views

How to draw an overlay using KML on our own app in Android?

Repost from here Hi there, I want to draw an overlay using .kml files, just look like this. But on my own app in MapActivity. 31.kml, display district in Jakarta, Indonesia or the example that I get ...
1
vote
0answers
161 views

Why can't Android phones render this KML poly?

Our outage map works well in browsers and most mobile devices. The map can be found here: Test Outage Map However, on Android phones the perimeter polygon is rendered as black. Have tried changing ...
15
votes
3answers
11k 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
323 views

Time series export from ArcGIS Desktop to KML not working in Google Earth?

I am having trouble with the KML export. My time series will not work properly in google earth, it has time start in 0001 when it should start in the year 2001. My incidents time is coded ...