<?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 Table: wrong number of pixels in ArcGIS Pro Questions</title>
    <link>https://community.esri.com/t5/arcgis-pro-questions/extract-values-to-table-wrong-number-of-pixels/m-p/1148608#M52087</link>
    <description>&lt;P&gt;Hello&lt;/P&gt;&lt;P&gt;I am iterating through a shapefile using a SearchCursor to extract the pixel values of a raster for each polygon in the shapefile using the Extract Values to Table (Geostatistical Analyst) tool. However, I noticed something strange - the number of pixel extracted for each polygon does not correspond to the right number of pixel encompassed by the polygon. I have attached a figure as example - the polygon contains 20 pixels (figure 1), however only 9 are extracted by the tool (figure 2). This is a snippet of the code I am using:&lt;/P&gt;&lt;P&gt;with arcpy.da.SearchCursor(in_features,['SHAPE@', 'FID']) as cursor:&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; for row in cursor:&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; try:&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; print('processing row '+str(row[1]))&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; arcpy.ga.ExtractValuesToTable(row[0], input_raster, workspace + 'dev')&lt;/P&gt;&lt;P&gt;Any idea of what is going on?&lt;/P&gt;</description>
    <pubDate>Mon, 28 Feb 2022 15:42:56 GMT</pubDate>
    <dc:creator>RArosio</dc:creator>
    <dc:date>2022-02-28T15:42:56Z</dc:date>
    <item>
      <title>Extract Values to Table: wrong number of pixels</title>
      <link>https://community.esri.com/t5/arcgis-pro-questions/extract-values-to-table-wrong-number-of-pixels/m-p/1148608#M52087</link>
      <description>&lt;P&gt;Hello&lt;/P&gt;&lt;P&gt;I am iterating through a shapefile using a SearchCursor to extract the pixel values of a raster for each polygon in the shapefile using the Extract Values to Table (Geostatistical Analyst) tool. However, I noticed something strange - the number of pixel extracted for each polygon does not correspond to the right number of pixel encompassed by the polygon. I have attached a figure as example - the polygon contains 20 pixels (figure 1), however only 9 are extracted by the tool (figure 2). This is a snippet of the code I am using:&lt;/P&gt;&lt;P&gt;with arcpy.da.SearchCursor(in_features,['SHAPE@', 'FID']) as cursor:&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; for row in cursor:&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; try:&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; print('processing row '+str(row[1]))&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; arcpy.ga.ExtractValuesToTable(row[0], input_raster, workspace + 'dev')&lt;/P&gt;&lt;P&gt;Any idea of what is going on?&lt;/P&gt;</description>
      <pubDate>Mon, 28 Feb 2022 15:42:56 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-pro-questions/extract-values-to-table-wrong-number-of-pixels/m-p/1148608#M52087</guid>
      <dc:creator>RArosio</dc:creator>
      <dc:date>2022-02-28T15:42:56Z</dc:date>
    </item>
  </channel>
</rss>

