コード例 #1
0
ファイル: conversion.py プロジェクト: simberaj/interactions
 def __init__(self, zones, zoneIDFld, method, location, **kwargs):
   zones = common.toFeatureClass(common.checkFile(zones))
   if not location:
     location = common.location(zones)
   Converter.__init__(self, location, **kwargs)
   self.zones = zones
   self.zoneMapper = ODFieldMapper(self.zones)
   self.zoneMapper.addIDField(zoneIDFld, [common.NEIGH_FROM_FLD, common.NEIGH_TO_FLD], transfer=True)
   self.method = method
   self.tmpTable = self.tablePath(self.TABLE_FILE_NAME)
   self.swmFile = self.folderPath(self.SWM_FILE_NAME)
   common.overwrite(True)
コード例 #2
0
ファイル: networking.py プロジェクト: simberaj/interactions
 def __init__(self, table, odIDFields, places, placeIDField, **kwargs):
   PlaceLinker.__init__(self, common.location(table), places, placeIDField, **kwargs)
   self.table = common.checkFile(table)
   self.placeMapper.setJoinIDFields(odIDFields)