code: def convert2geojson(jsonfile, src_srs, dst_srs, src_file):
          
          if os.path.exists(jsonfile):
              os.remove(jsonfile)
          if sysstr == 'Windows':
              exepath = '"%s/Lib/site-packages/osgeo/ogr2ogr"' % sys.exec_prefix
          else:
              exepath = FileClass.get_executable_fullpath('ogr2ogr')
          # os.system(s)
          s = '%s -f GeoJSON -s_srs "%s" -t_srs %s %s %s' % (
              exepath, src_srs, dst_srs, jsonfile, src_file)
          UtilClass.run_command(s)
docs: convert shapefile to geojson file