The Esri Community
Services & Programs
GeoNet Resource Hub
to create and rate content, and to follow, bookmark, and share content with other members.
Using python for Google Earth
Discussion created by
on Jan 21, 2012
on Jan 24, 2012 by stacyrendall
Show 0 Likes
Kinda off topic for ArcGis, but does anyone know where I can find some info on how to use python to auto-generate GE maps? Essentially I want to load a KML (that I will generate in ArcMap) into GE, and then save it as an image. Thanks Guys!
This content has been marked as final.
Show 1 comment
(Required, will not be published)
Jan 24, 2012 3:26 PM
You don't need Python to do this, it is in the normal set of Arc tools...
If, for some reason, you wanted to avoid using the Arc tools, KML is actually pretty easy to make - it's basically a text file with a defined syntax. For example a simple point can be made with the following (from
Google KML Tutorial
[HTML]<?xml version="1.0" encoding="UTF-8"?>
<description>Attached to the ground. Intelligently places itself
at the height of the underlying terrain.</description>
All you need to do is save it to a text file, give it a .kml extension and GE can load it... You could easily automate the creation of a file like this in Python (iterate over a set of features, getting the coordinates and an attribute for the label).
However, getting symbology to work in GE might not be easy, which is why the Arc tools are nice...
Show 0 Likes
Retrieving data ...
What if you need two iterators in one model? Looking to batch clip multiple shapefiles with a Feature Selection iterator?
Friends Don't Let Friends Use ArcMap 10.6.1 Without This Patch
How to create a portal id for a cityengine file?
Where are the geoprocessing inputs persisted by ArcMap?
arcgis pro crashes when it tries to create a geoprocessing cache