Label | Explanation | Data Type |
Input Raster | The raster that will be processed. | Raster Layer; Mosaic Layer |
Output Feature Class | The feature class that will be produced. | Feature Class |
Output VIP table (Optional) | The histogram table that will be created when VIP Histogram is specified for the Thinning Method parameter. The histogram table that will be created when VIP_HISTOGRAM is specified for the method parameter. | Table |
Thinning Method (Optional) | Specifies the thinning method that will be applied to the input raster to select a subset of cells that will be exported to the multipoint feature class.
| String |
Kernel Method (Optional) | Specifies the selection method that will be used in each kernel neighborhood when kernel thinning is applied on the input raster.
| String |
Z Factor (Optional) | The factor by which z-values will be multiplied. This is typically used to convert z linear units to match x,y linear units. The default is 1, which leaves elevation values unchanged. This parameter is not available if the spatial reference of the input surface has a z-datum with a specified linear unit. | Double |
Thinning Value
(Optional) | The thinning value associated with the Thinning Method parameter value.
| Double |
Summary
Converts raster cell centers to 3D multipoint features with z-values that reflect the raster cell value.
Usage
Consider using this tool if you have raster elevation data and require access to the functional capabilities provided by a triangulated surface, as multipoint features can be loaded into a TIN or terrain dataset.
When the Input Raster parameter value is very large in size, consider using the Thinning Method parameter to reduce the number of cells that are exported to the multipoint feature class. The options are as follows:
- Z Tolerance—Thin cells while preserving vertical accuracy.
- Kernel—Thin cells while controlling the horizontal sample distance.
- VIP—Use this option if the resulting multipoints will be primarily applied for visualization applications. This method is relatively fast, outputs a predictable number of points, and identifies local peaks and pits. However, it is sensitive to noise and may ignore topographic features that span an extent that is larger than the 3 cell by 3 cell area.
- VIP Histogram—Use this option as an initial step to apply the VIP option, as it produces a histogram of the significance scores reflecting the number of points that will be selected with each incrementing percentile value.
Parameters
arcpy.ddd.RasterToMultipoint(in_raster, out_feature_class, {out_vip_table}, {method}, {kernel_method}, {z_factor}, {thinning_value})
Name | Explanation | Data Type |
in_raster | The raster that will be processed. | Raster Layer; Mosaic Layer |
out_feature_class | The feature class that will be produced. | Feature Class |
out_vip_table (Optional) | The histogram table that will be created when VIP Histogram is specified for the Thinning Method parameter. The histogram table that will be created when VIP_HISTOGRAM is specified for the method parameter. | Table |
method (Optional) | Specifies the thinning method that will be applied to the input raster to select a subset of cells that will be exported to the multipoint feature class.
| String |
kernel_method (Optional) | Specifies the selection method that will be used in each kernel neighborhood when kernel thinning is applied on the input raster.
| String |
z_factor (Optional) | The factor by which z-values will be multiplied. This is typically used to convert z linear units to match x,y linear units. The default is 1, which leaves elevation values unchanged. This parameter is not available if the spatial reference of the input surface has a z-datum with a specified linear unit. | Double |
thinning_value (Optional) | The thinning value associated with the method parameter value.
| Double |
Code sample
The following sample demonstrates the use of this tool in the Python window.
arcpy.env.workspace = "C:/data"
arcpy.ddd.RasterToMultipoint("elevation.tif", out_vip_table="elev_VIP.dbf",
method="VIP_HISTOGRAM", z_factor=1)
The following sample demonstrates the use of this tool in a stand-alone Python script.
'''*********************************************************************
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
#Execute RasterToMultipoint
arcpy.ddd.RasterToMultipoint(raster, "",outTbl, method, "", zfactor)
else:
print("There are no IMG rasters in the " + env.workspace + " directory.")