摘要:isLicensed 方法是一种可选方法,用于检查 Python 工具箱中的工具是否具有执行许可。如果运行其他地理处理工具(由 Python 工具箱中的工具使用)所需的相应许可和扩展模块不可用,那么可使用该方法限制工具的运行。 如果 isLicensed 方法返回 False,则工具不能执行。如果该
阅读全文
摘要:arcgis python 列出一个表所有字段
阅读全文
摘要:arcgis python 删除一个数据库所有数据
阅读全文
摘要:python -m py_compile lib/ylpy.py python 一个.py文件如何调用另一个.py文件中的类和函数 A.py文件: def add(x,y): def add(x,y): print('和为:%d'%(x+y)) print('和为:%d'%(x+y)) B.py文件
阅读全文
摘要:与 ArcGIS Pro 结合使用 Python 的方式与包括 ArcGIS Desktop、ArcGIS Server 以及 ArcGIS Engine 在内的其他 ArcGIS 产品不同。 地理处理工具针对 Pro 分析工具可用于突出显示任何妨碍 Python 代码或基于 Python 的地理处
阅读全文
摘要:import arcpy # Create a Describe object from the GDB table. # desc = arcpy.Describe(r"C:\Users\dell\Documents\ArcGIS\Default.gdb\dltb") # Print GDB Table properties # print "%-22s %s" % ("AliasName...
阅读全文
摘要:import xlrd # must init xlrd import arcpy # param arcpy.env.workspace = r"F:\note\python\ArcPy" #workspace excelPath = r"test.xlsx" # excel file path excelTableIndex = 0 # excel's table index outNa...
阅读全文
摘要:import arcpy mxd = arcpy.mapping.MapDocument("current") lyr = arcpy.mapping.ListLayers(mxd)[0] lyr.showLabels = True lyr.labelClasses[0].expression ="[Name]" arcpy.RefreshActiveView() arcpy.RefreshT...
阅读全文
摘要:import arcpy mxd = arcpy.mapping.MapDocument("current") lyr = arcpy.mapping.ListLayers(mxd)[0] if lyr.symbologyType == "UNIQUE_VALUES": lyr.symbology.valueField = "NAME" lyr.symbology.addAllValu...
阅读全文
摘要:mxd.pageSizePageSize(width=21.59004318008636, height=27.940055880111764)
阅读全文
摘要:python 数字转字符保留几位小数 by gisoracle
阅读全文
摘要:arcgis python 获得表字段的唯一值
阅读全文
摘要:workspace:C:\Users\dell\Documents\ArcGIS\Default.gdb\ddf inPath:c:\users\dell\documents\arcgis\default.gdb\ddf\szfile:szextension:baseName:szName:szda
阅读全文