Raster To Point (Conversion)

Converts a raster dataset to point features.

Usage tips

Command line and Scripting


RasterToPoint_conversion (in_raster, out_point_features, raster_field)
Parameter Explanation Datatype
Input raster (Required)

The input raster dataset.

The raster can be integer or floating point.

Composite Geodataset
Output point features (Required)

The output feature class that will contain the converted points.

Feature Class
Field (Optional)

The field to assign values from the cells in the input raster to the point features in the output dataset.

It can be an integer, floating, point or string field.

Data types for geoprocessing tool parameters

Script Example

# RasterToPoint_sample.py
# Description: 
#   Converts a raster to point features.
# Requirements: None
# Author: ESRI
# Date: Oct 20, 2005

# Import system modules
import arcgisscripting

# Create the Geoprocessor object
gp = arcgisscripting.create()

    # Set local variables
    InRaster = "C:/data/raster1"
    OutPointFeatures = "C:/data/raster2point.shp"

    # Process: RasterToPoint_conversion
    gp.RasterToPoint_conversion(InRaster, OutPointFeatures)

    # Print error message if an error occurs
    print gp.GetMessages()

Map Algebra syntax

See GridPointShape

The Spatial Analyst extension must be present to use this link.

ArcObjects syntax

See RasterDataToPointFeatureData

The Spatial Analyst extension must be present to use this link.

See Also

  • Feature to Raster (Conversion)
  • Raster to Polygon (Conversion)