I am aware that it is possible, in QGIS, to save your Vector Layer as a KML manually, however, I want to know if there is anyway I can do this programmatically from an external Python Script that I run from PyScripter.
I am aware ArcPy has that functionality, however, I am looking for a PyQGIS Solution.
Here is how I can do it with ArcPy using the Conversion Tool Set Layer to KML
...
Layer = Output_Layer
Output_File = r"C:Users\path\KMZ.kmz"
# Process: Layer To KML
arcpy.LayerToKML_conversion(Layer, Output_File, "0", "false", "DEFAULT","1024", "96", "CLAMPED_TO_GROUND")
print "Layer to KMZ Conversion Complete"
print Output_Layer + " is now a .kmz"
or if there is a Python Library that will allow me to convert a shapefile to a KML/KMZ?