コード例 #1
0
ファイル: SMB_DispatchGMS.py プロジェクト: supergis/SMPP
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
コード例 #2
0
ファイル: SMB_DispatchJob.py プロジェクト: supergis/SMPP
def dispatchJobs(ch):
	flist = listFile("H:\ETM\TIF2")
	for f in flist:
		job = buildJob(f)
		print "Dispatch Job:",f
		SMB_Dispatch.send_job(job)