parameters: (self, event=None)
docstring: Export route results to shape file.
docstring_summary: Export route results to shape file.
docstring_tokens: Export route results to shape file .
function: def on_routes_to_shapefile(self, event=None):
          """
          Export route results to shape file.
          """
          # print 'on_routes_to_shapefile'
          scenario = self._mapmatching.get_scenario()
          dirpath = scenario.get_workdirpath()
          defaultFile = scenario.get_rootfilename()+'.routeres.shp'
          wildcards_all = 'All files (*.*)|*.*|SHP files (*.shp)|*.shp'
          dlg = wx.FileDialog(None, message='Export route results to shapefile',
                              defaultDir=dirpath,
                              # defaultFile=defaultFile,
                              wildcard=wildcards_all, style=wx.SAVE | wx.CHANGE_DIR)
          if dlg.ShowModal() == wx.ID_OK:
              filepath = dlg.GetPath()
  
          else:
              return
  
          mapmatching.routes_to_shapefile(self._mapmatching,
                                          self._results,
                                          filepath,
                                          log=self._mainframe.get_logger())
function_tokens: def on_routes_to_shapefile ( self , event = None ) : # print 'on_routes_to_shapefile' scenario = self . _mapmatching . get_scenario ( ) dirpath = scenario . get_workdirpath ( ) defaultFile = scenario . get_rootfilename ( ) + '.routeres.shp' wildcards_all = 'All files (*.*)|*.*|SHP files (*.shp)|*.shp' dlg = wx . FileDialog ( None , message = 'Export route results to shapefile' , defaultDir = dirpath , # defaultFile=defaultFile, wildcard = wildcards_all , style = wx . SAVE | wx . CHANGE_DIR ) if dlg . ShowModal ( ) == wx . ID_OK : filepath = dlg . GetPath ( ) else : return mapmatching . routes_to_shapefile ( self . _mapmatching , self . _results , filepath , log = self . _mainframe . get_logger ( ) )