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

learn more… | top users | synonyms

4
votes
1answer
793 views

How to create a 500m Regular Grid for KML input area?

I am hoping to create a point grid over the city of Edmonton. My workflow is: Import a KML of Edmonton neighborhoods from here Save the layer as a SHP Delete the layer and load the SHP Define the ...
1
vote
0answers
127 views

Google earth incorrectly rendering coordinates?

My circles are rendering funky on the poles, and along the equator. Here are my coordinates: 158.05553767833,-78.151355482613 152.68654993135,-76.924955252783 147.72303124605,-75.713526831152 ...
1
vote
0answers
205 views

Given two lat/long/time points I need to extrapolate an entire path along the earth

Given two points and the times between them, I'd like to draw a line around the earth. Everything I've tried led to some crazy lines, due to my inexperience with longitudinal movements. Here is the ...
5
votes
1answer
2k views

Importing KML in QGIS - what are all the node elements that QGIS looks for other than Name and Description?

Of all elements given at (ref: http://service.kmlvalidator.com/ets/ogc-kml/2.2/) only Name and Description seem to be recognized on importing KML using QGIS 1.8.0-Lisboa. I would like to know if this ...
3
votes
2answers
767 views

OpenLayers 2.12 + KML from String + Change markers'icons

Reading this post How to add KML data but from variable - not from url? I changed the way of reading KML files (from HTTP to a string loaded using jQuery) /** * The OpenLayers object * @type ...
1
vote
0answers
102 views

I've converted a kml to shp and want to import it to pgsql database, but no geometry column [closed]

As the title explains, I have a shapefile whose attribute table has no geometry column specifying the location of points. Rendered in QGIS, it looks fine, so the geometry data is obviously there. ...
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 ...
2
votes
2answers
4k views

How do I overlay a KML on leaflet 0.4.4

I am using Leaflet 0.4.4, I have a KML I would like to overlay on the map, how do I go about doing this? Edit: I am already aware of https://github.com/CloudMade/Leaflet/issues/14, which directs ...
2
votes
2answers
731 views

Openlayers - how can I parse a KML file

I have found some info on here regarding opening a KML file (with groundoverlay) from a url in Openlayers. In order to open a KML with groundoverlay, it must first be parsed. However, after I GET, I ...
1
vote
1answer
262 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
672 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 ...
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" ...
1
vote
0answers
315 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 ...
3
votes
3answers
1k 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
484 views

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

I'm a GIS n00b. 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 in any of the ...
2
votes
3answers
232 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 ...
2
votes
1answer
505 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
976 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
340 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 ...
3
votes
1answer
503 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
3k 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
514 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
422 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
476 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
378 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
503 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 ...
2
votes
1answer
487 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 ...
1
vote
0answers
608 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
319 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
53 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
671 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
1k 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
519 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
1k 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
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 ...
3
votes
2answers
4k 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 ...
7
votes
3answers
779 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
139 views

Spidertracks to GIS

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 ...
3
votes
1answer
2k 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
318 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
2k 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
271 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
3k 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
228 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" ...
1
vote
0answers
188 views

QGIS kml file converted from shp do not work properly

QGIS 1.8 installed with OSgeo4W Windows 7 shp - right click - save as - kml - WGS84 the resulting kml instead of a polygon in Italy is a bunch of segments spread over the south pole I suppose the ...
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
82 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
745 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
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. ...