The next step is to define the tool's parameters. Parameters appear on the tool's dialog box and allow the user to choose input data, output locations, and other options. When the tool is run, the parameter values are sent to the tool's Python script. The script retrieves the p...
arcpy.CalculateField_management(out_table, timeValueFieldName, expression,"PYTHON_9.3", codeBlock)return 开发者ID:Esri,项目名称:python-toolbox-for-rapid,代码行数:22,代码来源:CreateDischargeTable.py 示例3: create_feature_class ▲点赞 6▼ # 需要导入模块: import arcpy [as 别名]# 或者: from arc...
import arcpy import time import urllib # Add a toolbox from a server # arcpy.ImportToolbox(http://flame7/arcgis/services;GP/BufferByVal, mytools) # Use GetParameterValue to get a featureset object with the default schema of the # first parameter of the tool bufferpoints # inFeatureSet ...
output dataset. A print statement will display the string # representation of the output.# result = arcpy.GetCount_management("roads")resultValue = result.getOutput(0)# The result object's getOutput method returns values as a # unicode string. To convert to a different Python type, use ...
下例中,使用了 ImportToolbox 函数,以便使用 Python 访问自定义工具箱中包含的工具。导入该工具箱后,即能够以 arcpy.工具名称_别名 形式访问自定义工具。 arcpy.ImportToolbox(c:/mytools/geometrytools.tbx) arcpy.CreateRegularPolygons_geometry( 通过 ArcPy 站点包访问某个工具时,该工具所在的工具箱的别名是...
Vous allez créer la boîte à outils et enregistrer le fichierPython.pyde l'outil de script dans ce dossier. Cliquez avec le bouton droit sur la connexion au dossier et sélectionnezNew (Nouveau)>Toolbox (.atbx) (Boîte à outils (.atbx)). ...
Vous allez créer la boîte à outils et enregistrer le fichier Python .py de l'outil de script dans ce dossier. Cliquez avec le bouton droit sur la connexion au dossier et sélectionnez New (Nouveau) > Toolbox (.atbx) (Boîte à outils (.atbx)). Un fichier de boîte à...