Questions tagged [kml]
KML is an XML file format used to display and annotate geographic data, made popular by Google Earth.
1,235
questions
0
votes
0
answers
16
views
Fiona Throws Error Null layer: ''
I have a file Mapp.kml (1 of 5). I am trying to read this file into Python through Fiona.
I keep getting an error
ValueError: Null layer: ''
Things I have tried:
polygon_1 = gpd.read_file('../MAPP....
0
votes
0
answers
50
views
Loading shapefiles, GeoJSON, KML and GPX giving properties only for shapefiles in Leaflet
The following code allows for loading local shapefiles, GeoJSON, KML and GPX, but items properties are not the same. Only shapefiles will return its properties with a bindpopup of global properties.
//...
1
vote
0
answers
79
views
GDAL to convert GML to KML
I have a GML file and it has a code structure as follows. When I convert it to KML via GDAL, it does not read the coordinates. When I delete negative values, it reads but only one position appears. ...
0
votes
0
answers
22
views
KML: How to draw a border/outline for a Icon in GroundOverlay
I want to add a red color border/outline to . How can I achieve it. Working with QGIS
<kml>
<Document>
<name>GeoTIFF Overlays</name>
<GroundOverlay>
...
1
vote
1
answer
98
views
Convert KML to GeoTIFF with Python (osgeo.gdal)
I have a KML file provided by a user that looks like:
<?xml version="1.0" encoding="utf-8"?>
<kml xmlns="http://www.opengis.net/kml/2.2" xmlns:gx="http://...
0
votes
0
answers
36
views
Export a track from QField as a .kml (from your device, for use on your device)
I am new to QField. I am trying to simplify our field workers' process, which involves both digitizing new points and creating KMLs to use in other apps, like Gaia. I like the interface in QField for ...
0
votes
0
answers
62
views
Read KML file with GDAL/OGR and access all its attributes
I have a KML file and I'm trying to access a specific attribute named "styleUrl".
A feature of this KML looks like this:
<Placemark>
<name/>
<styleUrl>BoundaryStyle</...
0
votes
0
answers
31
views
Raster to Polygon is converting the entire image as one polyon
I am attempting to use the raster to polygon tool with a RF Propagation overlay that is in .png format. The png is tied to a KML for the georeferencing from its output software. If i leave the png ...
-2
votes
1
answer
69
views
Get altitude over WGS84 ellipsoid from GPS tracking app [closed]
I have been using multiple GPS tracking apps for sailing in my iPhone, such as iSailor, whose output is a KML file that looks like
...
<when>2023-08-16T09:12:51Z&...
0
votes
1
answer
36
views
Why QGIS cannot open government KML for health authority boundaries?
When I try to load health authority boundaries from the Government of Canada data site into QGIS I get the following message:
I have checked on two systems and I get the same result. Mind you, one is ...
1
vote
1
answer
60
views
QGIS .dxf file conversion to .kml no geometry notification
My colleague is having an issue converting DXF files into KML files.
He is using QGIS version Lima (not sure version no.) and I am using Hannover (3.16)
We have checked all the various options and ...
0
votes
0
answers
24
views
Extracting polygon from embedded Google Maps panel
I'm trying to extract a polygon from an embedded Google Maps panel on this website (lower half of site), representing an area of coverage. I can not seem to find any file on the website that ...
0
votes
1
answer
37
views
ArcGIS is not coloring when read from KML file
Here is the beginning of my KML file. When I imported this file into ArcGIS Maps SDK, the points are not being colored with given color. It works perfectly okay on Google Earth.
How can I address this ...
1
vote
0
answers
36
views
Exporting vector layer with symbology using PyQGIS
I want to export vector layer with symbology on PyQGIS. So, like the code below, I try export to .kml with symbologyExport = QgsVectorFileWriter.FeatureSymbology.
But It couldn't export with symbology....
0
votes
0
answers
46
views
Conversion from QGIS Layer to KML file, to then Google MY maps. Layer brings to blank map?
This is what I see upon importing my KML file to Google My Maps. Is the file size of 503 kb too big? My CRS is EPSG:4326 like Google Maps.
Anything to fix this?
0
votes
0
answers
25
views
Google Earth Pro: touring waypoints without a "bounce"
In Google Earth Pro (GEP) I want to record a tour, which travels from A through B to C. At point B, the tour camera does what I think is called a bounce: it drops down a little toward point B, waits a ...
0
votes
0
answers
83
views
How to upload Google Earth kml file to Geoserver (via API or python package) without losing any data or style
I have Google Earth Pro Desktop App where I created placemarks, lines, polygons, and applied individual styles to them. However, I am facing difficulties uploading this data to GeoServer using the ...
0
votes
0
answers
78
views
Converting and Importing Google Earth Layer with KML Styles into GeoServer (SLD Format) - Styling Discrepancy
I am facing a challenge while trying to import a layer from Google Earth into GeoServer. The styles in Google Earth are in KML format, while GeoServer requires SLD format for styling. As a result, the ...
0
votes
1
answer
62
views
Create KML file from Metro Dreamin map
I am wondering if there is an easy way to create a KML file from a Metrodreamin.com map; perhaps from a JSON file. Ideally I would like to do this from an Ipad. However I have acess to a Windows ...
1
vote
0
answers
31
views
How do I merge KML files without overlaps or vertices in-between?
I have 3 .KML files and want to merge them to create one large .KML but can't seem to remove the vertices in between.
When I merge them directly, they have overlaps and vertices in between them like ...
1
vote
1
answer
39
views
map.addLayer doesn't display KML points layer the first time in OpenLayers 4.6.4
I've posted this question on StackOverflow, but it seems like this is the correct forum to ask this, since nobody answered over there.
I have an OpenLayers project where the user can display/hide some ...
0
votes
0
answers
29
views
How to get Google MyMaps to respect refreshable Network Links
I import a simple NetworkLink file (as represented immediately below) into MyMaps, calling out some level of refresh mode:
<?xml version="1.0" encoding="UTF-8"?>
<kml ...
0
votes
0
answers
64
views
Break KML nametag with new line
I would like to break the KML name-tag into several lines when showing it as a label.
E.g I would like:
<name>Germany Deutschland Tyskland</name>
to be shown as a label in the map like:
...
0
votes
0
answers
24
views
Exporting Shapefile as KML with polygons and labels in QGIS [duplicate]
The link Previous answer does not work with this file. As the file I was exporting was a clipped file I tried using the original file but with same result, polygons but no labels. It is a public ...
2
votes
1
answer
305
views
Leaflet KML imported with Omnivore filled only with default blue and not the color set in KML file
I have a KML file which I need to import in a map using Leaflet. If I use leaflet-kml I can see all polygons with color set from KML file.
But because I need to show only one polygon extracted for ...
2
votes
1
answer
139
views
Show only one polygon from KML loaded with Leaflet
I'm using Leaflet with Leaflet-KML plugin to show a KML file with multiple polygons. In this KML file there are 125 polygons. I want to pick only one to show on the map. The choice is made directly ...
0
votes
0
answers
543
views
Generate WKT from geometry type in SQL Server
I have a bunch of polygon data in a SQL Server database.
Most of the data was created in Google Earth and exported as KML, then imported to SQL Server as WKT before conversion to geometry.
Each record ...
2
votes
2
answers
1k
views
Looking for KML validator
I'm looking for a KML validator. It appears that the two websites that did this are gone (feedvalidator.org and kmlvalidator.com).
What websites, or other methods, can I use?
-1
votes
1
answer
69
views
Equivalent to Google "my maps" for larger datasets, access-restricted webmap without a custom website
I know how to upload a KML file to create a google "my map" and share it privately via Google Drive. I want to know how I can do this for larger datasets that exceed the Google "my map&...
0
votes
0
answers
45
views
KML to SHP layer is still missing the added fields Running without error
This is the script that will run without the running without line 28 that causes the error but is not adding the fields from the html field. I think I am missing something at 28 but when I had the ...
1
vote
0
answers
49
views
PyQGIS: Save as KML doesn't work using QgsVectorFileWriter
I have a line layer (multiple lines but not large) that I'm working with in my PyQGIS plugin and I need to save the layer as a KML file in the end. My code looks like this:
saveLocation = filePath + &...
0
votes
1
answer
50
views
Transcribing KML without metadata
I use Google Earth KMZs for fiber optic network designs and I need to transfer info over to Excel for ordering purposes. I'm using the Placemark and Path features in GE to correspond to items we order,...
2
votes
1
answer
869
views
Python - Write to KMZ format
I have a string created from lxml's etree module in appropriate format for KML. It outputs ok as a KML file and opens in Google Earth ok. Here is the code for storing it:
stream_str = io.BytesIO(...
1
vote
0
answers
43
views
How to adjust KML coordinates
I'm looking at some KML files for the Western Pacific.
Usually the longitude stops at 180 degrees, but the coordinates they have
are like, partial:
188.000,-15.268,0 188.110,-15.270,0 188.220,-15.276,...
1
vote
0
answers
70
views
Converting a KML file into a shapefile as applied (vector to raster)
I have received a KML file from a drone, this file displays the path at which the drone was flown. I would like to convert this into a shapefile to display the swaths that the drone covered. I know ...
3
votes
1
answer
141
views
BBox problem with rasterio - Converting KML file to GeoTiff file on Python
At my work, I need to convert different kinds of files into Geotiff files. Now I have to convert a banch o KML files. Those came with the coordinates from the corners of the polygon. Using rasterio to ...
1
vote
1
answer
116
views
Google Earth Web KML Not Compatible with Desktop?
I would have assumed that a KML file exported from the web version of Google Earth would work in the desktop (Pro) application. Is that not the case, or am I missing something?
I created a project on ...
0
votes
1
answer
50
views
KML Generated from Text File - Google Earth Interpreting Some Styles as ARGB, others as ABGR
I'm generating KML files from a script, and am attempting to apply color styles. Can't find any documentation of some color styles requiring ARGB (alpha-channel, red, green, blue) format and others ...
1
vote
1
answer
140
views
Multiple KMLs to features in QGIS
I have a mix of KMLs (points/lines/polygons) and I'm trying to merge them into one feature class. I've tried to "Merge Vector Layers", but it says all layers must have the same geometry.
0
votes
0
answers
38
views
Creation of ECW to KML in ArcGIS Pro for use in google earth pro desktop results in small file in middle of nowhere
When trying to bring in an ECW file ( avg is around 30KB) as a KML into Google Earth Pro, I get an extremely small file size (2KB) that does not show up. I set the settings to the Max Texture my ...
0
votes
0
answers
33
views
GDAL KMLSUPEROVERLAY erases part of the tif boundary and the results are voxelized
I am using GDAL 3.6.2 to convert TIFFs to KML views.
The output results will have two issues:
1- A small part from the image boundary will be missing in the output KML. Around 10 pixels from the ...
0
votes
0
answers
114
views
Convert to gpk a KMZ layer with information that is connected to a server
I need to use the information from a KMZ file, that is anchored to an online server, when I save the place on my local server and open it, it keeps connecting to the server preventing me from using ...
0
votes
0
answers
77
views
Shapefile and KMZ/KML point validation in ArcPy
I have a KML/KMZ and a shapefile. The shapefile and KMZ have the same number of points. Example would be power poles.
The problem is that, for example, these two power poles have the same attribute ...
0
votes
0
answers
79
views
Access KML/KMZ literal intel with Python QGIS ogr lib
I am extracting a bunch of KML files coordinates with a code like this:
from osgeo import ogr
def kml2geojson(kml_file):
drv = ogr.GetDriverByName('KML')
kml_ds = drv.Open(kml_file)
for ...
1
vote
1
answer
73
views
Switching between Earth and Mars in a single KML file
In Google Earth, I have a folder with multiples subfolders and placemarks, that I would like to export to a single (ideally) kml file. The issue is that some of the placemarks are located on planet ...
3
votes
1
answer
74
views
TypeError when converting shapefiles to KMLs using PyQGIS
In QGIS 3.16 I'm trying to load all shapefiles from a folder and subfolders and export all to KMLs files in a single folder (The shapefiles have different names).
This error appears, but I don't ...
2
votes
1
answer
1k
views
Create KML files from each row of a GeoPandas DataFrame
I have a multipolygon GeoPandas DataFrame. I want to create a KML file from each polygon of geodataframe.
gdf
sites geometry
0 site1 POLYGON ((-83.45951 35.03725, -83.45963 35.037...
1 site2 ...
1
vote
1
answer
1k
views
Adding image overlay to Google Earth Web
I am trying to add an image overlay to Google Earth Web. It works fine in Google Earth Pro on my desktop, but I can't seem to make it work in Earth Web. I want to be able to have folders in my project ...
2
votes
0
answers
97
views
Programmatically set symbology for KML-based vector layer in QGIS
I have a bunch of data points in a KML file, and I need to programmatically create a QGIS layer from that file.
I also need to set the appearance of the resulting LineString. I assume this must be ...
1
vote
1
answer
239
views
Is it possible to append layers to a KML file in R?
I'm trying to create a KML file containing two layers to display in Google Earth.
Here's a small example of what I've tried:
library(sf)
poly <- st_as_sf(st_as_sfc(
"POLYGON ((-59.6354 5....