Questions tagged [kml]
Keyhole Markup Language (KML) is an XML standard used for expressing geographic annotation and visualisations. The KML file format is used to display and annotate geographic data in Google Earth and other applications.
2,604
questions
-1
votes
0
answers
24
views
Plot a centreline in rectangle using shapely [closed]
I have a shapely polygon as rectangle. Need to plot centrelines for each rectangle and store all those lines in one variable, so that can be coverted to kml.
My approach is this way.
using poly....
-1
votes
0
answers
18
views
Google Earth Pro crashes on Ubuntu when updating KML file [closed]
I'm currently working on a code inwhich a KML file is created to start Google Earth Pro(GEP) with given input. The output(an image) is then shown in a browser. When values are updated in the adress ...
-1
votes
0
answers
11
views
i want exported file to be in geo tif to be displayed in Arcgis
I need some help, who can help me?
So basically I'm trying to export my bunedArea as kml or tif and display this in Arcmap where I can run further analysis or see for example how many times the pixel ...
0
votes
0
answers
16
views
How to convert a KML file to a dataframe with rows and columns using python?
So I have this KML file and I used the following code to read it -
pip install fastkml
with open("...CUs).kml", 'r', encoding="utf-8") as myfile:
HBCU=myfile.read()
HBCU looks ...
-1
votes
0
answers
17
views
How can Google JavaScript API's geometry library be used on Google Apps Script for Google Sheets?
I have a KML with a list of point coordinates of stores with values attached (e.g. weekly revenue). The KML links for every weeks are in a Google Sheet. Each week a new line is added to the Google ...
-1
votes
1
answer
37
views
Replace First Two Characters of XML Tag Value Match with Static Value
I am trying to replace the first two characters of an XML tag <LineStyle><color> value match with 00 if the pattern match isn't 00.
XML
<?xml version="1.0" encoding="UTF-...
2
votes
8
answers
72
views
Add String to New Line After Final Pattern Match
I am trying to add the follow string after the last pattern match in a text file.
Text File
<MultiGeometry>
<Polygon>1
</Polygon>
<Polygon>2
</Polygon>
<Polygon>3
&...
-1
votes
1
answer
26
views
KML labels not appearing in Google Map API
I have created a kml with LabelStyle showing Label size and labelcolor.
If I open google maps and import the kml the labels appear, however if I use the api and link to the kml. the markers appear but ...
0
votes
0
answers
32
views
How to generate multi colour raster from KML file using gdal_rasterize (python)
My goal:
I am trying to show multiple large KML files (each file > 15 MB) on Google Maps via Google Maps Javascript API. Google Maps doesn't allow large (>10MB) KML files, so I took different ...
0
votes
0
answers
29
views
Loading KML file onto Google Map
I tried implementing KML in Google Maps fragment following official documentation (https://developers.google.com/maps/documentation/android-sdk/utility/kml) but it didn't work. There are no errors, ...
0
votes
2
answers
51
views
Python Simplekml if folder already exists append the data inside folder as placemark tag
I have question related to SimpleKML. How to create(Append) a placemark inside a folder having the same name tag? Meaning inside one folder 2 data points are seen. Below is the output I am looking for....
1
vote
1
answer
27
views
How to add KML file onto a mapfragment?
So I'm trying to overlay KML file on Google Maps fragment with no success (documentation didn't help me unfortunately https://developers.google.com/maps/documentation/android-sdk/utility/kml) and I ...
1
vote
2
answers
76
views
How to draw circles of defined radius around multiple points and export to kml file
I have a set of points saved with their respective latitude and longitude in a data frame like this:
points = data.frame(point_id = 1:3,
lat = c("51.7505","51.7502",...
-3
votes
2
answers
60
views
Remove Matched Nested Element Tag from KML File
I am trying to remove the below section of code from a KML file, ideally using simple Bash/sed code.
I am familiar with removing XML tags using sed but, I'm not sure how to remove sub-tags matching ...
-3
votes
2
answers
40
views
I"m unable to read .csv rows recursively. Why is this showing me an error: IndexError: list index out of range? [closed]
def kmlForLab2(x,y):
#XYpoints1_wgs84
#XYpoints1_wgs84.csv
print(x,y)
#Input the file name."JoeDupes3_forearth"
fname = input("Enter file name WITHOUT extension:...
0
votes
1
answer
23
views
I can't see the polygon in google earth
Here is the code I'm using to generate .kml file:
def kmlForLab2():
#XYpoints1_wgs84
#XYpoints1_wgs84.csv
#Input the file name."JoeDupes3_forearth"
fname = input("...
0
votes
0
answers
54
views
f.write to kml files
So, I've been tasked with writing kml files from phython, without using simplekml. I going wrong in the code... can anyone please identify the mistake?
#Input the file name."XYpoints1_wgs84"
...
-1
votes
1
answer
71
views
How to load the correct KML according to location?
I have 15 kml files and I have a map from google map api, still I haven't found some way to put the correct kml from 15 kml files that I have according if the location are within kml area. Its ...
0
votes
1
answer
99
views
How to convert KML to GeoJSON using GeoTools in Java (GeoServer don't accept the result of my conversion)
I have a KML File and I need convert to GeoJSON.
I am using Geotools in Java for convert KML because GeoServer has problems to import KML. I can convert the files but GeoServer don't accept GeoJSON ...
0
votes
0
answers
24
views
Swift: Suggestions to make a better/faster lookup
I am creating a dataset (from terrain data) that I visualise in Google Earth by generating a KML file.
Part of the KML creation assigns a colour to a polygon based on a data value in the dataset.
My ...
1
vote
1
answer
32
views
Connection of two Google Earth placemarks
I have installed Google Earth Pro and added a couple of placemarks (yellow pins). So these placemarks can be found in the left tree view and contains of course a position (latitude, longitude).
Now, I ...
-1
votes
1
answer
82
views
KML - show multiple points on map
I would like to show multiple points on google map with KML file. I try below sample but only the first point show on map.
<?xml version="1.0" encoding="UTF-8"?>
<kml ...
-1
votes
1
answer
52
views
How to draw random points from KML Multigeometry or at least Polygons?
I would like to draw random coordinates inside KML countries shapes made from Multigeometry & Polygons. I tried to get random points of states from different online APIs, such as 3geonames, but ...
0
votes
0
answers
13
views
Why Google map KML stop working in Andriod 10
I have upgraded my IONIC application from cordova android 9 to cordova android 10.1.1.
In Version 9 the KML load properly in google map from my local device, but After upgrading to android 10.1.1 KML ...
1
vote
1
answer
78
views
Colored polygon outlines displayed as just all white opaque polygons
Someone shared a kml with me that was created in Google Earth Web along with a screenshot of it.
When I opened it up in Google Earth Pro, the colored polygons displayed as solid white.
For a test, I ...
-1
votes
1
answer
106
views
How to create several polygons with simple kml python?
I am trying to create a program to draw polygons in a kml with simpleKML in python, the idea is to send a list of coordinates to create polygons in different zones, but it is not working for me, could ...
0
votes
1
answer
60
views
How to access object parameters using pykml in a KML file
I have a python script that opens kml file and prase it to access specific elements inside of it, I have easily managed to access the data that lies inside every ,but I still need to access the id ...
1
vote
1
answer
167
views
Can R convert GPX files to KML files?
There seems to be no relevant content for converting GPX to KML files. R's sf package can do it, if you don't care about time and elevation (I do, and that is standard in most KMLs). Does anyone know ...
0
votes
1
answer
40
views
Using BeautifulSoup to pull multiple kml files
I'm learning python and was trying to automate a process which involves going to a site : wildcad net and clicking every single dispatch center, from there loading a kml. I noticed that each page ...
-1
votes
1
answer
71
views
Getting images from KMZ files
I'm trying to take an image out of a KMZ file. I currently have the local path of the kmz and the path of the file inside its respective kml file (relative, not global), and what I need is to get the ...
0
votes
2
answers
40
views
Parsing KML/HTML file using BeautifulSoup
I am looking at a kml file which I am trying to parse using BeautifulSoup
I am trying the following code but have failed to achieve the desired output:
from bs4 import BeautifulSoup
fn = r'...
0
votes
0
answers
387
views
How to plot data from a .kml file using matplotlib on python 3.7 and Windows 10"?
I will first give a little bit of context to my problem.
I have obtained a .kml file of the territorial seas around the world on the site : https://www.marineregions.org/downloads.php, and I would ...
0
votes
0
answers
95
views
If this possible to convert geoJson to KML file and export it in react native?
Hi everyone I need to convert geoJson data to KML file and export it in React native, Is this possible, and how do I do it, This possible to implement only front-end (or have any open API to solve ...
0
votes
0
answers
32
views
Permission error when i try to write KML files in django + ubuntu + apache
I'm Using the SimpleKML pip package to be able to create kml and kmz file from some cords I have in my database
Here is my code :
@permission_classes(["IsAuthenticated"])
@api_view(['POST'])
...
0
votes
0
answers
194
views
Extracting polygon information from KML file into DataFrame or Shapely using Python
I'm trying to get the polygon information from a kml file into a dataframe using python. I've searched a lot on internet but I haven't found it. Also I've tried using shapely to read the polygon ...
1
vote
0
answers
67
views
How to connect Kml layer + Autocomplete in Kotlin Android?
I have a question about SDK Google maps in Android
I have a Autocomplete Place that works perfectly. When i write some text in the input, google show me locations, and when i click on any print ...
1
vote
1
answer
220
views
How to generate KML file with colored markers
Having a geopandas dataframe with points with different properties, I would like to generate a KML file with markers with different colors depending on parameter value.
First, I tried to export the ...
0
votes
1
answer
283
views
Parsing a KML File and storing in a database with Python
I have 4 KML Files with multiple polygons. I would like to parse the KML files, extract the data and then store it into my Database. After researching, I figured that the best way to parse a KML file ...
0
votes
2
answers
307
views
Creating buffer spaces in meters around LineString line in KML using Python
Any suggestions to create buffer spaces on kml linestring using python? I tried with few libraries..
geojson
shapely
kml2geojson
Here, converted kml to geojson and added buffer space on the ...
0
votes
1
answer
759
views
Converting Geojson to kml using Python
I can convert it kml/kmz to geojson also, creating kml from geojson..
I tried with the below libraries
Shapely
kml2geojson
geojson
Source code below..
import json
import simplekml
with open('file....
0
votes
0
answers
50
views
PLOTKML. R. How can I write in the same .KML different datasets, in different folders,subfolders with different descriptions and icon images(shape)?
I'm new with R and I'm trying to make a script that plot a UNIQUE .kml/.kmz file with differents datasets.
I have 4 dataframes, with different lengths also. Every dataframe will have a different shape/...
0
votes
1
answer
122
views
How to convert GeoJson to KML using open source dll in C#
Please suggest me any open source that convert the GeoJson to KML File. I have spent too much times but I didn't found any open source. Please find the below link for paid source https://products....
1
vote
1
answer
207
views
Google Earth Web - network link
Question: do network links work in Google Earth Web (Web, not desktop)?
In Google Earth Web, I would like to call a kml file with network link.
Here is the code of init.kml the file imported manually ...
0
votes
1
answer
79
views
How to marshal multiline to XML in Go?
I need to store coordinates to KML file. It should be like this:
<coordinates>
51.600223,25.003058,0
51.600223,25.003065,0
51.600213,25.003065,0
...
0
votes
1
answer
60
views
C# Convert XML file to Multiple Polygon Objects
After converting multiple MapInfo files into a unique Shapefile, and then converting that file again to .KML, I got the following .XML file. My idea is to extract each set of 'coordinates' sections, ...
-2
votes
1
answer
50
views
Regex to replace x axis with y axis (Java)
I have a string with coordinates I want to pass on my .kml file. But in order for it to work I have to replace the numbers on the x axis with the numbers on the y axis (photo).I am working on android ...
0
votes
0
answers
64
views
Parsing kml-File(xml) with namespaces using Python [duplicate]
I am trying to extract all TimeSteps from a kml-File(xml-File).
The kml file i am trying to parse has the following structure.
<kml:kml xmlns:dwd="https://opendata.dwd.de/weather/lib/...
-1
votes
1
answer
143
views
How to avoid CORS error when reading kml file from google maps
I want to read kml file from url https://www.google.com/maps/d/u/0/kml?mid=1CUrmiiSysq2amCr5_6-YcOcg36sf3CpU&forcekml=1
I can download it when I enter this url to the browser,
but I get CORS error ...
1
vote
3
answers
52
views
XSLT: Trying to combine two nodes based on the value of an element of those two nodes
I am struggling with XSLT and have been for days. I'm in the process of modifying a previous coworkers python code that transforms many different JSON files into xml and finally into kml. I'm within ...