<s> '''<STR_LIT>''' <EOL> try : <EOL> import ogr <EOL> except ImportError : <EOL> from osgeo import ogr <EOL> kml_file = "<STR_LIT>" <EOL> kml_datasource = ogr . Open ( kml_file ) <EOL> layer_number = kml_datasource . GetLayerCount ( ) <EOL> for each in range ( layer_number ) : <EOL> layer = kml_datasource . GetLayerByIndex ( each ) <EOL> features_number = layer . GetFeatureCount ( ) <EOL> for i in range ( features_number ) : <EOL> feature = layer . GetFeature ( i + <NUM_LIT:1> ) <EOL> print feature . GetGeometryRef ( ) . ExportToWkt ( ) </s>
