I am using ArcGIS 10.

I am trying to extract values to point using ArcPY but getting error as

Runtime error : 'module' object has no attribute 'ExtractValuesToPoints_sa'

Below is what I am trying

import arcpy
from arcpy import env
from arcpy.sa import *


arcpy.ExtractValuesToPoints_sa(shape, raster, output,"NONE","VALUE_ONLY")

I can do it without using ArcPy, but here I am learning it.


I resolved it..

Python snippet which I copied from results as

arcpy.ExtractValuesToPoints_sa(shape, raster, output,"NONE","VALUE_ONLY")

should be replaced by

ExtractValuesToPoints(shape, raster, output,"NONE","VALUE_ONLY")

Since, I have already imported arcpy and arcpy.sa we need not to call it again in arcpy.ExtractValuesToPoints_sa.

I tried to explained it based on my understanding. As I posted this I thought I should answer it.

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.