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
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 ...
9
votes
1answer
326 views

Importing KML and style information into Geoserver

So I'm working on a project that's been in development for over a year, but I only recently got involved. My task involves converting roughly 2,500 KML files into another format, importing these files ...
4
votes
3answers
7k 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 ...
2
votes
0answers
17 views

Create network graph from contiguous polygons in KML, or PostGIS?

I am using Postgres 9.5 and PostGIS. I have a table with a geometry field. This table has about 200 rows, in each of which the geometry field contains a Polygon. I would now like to derive an ...
1
vote
1answer
2k views

Creating MySQL database for storing imported KML?

I need to create a MySQL database for storing coordinates from a KML file with the structure as follows: <Placemark> <name>someplace</name> ...
0
votes
0answers
8 views

Calculating kml LatLonBox from corner coordinates?

I am asking a similar question to How to calculate kml LatLonBox from corner coordinates? because the answer there is referencing using gx:LatLonQuad instead of LatLonQuad is NOT sufficient for me. I ...
3
votes
1answer
19 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 ...
0
votes
1answer
164 views

Matlab array to KML

I am trying to use the KML toolbox for Matlab in http://www.mathworks.com/matlabcentral/fileexchange/34694-kml-toolbox-v2-7 to create a KML file from a Matlab array to be shown in Google Earth. ...
2
votes
0answers
29 views
+50

Update GeoDjango models from KML?

I'm working in Django 1.9 and Postgres 9.4 with PostGIS extensions. I have a KML file, and I want to use it to update my geo fields. This is my model: class PCT(models.Model): code = ...
10
votes
2answers
1k 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 ...
21
votes
4answers
7k 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 ...
2
votes
1answer
35 views

Z values in kml

My goal is to create a KML line and/or polygon where the z-values of the vertices equal the z-values from point data (where the csv has a Z field). So far, I have created a spreadsheet which, given a ...
0
votes
0answers
18 views

In a kml text editor, refer to external file?

I'm wondering, in a kml text editor where a all the coordinates are listed that make up a shape, can you refer to an external file instead of hard coding the list of coordinates? I understand that it ...
0
votes
2answers
234 views

Converting GEDCOM to KML?

Does anyone know of a way to convert GEDCOM files to KML? I am building a family tree and I would like to be able to upload the infromation I have gathered to Google Earth. I already tried to use ...
0
votes
0answers
14 views

osx terminal ogr2ogr batch covert .json to .kml

using osx El Capitan terminal This works fine one file at a time to convert .json to .kml ogr2ogr -f "KML" xxx.kml xxx.json I would like to do all files at once I have tried for %f in (*.json) do ...
0
votes
0answers
15 views

How to add image to Globe using ArcObjects

I'm using ArcObjects 10.3 .NET. I need to programmatically add .jpg image to Globe. Image is not georeferenced, but I have four points for bounding polygon (not rectangle). What I need to do is ...
2
votes
4answers
569 views

protecting kml access to google only

I have a large amount of data (thousands of polygons) that I want to share with people through my site. I want them to be able to view the polygons, and due to the large amount of data, I am not ...
1
vote
2answers
65 views

Import file format with colors

I am very new to QGIS, so please excuse me if my question seems stupid to you. I have a small question regarding setting manually colors for points and lines. I have a bunch of nodes and vertices to ...
0
votes
0answers
4 views

Directly fetching the line string with micromata kml parser

I am trying the kml parser for the first time. I have to find the first and last set of coordinates from a kml . Is there any way to directly fetch the line string coordinates from the document ...
1
vote
0answers
16 views

Can GML contain symbology?

I know that KML can contain symbology in it. I understand that GML is the open version of it. Can GML contain symbology too?
3
votes
1answer
322 views

Google earth balloon not fully visible

When i load my KML on google earth, the balloon appears whole but when I embed on a webpage using the embedKML tool, the data in the balloon (In this case a table) appears to be cut. The close button ...
2
votes
1answer
440 views

Get feature from two overlapping KML layers doesn't work

I did an implementation similar to http://openlayers.org/dev/examples/sundials.html The difference is that I have two or more kml layers at the same location and want to show their information ...
1
vote
1answer
186 views

Extruding a 3D stack of polygons on top of a map, e.g. with KML

I have data for the composition of rock layers in several polygons on earth. I would like to plot a stacked chart of the rock layers, colored based on layer metadata. Here's a mockup, where rock ...
2
votes
1answer
333 views

OpenLayers3: How to show a KML layer with the export to png Button

so... I have this script: <script> //Script1: Script de criação do mapa. var map = new ol.Map({ layers: [ new ol.layer.Tile({ ...
2
votes
1answer
37 views

Not all KML attributes import into attribute table

I have a .KML file that has placemarks that have four main pieces of data that I want to use in QGIS. When I do 'Add Vector Layer' and select my KML file it imports all the placemarks as feature ...
3
votes
1answer
3k 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.. ...
2
votes
2answers
24 views

Why is KML always selected as a standard service when publishing a ArcGIS Map Service?

On publishing an ArcGIS 10.x Map Service, the capabilities list always has KML selected, and I always have to deselect it. Why is this always selected, and can I configure ArcGIS Server to keep it ...
2
votes
2answers
49 views

Split Vector Points/Polygons by Vector Grid and assign to relevant grid

I have 3 vector shapefiles (1: Point, 2: polygon, 3: vector grid) that I would like to combine so that the points and polygons are 'assigned' to the relevant grid cell within which they are contained, ...
0
votes
1answer
235 views

Problem with adding placemark from kml file with specific id

I have a problem with adding a vector layer from kml file. I am trying to make XMLHttpRequest and add only a placemark with specific id. Nothing is displaying on the map. Request is successful and ...
6
votes
1answer
1k views

How to split kml file or extract Placemarks?

I have a file of state 2001 assembly districts outlines, from http://goo.gl/dJPyx in Mapinfo MIF format. I've created a kml file from that using ogr2ogr. These are the outlines of each assembly ...
1
vote
1answer
207 views

Shapefile to KML Conversion Problems in QGIS 2.6.1 on Mac

I am currently using QGIS 2.6.1 on a Mac with OS 10.9.5. I am trying to export a shapefile using QGIS to KML format. I am having success with the export but the data is skewed halfway across the ...
6
votes
1answer
73 views

Establishing Default Query layer for Google Earth in “Map to KML” export from ArcMap?

I export a lot of maps for customers who request them from our office. Recently I have seen more and more requests for us to export our GIS into the .KML or .KMZ file type so they can be viewed on ...
0
votes
1answer
22 views

Converting KML to feature class using ModelBuilder?

I am experiencing issues tyring to convert a KML to a layer file to use within ModelBuilder. The KML contains a set of polygon data and a set of polyline data, the polygon data is the data I wish to ...
1
vote
1answer
188 views

Can QGIS Sextante batch extract vertices from KML polygons and calculate coordinates?

I want to know how to extract the vertices of any KML polygon and also calculate the co-ordinates of such vertices in Degree Decimal format. I am looking at a batch process. Can we use QGIS Sextante ...
0
votes
1answer
69 views

longitudes look flipped when displaying geoserver kml on google maps

Any ideas on how to get my raster overlay lined up properly on google maps? The geoserver layer is re-projected from EPSG:4269 to 3857 before serving it to google maps. To me it looks as if the ...
1
vote
2answers
307 views

invalid KML representation on ST_GeomFromKML

I exported a table with a geography(MultiPolygon,4326) column using ogr2ogr to a KML file. When trying to re-import any of the shapes using the ST_GeomFromKML function I get the following error: ...
1
vote
1answer
573 views

KML file seems to load in Openlayers without error but doesn't show vectors

I'm trying to load a KML file into an Openlayers map. It seems to successfully run but I am not seeing anything show up on the map. Vectors should show up in an area of New Mexico if it's working ...
1
vote
1answer
17 views

Creation of buffer area of 20mtrs upon click event on the base layer

I have a base layer upon which i wish to import a kml with certain lat lons and create a buffer region of 20mtrs around any point upon click event. i got google api for the same but want openlayers ...
0
votes
0answers
39 views

Basic display of kml file with map background on website, no gmapi

I have a series of kml files I want to display on my local and public websites. I use Google maps for other actions like displaying and entering locations, and it works fine, as long as I'm connected ...
1
vote
1answer
209 views

What KML features are suitable to display 3D atmospheric density data using Google Earth?

I wish to use Google Earth to visualise and explore 3D atmospheric density data. In my case it is ionospheric electron density, which is a niche area, but I can imagine this might have been done by ...
0
votes
1answer
229 views

multiple shapefile export to kml

I 'm new in Python script and i want to export shapefiles in the folder as the kml file with define layer files. for single shapefile it work perfectly refer below script. But I want to export 4 ...
2
votes
1answer
532 views

Openlayers 2.12 - add selectFeature to button results in “Geometry Undefined”

I have modified the Openlayers mobile Vienna WMS example, and am trying to change the labelButton to allow selecting of features to open a popup. I think it is necessary to do this as on a touch ...
0
votes
1answer
246 views

ogr2ogr from MIF to KML including MID generating split kmls

I have a set of MIF and MID files that I would like to translate to KML. I used ogr2ogr to transform the MIF into one big KML which worked ok like so: ogr2ogr -f "KML" geo-kml geo-mif I have two ...
1
vote
1answer
668 views

Setting a scale range for labels in KML files

Is there a way for labels to be displayed in KML only when zoomed in (or out) beyond a certain scale range, just as it is possible in ArcGIS? If exporting to KML from ArcGIS, I guess the first step is ...
2
votes
0answers
44 views

How to scale, rotate and translate a KMZ file in Google Earth

I'm a GIS software developer. I would like to adjust manually a KMZ over Google Earth images scaling, shifting and rotating it. What I'm wondering is a tool like the one in Google Earth to add a ...
1
vote
1answer
277 views

I converted a KML file into a PostGIS db using ogr2ogr. How do I publish all the tables as seperate layers?

As the title says I converted/imported a KML file into my PostGIS database using the ogr2ogr command. Now I am trying to publish each table as a seperate layer onto a GeoServer. I know about cURL, but ...
3
votes
2answers
2k views

Any way to view/create/edit Google My Maps KML files on Android?

I have two large (several hundred features) maps created by Google My Maps that I use for my field research. They contain important information required by the field crew for their work on site. ...
1
vote
1answer
75 views

Synchronizing KML file in Google Earth with ArcMap?

I have a KML file in Google Earth that I keep updated. Usually every update I save this KML file then I import it to ArcMap. Is there any way to sync this KML file with ArcMap? I saw this Link but ...
0
votes
1answer
189 views

Load KML doesn't always show icons in OpenLayers 3?

I've been able to successfully load a KML file and overlay the data on a map. However if I move the files to a new server (and update all references to the new server) none of my kml file data gets ...
4
votes
1answer
219 views

Adding commas to number values in arc2earth generated KML balloons?

I'm using Info Window Builder in Arc2Earth to generate some kml for a large dataset. I'm having some trouble formatting numeric values (pulled from the attribute table) to include commas (group ...