Py学习  »  Python

ArcGIS Python 脚本界面控制

GIS前沿 • 5 小时前 • 16 次点击  

import arcpy
class ToolValidator(object):
"""Class for validating a tool's parameter values and controlling
  the behavior of the tool's dialog."""

def __init__(self):
"""Setup arcpy and the list of tool parameters."""
self.params = arcpy.GetParameterInfo()

def initializeParameters(self):
"""Refine the properties of a tool's parameters.  This method is
    called when the tool is opened."""
return

  def updateParameters(self):
if self.params[0].value:
self.params[1].value = self.params[0].value + "_ok"
return

  def updateMessages(self):
"""Modify the messages created by internal validation for each tool
    parameter.  This method is called after internal validation."""
return


编辑后一定要应用

来源:GISAI


- END -




历史干货

奥维批量导入TXT控制点坐标套合卫星地图
国家标准0元下载时代来了!25年测绘地理信息相关国家标准PDF直接下载
软件下载 |点云革命,重塑现实!大疆智模融入 点云处理能力,DEM即刻获取
你要的CORS账号,价格打下来了!只要9毛
空域申请 | 无人机航测UOM系统合法飞行申请流程
天地图上看实景三维

Python社区是高质量的Python/Django开发社区
本文地址:http://www.python88.com/topic/203287