Beispiel #1
0
def dispatchJobs(ch):
	fileTemplate = r".\\Template\T_Shader.gms"	
	strDataPath = r"H:\SRTM\SRTM_GMG_ALL"
	strRenderName = r"GeoRender01"
	
	strOutputFilePath = MakeDir(r"H:\SRTM",strRenderName)	
	strGMSPath = MakeDir(strOutputFilePath,"GMS")
	strLogPath = MakeDir(strOutputFilePath,"log")

	flist = SMUP_Image.scanPathAll(strDataPath)
	for f in flist:
		print ""
		print datetime.now(), "处理文件: ",f
		strFilePathName = f
		str_GMSPathFile = buildGMS(fileTemplate,strFilePathName,
			strGMSPath,strLogPath,strRenderName,strOutputFilePath)
		job = buildJob(str_GMSPathFile)
		SMB_Dispatch.send_job(job)
		print "已经提交: ",job
Beispiel #2
0
def dispatchJobs(ch):
	flist = listFile("H:\ETM\TIF2")
	for f in flist:
		job = buildJob(f)
		print "Dispatch Job:",f
		SMB_Dispatch.send_job(job)