No Thinning—No thinning will be applied. This is the default.
Z Tolerance—Only the cells that are required for maintaining a surface within a specified z-range of the input raster will be exported.
Kernel—The raster will be divided into equal-sized tiles based on the Thinning Value parameter value, and one or two cells that meet the Kernel Method parameter value will be exported.
VIP—A roving 3-cell-by-3-cell window will be used to create a three-dimensional best fit plane. Each cell is given a significance score based on its absolute deviation from this plane. A histogram of these scores is then used to determine the cells that will be exported based on the Thinning Value parameter value.
VIP Histogram—A table will be created containing the significance values and the corresponding number of points associated with those values.
String
核方法
(可选)
指定在输入栅格应用核细化时在每个核邻域中使用的选择方法。
Minimum—A point will be created at the cell with the smallest elevation value found in the kernel neighborhood. This is the default.
Maximum—A point will be created at the cell with the largest elevation value found in the kernel neighborhood.
Minimum and Maximum—Two points will be created at the cells with the smallest and largest z-values found in the kernel neighborhood.
Closest to Mean—A point will be created at the cell whose elevation value is closest to the average of the cells in the kernel neighborhood.
String
Z 因子
(可选)
Z 值将乘上的系数。 此值通常用于转换 z 线性单位来匹配 x,y 线性单位。 默认值为 1,此时高程值保持不变。 如果输入表面的空间参考具有已指定线性单位的 z 基准面,则此参数不可用。
Double
细化值
(可选)
与细化方法参数值关联的细化值。
Z 容差 -输入栅格与通过输出多点要素类创建的表面之间所允许的最大差异(z 单位)。 默认值是输入栅格 z 范围的 1/10。
NO_THIN—No thinning will be applied. This is the default.
ZTOLERANCE—Only the cells that are required for maintaining a surface within a specified z-range of the input raster will be exported.
KERNEL—The raster will be divided into equal-sized tiles based on the Thinning Value parameter value, and one or two cells that meet the Kernel Method parameter value will be exported.
VIP—A roving 3-cell-by-3-cell window will be used to create a three-dimensional best fit plane. Each cell is given a significance score based on its absolute deviation from this plane. A histogram of these scores is then used to determine the cells that will be exported based on the Thinning Value parameter value.
VIP_HISTOGRAM—A table will be created containing the significance values and the corresponding number of points associated with those values.
String
kernel_method
(可选)
指定在输入栅格应用核细化时在每个核邻域中使用的选择方法。
MIN—A point will be created at the cell with the smallest elevation value found in the kernel neighborhood. This is the default.
MAX—A point will be created at the cell with the largest elevation value found in the kernel neighborhood.
MINMAX—Two points will be created at the cells with the smallest and largest z-values found in the kernel neighborhood.
MEAN—A point will be created at the cell whose elevation value is closest to the average of the cells in the kernel neighborhood.
String
z_factor
(可选)
Z 值将乘上的系数。 此值通常用于转换 z 线性单位来匹配 x,y 线性单位。 默认值为 1,此时高程值保持不变。 如果输入表面的空间参考具有已指定线性单位的 z 基准面,则此参数不可用。
Double
thinning_value
(可选)
与 method 参数值关联的细化值。
ZTolerance—输入栅格与通过输出多点要素类创建的表面之间所允许的最大差异(z 单位)。 默认值是输入栅格 z 范围的 1/10。
'''*********************************************************************
Name: RasterToMultipoint Example
Description: This script demonstrates how to use
the RasterToMultipoint tool to create multipoint datasets
fot all IMG rasters in a target workspace.
**********************************************************************'''
# Import system modules
import arcpy
# Set default workspace
arcpy.env.workspace = "C:/data"
# Create the list of IMG rasters
rasterList = arcpy.ListRasters("*", "IMG")
# Loop the process for each raster
if rasterList:
for raster in rasterList:
# Set Local Variables
# [:-4] strips the last 4 characters (.img) from the raster name
outTbl = "VIP_" + raster[:-4] + ".dbf"
method = "VIP_HISTOGRAM"
zfactor = 1
# Run RasterToMultipoint
arcpy.ddd.RasterToMultipoint(raster, "", outTbl, method, "", zfactor)
else:
print("There are no IMG rasters in the " + arcpy.env.workspace + " directory.")