Not able to overwrite kml file

I generate KML files on-the-fly.After generating, I call Google maps like this : http://maps.google.com/maps?q=http://<my ip>:8081/<location>/<name>.kml . The name of the file I use is based on...

Having problems creating kmls with python

I am creating kml files using python and the simplekml creator. For some reason it creates two kml files and will not create the third. Data seems fine to me. Here is the...

Displaying local image in simplekml

I'm trying to use simplekml to put a bunch of geotagged photographs into a KML file (well, a KMZ file actually) to view in Google Earth. I've gotten the locations to display, however when I try to...

Display coordinates from kml

I can't for the life of me figure out how to display coordinates from a simplekml file in Google Earth. I'm using a for loop to get coords from a list as such... for code, label, lat, lon, mm,...

How can I turn a massive number of coordinates into a boundary or polygon?

I've got a large number of points that, when plotted individually, make for huge KML files. I would like to create a boundary for these points rather than plotting them individually. I am using...

UnicodeEncodeError using python simplekml

I'm trying to create a kml from a xlsx file, but when xlsx contains utf-8 it's not working. I saw simplekml documentation and it's marked as solved, but I can't make it work. I've tried setting...

Kml creation error

Recently I've been reading regards the simplekml module that python 2.7 has. So far I've found this to create a point: import simplekml kml = simplekml.Kml() kml.newpoint(name="Kirstenbosch",...

Drawing Great Circles with SimpleKML

I've just been trying to draw some lines on Google Earth using point coordinates and everything works but for a tiny detail. The lines go through the earth and don't follow the surface so they are...

Change style of a single point when sharedstyle is used in simplekml

I'm using simplekml to plot some data. As I can have a lot of points I'm using sharedstyle, but the problem is that I can't any style paraneter between every point (as the icon scale or the...

Python SimpleKML: Parsing JSON object to string for KML generation

I am looping through the amount of IP addresses in a traceroute and getting the geo-locational data from ip-api.com, I have then added the data that has been passed back into a variable called...

Python SimpleKML newpoint coordinates substitution

Using the python SimpleKML library and having problems substituting in my point (coordinate) values. Here's the code example from the website: import simplekml kml = simplekml.Kml() pnt =...

Setting lablestyle in KML

I used the simplekml module for python to create the following KML file <?xml version="1.0" encoding="UTF-8"?> <kml xmlns="http://www.opengis.net/kml/2.2"...

Can I use simplekml shared style and also change the style of individual points?

I've written a script in python that will convert a CSV file to a KML file using the simplekml python package. It's not finished yet as it needs to also scale and color my points based on one of...

Creating a file and returning it to Django in a view

I am trying to build a KML file on the fly for a user to download. I am playing with a KML library in python to produce and save KMLs but I want to return the file as ad ownload. Essentially...

html popup window in simplekml

Say I have an html table: <table border="1"> <tr> <th>Company</th> <th>Contact</th> <th>Country</th> </tr> <tr> <td>Alfreds Futterkiste</td> <td>Maria Anders</td> ...

Creating a KML linestring from a CSV with Python and simplekml

I've got a bunch of CSV files containing, amongst other fields, lat and long. Each row is a point on a journey. I'm trying to create a KML that shows the journey as a linestring, but can't quite...

Creating a kml file for google earth - Heat/colour map required

I have csv data containing latitude and longitude. I wish to create a 'heatmap' whereby some placemarks are certain colours based on values corresponding to each lat+long point in the csv. import...

Using spyder with virtualenv

I am a newbie to Python and wrapping my head around some basic concepts. I come from PHP background. Following is a definition/breakdown of the problem I am facing: I installed anaconda, which had...

Check if Folder exists in simplekml - python

This should be extremely easy but I've now been at it an hour with no end in site. I'm using the simplekml module in python and I want to create a folder if one doesn't exists. I can't find anyway...

Resize or show a 2+ GB KMZ file

I'm using SimpleKML to create a list of ~600 geotagged pictures (where each pin has an image as the description. So I click one of the pins on the map and it shows the picture I took at that...

Syntax error when importing pykml.factory

So I am trying to use pyKML to create a KML file for google earth however when I try and import the module, I get the following: from pykml.factory import KML_ElementMaker as KML Traceback (most...

Create a kml in python that has both points and lines

I am trying to create a kml file in python (using simplekml) that has both points and lines that connect these points. I also want to make the points into squares instead of the default yellow...

Merging polygons using simplekml module

simplekml module makes multiple polygons instead of a single one. Is there any way to merge the polygons into a single polygon, rather than multiple ones?? import simplekml, pandas as...

How to create a .kml file from a dataframe?

I need to create a .kml file from a dataframe with more than 800 districts. This is what I have done so far: Read a .csv file (FIG 1) using PANDAS Creat a new dataframe by choosing only the...

Set Python Path in Windows 10 to Install Third-Party Python Packages

My IT department does not give me the ability to use pip or easy install to install Python library packages from PyPi. At some point I figured out that I could download the Python packages,...

python simplekml change shape of newpoint

I am trying to change the default Yellow Push-PIN place marker to rectangle or pixel. after running code below I still getting default Yellow Push-PIN place marker. import simplekml #from...

Error while creating KML from a dict using simplekml

I'm creating kml using the library simplekml. When creating a single one, it works like a charm, but when trying to create one kml per dict entry, returns an error I could not locate. The data...

Python 3 unable to find file

My code is listed below. I am just trying to follow along with a tutorial. I am working on eventually applying this to a long list in a csv format. However, I cannot seem to get this simple code...

How to execute a batch script from an anaconda virtual environment (not from base)?

I want to run a batch file in a Conda environment, not in the base env, but in another virtual environment (here pylayers). I copied the activate.bat script from F:\Anaconda3\Scripts to...

Splitting KML file per placemark

I want to split kml file per placemark and save it as separate kml file, the code creates separate files but includes all previous placemarks in the file eg: Grid3 holds the data for Grid 1 & 2 ,...