Skip To Content

Raster to Point


Converts a raster dataset to point features.


  • For each cell of the input raster dataset, a point will be created in the output feature class. The points will be positioned at the centers of cells that they represent. The NoData cells will not be transformed into points.

  • The input raster can have any cell size and may be any valid raster dataset.

  • The Field parameter allows you to choose which attribute field of the input raster dataset will become an attribute in the output feature class. If a field is not specified, the cell values of the input raster (the VALUE field) will become a column with the heading Grid_code in the attribute table of the output feature class.

  • If Extent is specified in the environment setting, and the lower-left corner of the output extent does not match with any cell corner of the input raster, in the processing, a shift of the cell alignment of the input raster will be performed to match the specified extent. This shift will trigger a resampling of the input raster using the Nearest Neighbor method. Consequently, the output features will be shifted as well, and as a result, the output features may not overlay the original input raster exactly. You can avoid this shift by using the input raster as the Snap Raster in the environment.


RasterToPoint_conversion (in_raster, out_point_features, {raster_field})
ParameterExplanationData Type

The input raster dataset.

The raster can be integer or floating-point type.

Raster Layer

The output feature class that will contain the converted points.

Feature Class

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

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


Code sample

RasterToPoint example (Python window)

Converts a raster dataset to point features.

import arcpy
from arcpy import env
env.workspace = "C:/data"
arcpy.RasterToPoint_conversion("source.img", "c:/output/source.shp", "VALUE")
RasterToPoint example (stand-alone script)

Converts a raster dataset to point features.

# Name:
# Description: Converts a raster dataset to point features.
# Requirements: None

# Import system modules
import arcpy
from arcpy import env

# Set environment settings
env.workspace = "C:/data"

# Set local variables
inRaster = "source.img"
outPoint = "c:/output/source.shp"
field = "VALUE"

# Execute RasterToPoint
arcpy.RasterToPoint_conversion(inRaster, outPoint, field)

Licensing information

  • ArcGIS Desktop Basic: Yes
  • ArcGIS Desktop Standard: Yes
  • ArcGIS Desktop Advanced: Yes

Related topics