Stack Exchange Network

Stack Exchange network consists of 175 Q&A communities including Stack Overflow, the largest, most trusted online community for developers to learn, share their knowledge, and build their careers.

Visit Stack Exchange

Questions tagged [kml]

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

1
vote
0answers
30 views

Transfer markers from MyMaps to QGIS?

I need to georeference a list of places. Unfortunately, my original file doesn’t contain addresses, it is made up of a list of famous locations, such as the St Mark Basilica, Miramare Castle, ...
1
vote
2answers
31 views

Reduce complexity of KML file

I have a 6mb KML file I am using with the Leaflet API/Ominvore plugin. It is just a centerline of a long distance trail. What would be the best way to make it smaller? Reduce complexity etc.
1
vote
1answer
44 views

OpenLayers: How can I add multiple KML files to the same vector layer?

I'm trying to add some KML files to a vector layer using this code: var map = new OpenLayers.Map('map'); map.addLayer(new OpenLayers.Layer.OSM()); var kml = ['...
0
votes
0answers
28 views

Importing KML file into Google Earth Pro says Junk after document element?

I'm very new to using GIS platforms. I've sourced some spatial data for a archaeological project from the 'Portable Antiquities Scheme' website. There was a KML file available to download. I'm not ...
0
votes
1answer
17 views

KML polygon rainbow filled colors is showing only as simple color?

I draw filled color contour in Surfer application I imported this file to Google Earth as .kml file There is no problem so far I tried to import the same file to QGIS 2.18.28 But the colors is not ...
0
votes
1answer
40 views

How to fix a KML import file within QGIS

I have a KML style file provided of burnt areas from significant wildfires. As the fires continue, seven of the polygons out of about 30 appear to be corrupted with duplicate nodes and overlapping ...
0
votes
0answers
47 views

Get Google Maps driving directions between points in a KML file?

I'm trying to improve a workflow that currently involves manually composing a multi-destination driving route in Google Maps. I have the ability to export a KML file containing the points we want via ...
-2
votes
0answers
39 views

Seeking fastest algorithm to calculate XY centroid of KML LineStrings and Polygons?

I am writing a PHP program that needs to create labels for LineStrings and Polygons in a KML file. Since for whatever reason KML does not support labels for LineStrings and Polygons, I would like to ...
1
vote
2answers
134 views

GeoJSON to KML conversion

Is it possible to convert GeoJSON to KML format using geotools. I am trying to figure out this using Java but I can get results only using node js.
2
votes
1answer
27 views

QGIS/QDAL: Accessing OGR_STYLE across all layers in a KML file

I get a regularly updated KML file which I need to pull into QGIS. It has different folders/layers (about 12), and features in each folder/layer have different <styleURL>s. I need to access ...
0
votes
0answers
29 views

How to add my photo in KML with Android?

I have tried with overlay and Placemark, I store my photo and KML together in one KMZ but when I open with Google Earth, I only can see the text in the location, not the photo. Here is my code: [?...
0
votes
2answers
41 views

Opening KML file from ArcGIS server with GDAL?

I am able to open the google KML sample by running: ds = gdal.OpenEx( fn, 0 ) But when using a specific file that I get from my country's database, it doesn't work. I've solved the problem by ...
0
votes
0answers
46 views

Transfer Markers from MyMaps to QGIS

I've georeferenced a list of adresses on Google My Maps, I'd like to transfer them to QGIS so I can create a better map with them. When I export a KML or KMZ file from My Maps and open it on QGIS, I ...
1
vote
0answers
26 views

ArcGIS freezes when opening most toolboxes

I'm using ArcGIS 10.6.1 on Windows 10. I work from home using a VPN to connect to my university's network. It's been nearly impossible to open any dialog boxes. For instance, I frequently use the ...
2
votes
2answers
40 views

Batch converting KMLs to shapefiles in PyQGIS?

I have a folder full of KML files and I want to create a .shp, .shx, .prj and .dbf files from these KMLs. How can I accomplish this? Below is the code that I am working on: enter code here import ...
0
votes
2answers
50 views

OpenLayers - order of layering from a KML file

I have a set of KML files hosted on a webserver, which two applications use; one uses OpenLayers and one uses Google Maps. The problem is the order they render the KML. Google Maps (and Google Earth) ...
0
votes
0answers
15 views

Conversion to KML won't convert whole layer

I'm trying to convert a vector layer to a KML file. Here's what the layer looks like in ArcMap-- as you can see, it has multiple polygons: Here's my code: import arcpy arcpy.env.workspace = r'C:\\...
0
votes
0answers
7 views

Removing placemark in KML exported from MapMyWalk

I created a route in MapMyWalk, saved it with distance markers turned off. When I export the file to .kml and open in Google Earth, a placemark and label for every one of the 220 miles appears. I ...
0
votes
1answer
36 views

Converting GPS data to KML?

I have some waypoints, and I need to input them into Google Earth. How can I convert data from GPS to KML file?
0
votes
0answers
70 views

Google Earth Engine - WFS, WMS, and KML feeds

I'm new to Google Earth Engine, but I am trying to determine if there is a way to produce WFS, WMS, or KML feeds with it. For KML it can't just be the file, but a web service that has a URL. The end ...
0
votes
0answers
43 views

Why are maps made on Google Fusion Tables, using KML file format, not rendering properly?

On this particular map of mine, the feature in Fusion Tables seems to only approximate the geo-locators that I have specifically inputted. In fact, it takes every second point and plots it out, ...
0
votes
0answers
26 views

QGIS KML lengths appear to be wrong? [duplicate]

Every time I import a KML into QGIS the line lengths are wrong. A line that was 191 ft on Google Earth is now 260 feet in QGIS. How can I solve this problem?
-1
votes
1answer
46 views

Get some sample coordinates inside an area using its KML file [closed]

I have a KML file which defines an area. I want to get coordinates of some points inside that area using my KML file. I googled a lot, but I only found codes to check if a point is inside. My issue ...
1
vote
0answers
20 views

ArcGIS Layer to KML scale

I am trying to create a KML from a layer composed of a large number of polygons. Because of the large size, it is quite slow to load the KML in Google Earth. Is there any way to create the KML so ...
1
vote
1answer
61 views

Showing KML data point info as popup in Leaflet?

I'm new in Leaflet. I'm using Leaflet as my base map. I have a lot of points as a KML file. I used GeoJSON & omnivore.kml(...) to load my KML file. Every thing is ok and it loads perfectly. My ...
2
votes
2answers
186 views

Reading KML Files in R?

I'm hoping to analyze google timeline data in R for a final project in a GIS class, Google can output timeline data as geojson and KML but it looks like the KML file includes a lot more info (type ...
0
votes
0answers
33 views

Convert shapefile to KML: KML polygons don't match shapefile

I've edited my shapefile quite a bit using the Cut and Merge tool (through the Editor toolbox, not the geoprocessing tool). It looks like this: For some reason, when I export the shapefile to a KML ...
4
votes
4answers
382 views

Importing KML styles into QGIS

Can I import a KML file with styles to QGIS 3? (As of now version 3.4.1) I have a .kml file with cycling routes that have a different color for the time between sunset and sunrise. When I import the ...
0
votes
1answer
46 views

KML Screen Overlay - works on google Earth but not on ArcGIS

I've been trying various things to get this to work on ArcGIS Online for the past couple of hours, but have not been able to figure it out. It works perfectly fine on Google Earth but ArcGIS Online ...
0
votes
1answer
51 views

Edit KML lines in Illustrator or getting smooth curves

I have a problem, when I'm making my traces in an application like Google Earth, I can't make smooth curves, only straight line. So I thought maybe I should export the trace to Illustrator then ...
0
votes
1answer
66 views

Openlayers select feature in KML

I'm having trouble selecting a feature inside a KML, and wondering if this is even supported. as a pretty basic example i have: var vectorSource = new ol.source.Vector({ //url: 'https://...
0
votes
1answer
172 views

Merge different KMZ layers to a unique KMZ file, a bash script

I have different .kmz files, each one contains a .png and a .kml, let's say: a.kmz, b.kmz, c.kmz. I would like to use a bash script to obtain a unique .kmz file, let's say d.kmz, that contains all the ...
0
votes
2answers
97 views

Extracting non-spatial data from imported KML file using R?

I have a KML file which was created using Google's My Maps. The original file can be downloaded here: Google My Maps Using R, I can import this using the "readOGR" function of the rgdal library ...
0
votes
1answer
162 views

Change Leaflet Map Layer/Terrain Style

I'm going to show KML file using Leaflet's plugins named Omnivore KML (https://www.mapbox.com/mapbox.js/example/v1.0.0/omnivore-kml/) I've read the tutorial, implement the source code, and it ...
0
votes
1answer
66 views

ECW to KML from ArcGIS Desktop failing to open in Google Earth?

i have some .ECW file and i want to convert to KML to used in another program (AutoCAD).. so i convert this file using conversion tools which is ArcGIS Desktop 10.2 provide.. but i have problem in ...
0
votes
0answers
24 views

KML: Making all points on a polygon relative to ground by same amount?

I need to generate large polygons that are all on the same plane but are all some relative distance from the ground. I need to do this without knowing what the absolute altitude is. So imagine I am ...
0
votes
0answers
40 views

Data Source (s) for names and polygon shapes for the world [duplicate]

I am looking to find out where I can ideally get every country, district, city, town, postcode in the form of polygons. Is there a central place for this? What are the licences for using the data?
0
votes
1answer
46 views

Read through a feature class and export each feature BY ROW to KML via arcpy [closed]

I have a geodatabase feature class of a polygon with multiple rows, where each row represents an individual polygon. I need to loop through each one of these polygons (rows) and export them to a KML ...
1
vote
1answer
32 views

Extra attribute is embedded into KML file after conversion

I converted point shapefile into KML which has two columns, one is Name of School and second is Coordinates. "Coordinates" column has only 10 rows. And in the "Name of School" column, there are 30 ...
1
vote
1answer
317 views

Exporting layer from Google My Maps as KML has no geometries

I have a CSV with an address field (no lat/long), so I went to Google My Maps, imported the csv and geocoded of the records. Now I export the layer as KML and added the KML to QGIS and Google Earth ...
0
votes
1answer
231 views

Openlayers 5 change kml style for icon only

I'm importing KML into my map where it has some point placemarks with images that are WAY too big. What is the best way to import KML in the map, and just change 1 aspect of the style ( https://...
0
votes
1answer
149 views

Changing color scale in KML files?

I want to work with kml/kmz files in the Google Maps API, but I want to remap the color scales. Is that possible? Here are example kml/kmz files where I'd like to change the color representation ...
1
vote
2answers
457 views

Network link KML on Google My Maps

Within Google My Maps (https://www.google.com/mymaps) There is an option when exporting the data out called: "Keep data up to date with network link KML (only usable online)" I want my Google My ...
0
votes
1answer
50 views

Exporting map to KML using ArcMap?

I've been trying to convert a map from ArcMap to KML without exit. The issue is that I want to export the complete map, not only the layers in the data frame but also legend, symbols, grid ticks and ...
1
vote
1answer
47 views

Python change to geotagged photos to kml and csv (remove labels)

I am writing from NC in the aftermath of Hurricane Florence. I have been working with a Python Script for geotagged photos. If there is anyone out there willing to look over a short two-page script ...
1
vote
0answers
102 views

How to style KML through LIBKML layer creation options?

I am exporting a layer from PostgreSQL to KML using the sf package in R - though I am also capable of doing it directly with ogr2ogr. I get a workable KML that looks like this. <Placemark> ...
0
votes
2answers
57 views

Processing a very large hosted KML file to identify what makes it so big [closed]

I've run into a problem where I have two very large layers that I'm tasked to overlay on a map, showing cellular coverage across a the whole South Africa. Layer 1 was given to me in various formats ...
1
vote
2answers
134 views

I have a very big KML file, I want to remove all the placemarks from it

I want to remove all the Placemarks that has a name, and keep the lines which is between , as the performance of the file is awful I've tried to do it using Notepad++ Replace function using the below ...
2
votes
0answers
30 views

Creating networks and regions KML in R

I have >500 very large KMLs that contains only point data and a reference to a .png pop-up Each KML looks like this <kml xmlns:xsd="http://schemas.opengis.net/kml/2.2.0/ogckml22.xsd" xmlns:xmlns="...
1
vote
1answer
102 views

Can't export feature attributes to KML

I am trying to export my feature collection to KML using geotools but only the geometry and id(weird id combination of table name + id) is exporting to KML i am getting the data from postgis and then ...