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.
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.
'''*********************************************************************
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.")