How can I convert a feature class to a .kml file?
The "Layer to KML" tool only outputs KMZs. What am I missing here?
Solved! Go to Solution.
If you open the kmz with Google Earth Pro you can then configure your Google Earth Pro to look the way you want it. Then you can save it as a KML from there. If in fact you actually need to have a kml.
TThe direct answer to the question of is there a way to export a KML rather than a kmz from ArcPro. The answer to that is no, only a kmz
A kmz is just a zipped kml. Double click on it with Google Earth Pro and it should open.
This isn't what I'm trying to do. I'm trying to output a .kml file. Is there a way to do that in Pro?
Edited to say it looks like this is a known issue. Anyone landing here should kudo that idea.
Try the Layer to KML tool. https://pro.arcgis.com/en/pro-app/latest/tool-reference/conversion/layer-to-kml.htm
Like the OP says (and the linked Idea above)... the Layer to KML tool does not output KMLs.
I see your point, but most other viewers will read either, is there a specific purpose that a kml is needed rather than kmz? Even software such as Civil 3D have a tool named Export KML, but in reality export to KMZ.
If you open the kmz with Google Earth Pro you can then configure your Google Earth Pro to look the way you want it. Then you can save it as a KML from there. If in fact you actually need to have a kml.
TThe direct answer to the question of is there a way to export a KML rather than a kmz from ArcPro. The answer to that is no, only a kmz
Thanks for confirming this. Marked as accepted unless we get some additional feedback. This task is so simple and yet seemingly can't be done so I'm still second guessing myself.
It's kind of ridiculous that
1. The tool does not do what the name explicitly states.
2. This expansive (and expensive) GIS can't handle KMLs. Users need additional software to convert KMZs specifically.
@CarlMorrisonyes, there is specific purpose to work only in KMLs. Moving data between software packages and hardware is a constant time suck due to cases exactly like this. It's true that analysts frequently need to clean and reformat data, but this is unnecessary overhead.
Pedantic Edit: A KMZ is KML - albeit the zipped version with a different extension as Sean noted. This thread refers to the unzipped version with .kml extension.
A kmz is just a zipped kml (plus some other optional bits and pieces), you can unzip it and extract the kml. You could automate the unzipping with python and create your own geoprocessing layer to kml tool that actually outputs kml.
So yes there is a way to export a KML rather than a kmz from ArcPro, but you need a small script to run layer to kml then unzip the "doc.kml" file contained in the kmz.