Module Expr Str TryExcept body Import alias handlers ExceptHandler type NameLoad body ImportFrom alias TryExcept body Import alias handlers ExceptHandler type NameLoad body ImportFrom alias Assign NameStore Str Assign NameStore Call AttributeLoad NameLoad attr NameLoad Assign NameStore Call AttributeLoad NameLoad attr Expr Call AttributeLoad NameLoad attr Num Assign NameStore Call AttributeLoad NameLoad attr Str Assign NameStore Str Assign NameStore Str Assign NameStore Call AttributeLoad NameLoad attr NameLoad Assign NameStore Call AttributeLoad NameLoad attr NameLoad NameLoad AttributeLoad NameLoad attr Assign NameStore Call AttributeLoad NameLoad attr For NameStore Call NameLoad NameLoad body Assign NameStore Call AttributeLoad NameLoad attr NameLoad Assign NameStore Call AttributeLoad NameLoad attr For NameStore Call NameLoad NameLoad body Assign NameStore Call AttributeLoad NameLoad attr NameLoad Assign NameStore Call AttributeLoad NameLoad attr Assign NameStore Call AttributeLoad NameLoad attr Call AttributeLoad NameLoad attr Expr Call AttributeLoad NameLoad attr NameLoad Expr Call AttributeLoad NameLoad attr NameLoad
N/A N/A 
Project:       Geothon (https://github.com/MBoustani/Geothon)
File:          Conversion_Tools/shp_to_kml.py
Description:   This code converts shapefile data format to kml format.
Author:        Maziyar Boustani (github.com/MBoustani)
 N/A N/A N/A ogr N/A N/A N/A ImportError N/A osgeo ogr N/A N/A N/A osr N/A N/A N/A ImportError N/A osgeo osr N/A shp_file ../static_files/shapefile/rivers_lake_centerlines/ne_50m_rivers_lake_centerlines.shp N/A shp_datasource N/A N/A ogr Open shp_file N/A srs N/A N/A osr SpatialReference N/A N/A N/A srs ImportFromEPSG 4326 N/A driver N/A N/A ogr GetDriverByName KML N/A kml_file line.kml N/A layer_name kml_layer N/A kml_datasource N/A N/A driver CreateDataSource kml_file N/A kml_layer N/A N/A kml_datasource CreateLayer layer_name srs N/A ogr wkbLineString N/A layer_number N/A N/A shp_datasource GetLayerCount N/A each N/A range layer_number N/A N/A layer N/A N/A shp_datasource GetLayerByIndex each N/A features_number N/A N/A layer GetFeatureCount N/A i N/A range features_number N/A N/A shp_feature N/A N/A layer GetFeature i N/A feature_geometry N/A N/A shp_feature GetGeometryRef N/A kml_feature N/A N/A ogr Feature N/A N/A kml_layer GetLayerDefn N/A N/A N/A kml_feature SetGeometry feature_geometry N/A N/A N/A kml_layer CreateFeature kml_feature