In aPythontoolbox, the parameter'sdatatypeproperty is set using theParameterclass in thegetParameterInfomethod. defgetParameterInfo(self):#Define parameter definitions# First parameterparam0 = arcpy.Parameter( displayName="Input workspace", name="in_workspace", datatype="DEWorkspace", ...
https://desktop.arcgis.com/zh-cn/arcmap/10.6/analyze/creating-tools/defining-parameter-data-types-in-a-python-toolbox.htm parameterType:提供三种 parameterType 选项: 必选- 必须提供值才能执行工具。 可选- 不需要为参数提供值。 派生- 该参数只适用于输出参数(请参阅下文的方向参数)。派生的输出参数不...
# 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 = arcpy.GetParameterValue("buffe...
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 = arcpy.GetParamet...
In a script tool,parameterDependenciesis set with a list of parameter indexes; in aPythontoolbox tool,parameterDependenciesis set with a list of parameter names. Integer parameterType (Lecture et écriture) The parameter type. Required—The tool cannot be run until a value has been provided. ...
Python toolbox Value Table parameters have been enriched to support drop-downs and dependencies between columns. For advanced web map printing workflows, theupdateLayerFromJSONfunction on thearcpy.mapping.Layerclass will apply the renderer (or other layer properties) as specified in thewebmap_jsonto ...
ocean_currents = import_toolbox(ocean_currents_toolbox) Theimport_toolbox()function inspects the geoprocessing toolbox and dynamically generates a Python module containing a function for each tool within the toolbox. Invoking the function invokes the corresponding geoprocessing tool. ...
import_toolbox import_toolbox() DataFile DataFile DataFile.download() DataFile.from_dict() DataFile.from_str() DataFile.to_dict() LinearUnit LinearUnit LinearUnit.from_dict() LinearUnit.from_str() LinearUnit.to_dict() RasterData RasterData RasterData.from_dict() RasterData.to_dict() GPService...
Provide the inputs requested for your tool. ClickOKto run. Save theDataDownload.mxd. 提示: If you want to change the functions of the Extract Data and Email Task or other python scripts referenced in your document, you can make these changes and also change the model building without repub...
mmsegmentation 1.1.2 semantic segmentation toolbox and benchmark motmetrics 1.1.3 Benchmark multiple object trackers (MOT) in Python multidict 6.0.4 Key-value pairs where keys are sorted and can reoccur multiprocess 0.70.15 better multiprocessing and multithreading in python munch 2.5.0 A dot-acces...