在arcgis10.1中使用Python制作自定义工具箱

2024-09-30 10:34:34 发布

您现在位置:Python中文网/ 问答频道 /正文

我想创建一个参数框作为输入,代码是:

param = arcpy.Parameter(
    displayName="TARIKH",
    name="date_feature",
    datatype="Date",
    parameterType="Required",
    direction="Input")

输出如下:

    out_path = "C:/Last"
    geometry_type = "POLYGON"
    out_name = #DATEINPUT
    result = arcpy.CreateFeatureclass_management(out_path, out_name,geometry_type)

新featureclass的名称基于参数上输入的数据


Tags: path代码name参数dateparameterparamtype

热门问题