<?xml version="1.0" encoding="UTF-8"?>
<rss xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#" xmlns:taxo="http://purl.org/rss/1.0/modules/taxonomy/" version="2.0">
  <channel>
    <title>topic Extract Values to Points in ArcObjects SDK Questions</title>
    <link>https://community.esri.com/t5/arcobjects-sdk-questions/extract-values-to-points/m-p/312378#M8147</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;I'm trying to write some code to automate some geoprocessing.&amp;nbsp; I'm familiar with VB but mostly in a database environment or in AutoCAD.&amp;nbsp; I've used ArcMap quite a bit but am not real familiar with writing code using the ArcObjects object model.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;So far I've been able select features from a point shapefile, Interpolate the points (IDW) to create a raster and save the raster to file (grid).&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Now I'd like to write the grid values to point features in another point shape file, using the Extract Values to Points geoprocessing operation.&amp;nbsp; I've tried using this example code from the ArcMap help, but it doesn't recognize the "readRasterFromDisk" function.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Any help on how to accomplish this operation would be appreciated.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Dim pExtractionOp As IExtractionOp2&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;Set pExtractionOp = New RasterExtractionOp&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;' Get raster dataset&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;Dim pRas01 As IRaster&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;Set pRas01 = readRasterFromDisk("c:\data\myRaster1")&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Dim pFC01 As IFeatureClass&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;Set pFC01 = readPointFeatureFromDisk("c:\data\myPts.shp")&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;' Call extraction method&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;Dim pOutGeoDS As IGeoDataset&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;Set pOutGeoDS = pExtractionOp.ExtractValuesToPoints(pFC01, pRas01, True)&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Mon, 12 Apr 2010 16:08:52 GMT</pubDate>
    <dc:creator>ShaneDolph</dc:creator>
    <dc:date>2010-04-12T16:08:52Z</dc:date>
    <item>
      <title>Extract Values to Points</title>
      <link>https://community.esri.com/t5/arcobjects-sdk-questions/extract-values-to-points/m-p/312378#M8147</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;I'm trying to write some code to automate some geoprocessing.&amp;nbsp; I'm familiar with VB but mostly in a database environment or in AutoCAD.&amp;nbsp; I've used ArcMap quite a bit but am not real familiar with writing code using the ArcObjects object model.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;So far I've been able select features from a point shapefile, Interpolate the points (IDW) to create a raster and save the raster to file (grid).&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Now I'd like to write the grid values to point features in another point shape file, using the Extract Values to Points geoprocessing operation.&amp;nbsp; I've tried using this example code from the ArcMap help, but it doesn't recognize the "readRasterFromDisk" function.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Any help on how to accomplish this operation would be appreciated.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Dim pExtractionOp As IExtractionOp2&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;Set pExtractionOp = New RasterExtractionOp&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;' Get raster dataset&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;Dim pRas01 As IRaster&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;Set pRas01 = readRasterFromDisk("c:\data\myRaster1")&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Dim pFC01 As IFeatureClass&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;Set pFC01 = readPointFeatureFromDisk("c:\data\myPts.shp")&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;' Call extraction method&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;Dim pOutGeoDS As IGeoDataset&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;Set pOutGeoDS = pExtractionOp.ExtractValuesToPoints(pFC01, pRas01, True)&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 12 Apr 2010 16:08:52 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcobjects-sdk-questions/extract-values-to-points/m-p/312378#M8147</guid>
      <dc:creator>ShaneDolph</dc:creator>
      <dc:date>2010-04-12T16:08:52Z</dc:date>
    </item>
  </channel>
</rss>

