来自:http://zhihu.esrichina.com.cn/?/question/12087 Engine中执行gp工具返回的[解决办法]:需要用gpUtils.DecodeFeatureLayer方法将gp工具生成的图层先读取出来,如: // Intialize the geoprocessor. Geoprocessor GP = new Geoprocessor(); // Intialize the MakeFeatureLayer tool. MakeFeatureLayer m
Sql Server 函数的操作实例!(执行多条语句,返回Select查询后的临时表) SET ANSI_NULLS ON GO SET QUOTED_IDENTIFIER ON GO -- ============================================= CREATE FUNCTION csj_csj(@id as int) RETURNS @temp table --这里返回一个自己创建的表,里面的字段根据自己的需要设 ( [id] int, [zd] varcha
# !/usr/bin/env python # -*- coding: utf-8 -* import os def main(): file_list = os.popen("ls").read().split() for f in file_list: if '.log' in f: cmd = "tar zcvf {}.tar.gz {}".format(f[:-4], f) os.system(cmd) print 'success' if __name_