2,650 questions
0 votes
1 answer
146 views
Mapping data from Open Tracks KML file using sf
I'm using OpenTracks on my phone to record business driving for tax reporting. I'm exporting the KML files and then trying to create a map using ggplot2, and the sf package which I think is the right ...
1 vote
2 answers
156 views
Detecting Overlapping Coordinates in Two KML Files Using JTS (Alternative Libraries?)
I am working with two KML input files and trying to determine if their coordinates overlap at any point. I am using the JTS Topology Suite (JTS) for spatial operations, but I am not getting accurate ...
0 votes
0 answers
82 views
Relative paths for KMZ thumbnails
I am having an issue with getting some thumbnail jpeg images to pop-up when I click on point locations I have in a kml. I know that I need to set the image location and when I use the full file path ...
0 votes
1 answer
98 views
AttributeError: 'Kml' object has no attribute 'style'
I am learning how to use simplekml and i am having a hard time adding a particular icon on a point. this is my code: import simplekml points_kml = simplekml.Kml() points_kml.newpoint(name="...
1 vote
1 answer
217 views
Merging one kml with multiple polygons with another kml with multiple polygons that sometimes overlap
I am trying to merge two kmls with multiple polygons in a map area so I can after estimate the population inside the merged area. Polygons in one kml sometimes overlap completely or partially with ...
0 votes
1 answer
104 views
System.NullReferenceException: Object reference not set to an instance of an object. System.Xml.Linq.XContainer.Elelement(…) returned null
I am reading .kml files saved out of Google Earth Pro. Here is the code which I got from a post here on SO. Works great when the xDoc.Descendants have consistent elements. XDocument xDoc = ...
0 votes
0 answers
89 views
Adding a satellite image as KMZ file to openlayers - Image not shown
I am trying to add one or more satellite images for small regions, which have been tiled and packed into a KMZ file, to Openlayers 5. I manage to download the KMZ file from the server and unzip it. ...
0 votes
1 answer
257 views
Selecting GDAL driver for writing KML file from TIFF
I have some DEM data from USGS which I'm trying to write as a contour map to a KML file. I'm working with GDAL 3.4.1. , which I installed using Anaconda $ gdal_contour Downloads/...
-1 votes
1 answer
127 views
How can I handle or correct shapefile coordinates that exceed valid latitude and longitude ranges? How do softwares like QGIS project invalid ones?
I am working on making a shapefile data parser and there are some shapefiles that when I upload to QGIS and GEE work perfectly fine but my parser says its invalid because the latitude and longitude ...
1 vote
1 answer
103 views
Why are the results different by Google Maps and Matplotlib?
I plotted a kml file using matplotlib and showed it on Google Maps, but the line is different. Can anyone tell me why? How can I plot it just like in Google Maps? <?xml version="1.0" ...
-2 votes
1 answer
139 views
Importing KML into MySQL
I have this KML file to insert in a MySQL table: <?xml version="1.0" encoding="utf-8" ?> <kml xmlns="http://www.opengis.net/kml/2.2"> <Document id="...
0 votes
1 answer
144 views
Is there a way to fix LineStrings cutting off on .kml files in Google Earth Pro?
I'm using the python library simplekml to make a .kml file that shows routes connecting airports with Points to show the airports and LineStrings to show possible flights. The generated .kml file ...
0 votes
1 answer
112 views
In Python, want to find all the placemarks in a kml file, but the list is returning empty
Trying to find all the placemarks in a kml file, so I can alter them. But findall doesnt find any. def scan (filename): from lxml import etree tree = etree.parse(open(filename,encoding='utf-8')...
1 vote
0 answers
208 views
Changing Kmls polygons using Pykml
I'm attempting to modify the color and symbology of certain files located within a folder. To accomplish this, I'm utilizing a spreadsheet containing the KML names, colors, types, thicknesses, icons, ...
0 votes
0 answers
124 views
How do I remove the filename prefix in the attribute table of a kml file when exporting a kml file using sf package in R?
After exporting a layer from arc, I import into R using the sf library. I join some data to this object. I rename the fields of the object (called "shape"): names(shape) <- c('...