Show Navigation | Hide Navigation
You are here:
Geoprocessing tool reference > Conversion toolbox > From Raster toolset > Tools

Raster To Point (Conversion)

Release 9.3
Last modified November 21, 2008
E-mail This Topic Printable Version Give Us Feedback

Print all topics in : "Tools"


Related Topics

Converts a raster dataset to point features.


Usage tips

Command line syntax
An overview of the Command Line window
RasterToPoint_conversion <in_raster> <out_point_features> {raster_field}

Parameter Explanation Data Type
<in_raster>

The input raster dataset. The raster can be integer or floating point.

Composite Geodataset
<out_point_features>

The output feature class that will contain the converted points.

Feature Class
{raster_field}

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.

Field
Data types for geoprocessing tool parameters


Command line example

RasterToPoint_conversion buildings.tif building_locations Values

Scripting syntax
About getting started with writing geoprocessing scripts
RasterToPoint_conversion (in_raster, out_point_features, raster_field)

Parameter Explanation Data Type
in_raster (Required)

The input raster dataset. The raster can be integer or floating point.

Composite Geodataset
out_point_features (Required)

The output feature class that will contain the converted points.

Feature Class
raster_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.

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()

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

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

except:
    # 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.

Please visit the Feedback page to comment or give suggestions on ArcGIS Desktop Help.
Copyright © Environmental Systems Research Institute, Inc.