| |
import sys, os, string
from pyGearthGeometry import *
from pyEarthReadKML import *
from pyGEarthESRITools import *
if __name__ == '__main__':
objPKLLine = KMLReader20(filename,'Polygon', 'Placemark', 'Folder')
#Now, iterate through the line collection and add the attributes
lstKRows = objPKLine.getData()
geo_processing_tools = write_geometry(lstKRows, 'Polygon', outdb) |