<?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 Re: Extract Multi Values to Points: correct values in GUI, incorrect values with Pyth in Geoprocessing Questions</title>
    <link>https://community.esri.com/t5/geoprocessing-questions/extract-multi-values-to-points-correct-values-in/m-p/304894#M10543</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;BLOCKQUOTE class="jive-quote"&gt;Haha, I just thought of a workaround and googled to see if somebody already implemented it in python. Doing this, I found this:&lt;BR /&gt;&lt;BR /&gt;&lt;A href="http://support.esri.com/fr/knowledgebase/techarticles/detail/41145"&gt;http://support.esri.com/fr/knowledgebase/techarticles/detail/41145&lt;/A&gt;&lt;BR /&gt;&lt;BR /&gt;This doesn't seem to be &lt;SPAN style="font-style:italic;"&gt;exactly&lt;/SPAN&gt; the same bug, but it comes pretty close and the workaround should work.&lt;/BLOCKQUOTE&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;The bug referenced above is:&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;A href="http://support.esri.com/en/bugs/nimbus/TklNMDg1MTI4"&gt;#NIM085128 - The Extract Multi Values to Points tool reports only the first band and repeats the value for subsequent bands at 10.1, when the input is a multiband raster.&lt;/A&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Reportedly fixed in "10.2.1" ie when 10.2 SP1 comes out in a few months. Report those bugs!&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Tue, 03 Sep 2013 16:50:03 GMT</pubDate>
    <dc:creator>curtvprice</dc:creator>
    <dc:date>2013-09-03T16:50:03Z</dc:date>
    <item>
      <title>Extract Multi Values to Points: correct values in GUI, incorrect values with Python</title>
      <link>https://community.esri.com/t5/geoprocessing-questions/extract-multi-values-to-points-correct-values-in/m-p/304888#M10537</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;Hello,&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;I just ran into a strange problem, which surely has a logical explanation and an easy workaround, but I just can't seem to find it.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Let's assume I have a raster "raster1.tif" (Pixel type: unsigned integer, Pixel depth: 8 bit, 6 bands) and a point shapefile "points.shp". Both layers have the same projection.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;I now want to extract point values of raster1 at locations specified by "points". I can do this in the GUI with the Extract Multi Values to Point-Tool and the result is as expected. For example, band 1 of "raster1.tif" has values in a range between 60 and 100, and points.shp has a column called "b1_raster1" with a range of 70-90. &lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;However, I need to do this in Python. I write the corresponding code and execute it. No errors are given. However, when I check the values in points.shp, the column "b1_raster1" has values in a range between 9-12.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Here's the python code:&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;PRE class="plain" name="code"&gt; 
in_shp = "points.shp"
in_raster = "raster1.tif"
ExtractMultiValuesToPoints(in_shp, in_raster, "NONE")
&lt;/PRE&gt;&lt;DIV style="display:none;"&gt; &lt;/DIV&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;I'd be grateful for any input. &lt;span class="lia-unicode-emoji" title=":slightly_smiling_face:"&gt;🙂&lt;/span&gt;&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 02 Sep 2013 15:12:39 GMT</pubDate>
      <guid>https://community.esri.com/t5/geoprocessing-questions/extract-multi-values-to-points-correct-values-in/m-p/304888#M10537</guid>
      <dc:creator>Joffreybaratheon</dc:creator>
      <dc:date>2013-09-02T15:12:39Z</dc:date>
    </item>
    <item>
      <title>Re: Extract Multi Values to Points: correct values in GUI, incorrect values with Pyth</title>
      <link>https://community.esri.com/t5/geoprocessing-questions/extract-multi-values-to-points-correct-values-in/m-p/304889#M10538</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;BLOCKQUOTE class="jive-quote"&gt; Let's assume I have a raster "raster1.tif" (Pixel type: unsigned integer, Pixel depth: 8 bit,&amp;nbsp;&amp;nbsp; &lt;STRONG style="color: &amp;quot;#0000FF&amp;quot;;"&gt;6 bands&lt;/STRONG&gt;) and a point shapefile "points.shp". &lt;/BLOCKQUOTE&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;I think the multiband raster may be your issue. To specify the band you want, you need to specify its full path (the syntax varies by raster data type). For example:&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;PRE class="lia-code-sample line-numbers language-none"&gt; 
in_shp = "points.shp"
in_raster = "raster1.tif/Band_1"
ExtractMultiValuesToPoints(in_shp, in_raster, "NONE")
&lt;/PRE&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;The easiest way to find path for the band you want is to browse the raster in the Catalog window.&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sat, 11 Dec 2021 14:35:55 GMT</pubDate>
      <guid>https://community.esri.com/t5/geoprocessing-questions/extract-multi-values-to-points-correct-values-in/m-p/304889#M10538</guid>
      <dc:creator>curtvprice</dc:creator>
      <dc:date>2021-12-11T14:35:55Z</dc:date>
    </item>
    <item>
      <title>Re: Extract Multi Values to Points: correct values in GUI, incorrect values with Pyth</title>
      <link>https://community.esri.com/t5/geoprocessing-questions/extract-multi-values-to-points-correct-values-in/m-p/304890#M10539</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;BLOCKQUOTE class="jive-quote"&gt;I think the multiband raster may be your issue.&amp;nbsp; To specify the band you want, you need to specify its full path (the syntax varies by raster data type). For example:&lt;BR /&gt;&lt;BR /&gt;&lt;PRE class="lia-code-sample line-numbers language-none"&gt; 
in_shp = "points.shp"
in_raster = "raster1.tif/Band_1"
ExtractMultiValuesToPoints(in_shp, in_raster, "NONE")
&lt;/PRE&gt;&lt;BR /&gt;&lt;BR /&gt;The easiest way to find path for the band you want is to browse the raster in the Catalog window.&lt;/BLOCKQUOTE&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;I will test this tomorrow when I'm at work.&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;However, the ArcGIS help about the Extract Multi Values to Points-Toll says:&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;"Any combination of rasters (single band or multiband) can be specified as input."&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;and:&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;"When the input is a multiband raster, a field will be added for all bands with a "b1_, b2_, �?�bn" prefix added to the name of the output field denoting the band number."&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Also, in the GUI, I select the multiband raster as input, not individual bands, and it works fine.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;But I'll still try it tomorrow. &lt;span class="lia-unicode-emoji" title=":winking_face:"&gt;😉&lt;/span&gt;&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sat, 11 Dec 2021 14:35:58 GMT</pubDate>
      <guid>https://community.esri.com/t5/geoprocessing-questions/extract-multi-values-to-points-correct-values-in/m-p/304890#M10539</guid>
      <dc:creator>Joffreybaratheon</dc:creator>
      <dc:date>2021-12-11T14:35:58Z</dc:date>
    </item>
    <item>
      <title>Re: Extract Multi Values to Points: correct values in GUI, incorrect values with Pyth</title>
      <link>https://community.esri.com/t5/geoprocessing-questions/extract-multi-values-to-points-correct-values-in/m-p/304891#M10540</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;These tools (Extract Values to Points and Extract Multi Values To Points, Sample) have a history of being flakey from 9.x to the present. &lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;My theory is there are a lot of ways for these seemingly simple tools to not work right, given all the raster formats, project on the fly etc., and since there are at least three tools that use the same thing, users don't report, and the bugs persist.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;So, if this turns out to be a bug, please report it!&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 02 Sep 2013 17:32:14 GMT</pubDate>
      <guid>https://community.esri.com/t5/geoprocessing-questions/extract-multi-values-to-points-correct-values-in/m-p/304891#M10540</guid>
      <dc:creator>curtvprice</dc:creator>
      <dc:date>2013-09-02T17:32:14Z</dc:date>
    </item>
    <item>
      <title>Re: Extract Multi Values to Points: correct values in GUI, incorrect values with Pyth</title>
      <link>https://community.esri.com/t5/geoprocessing-questions/extract-multi-values-to-points-correct-values-in/m-p/304892#M10541</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;So, I made a few more tests and the results are very inconsistent...&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;PRE class="lia-code-sample line-numbers language-none"&gt;
in_raster = ["raster_a.tif", "raster_b.tif", "raster_c.tif", "raster_d.tif", "raster1.tif"]
ExtractMultiValuesToPoints(in_shp, in_raster, "NONE")&lt;/PRE&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;-&amp;gt; "raster_a.tif" - "raster_d.tif" are floating points, and the values in points.shp seem to be correct for those raster.&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;For "raster1.tif" (integer), all bands have wrong values as described in my original post.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;PRE class="lia-code-sample line-numbers language-none"&gt;
in_raster = "raster1.tif"
ExtractMultiValuesToPoints(in_shp, in_raster, "NONE")&lt;/PRE&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;-&amp;gt; The first 4 bands of "raster1.tif" have correct values in "points.shp", however band 5 and 6 have wrong values.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;PRE class="lia-code-sample line-numbers language-none"&gt;
in_raster = "raster1.tif/Band_6"
ExtractMultiValuesToPoints(in_shp, in_raster, "NONE")&lt;/PRE&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;-&amp;gt; Correct values for band 6 of "raster.tif".&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;So, it seems indeed that this tool is quite buggy, thanks for the pointers in the right direction! &lt;span class="lia-unicode-emoji" title=":slightly_smiling_face:"&gt;🙂&lt;/span&gt;&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sat, 11 Dec 2021 14:36:00 GMT</pubDate>
      <guid>https://community.esri.com/t5/geoprocessing-questions/extract-multi-values-to-points-correct-values-in/m-p/304892#M10541</guid>
      <dc:creator>Joffreybaratheon</dc:creator>
      <dc:date>2021-12-11T14:36:00Z</dc:date>
    </item>
    <item>
      <title>Re: Extract Multi Values to Points: correct values in GUI, incorrect values with Pyth</title>
      <link>https://community.esri.com/t5/geoprocessing-questions/extract-multi-values-to-points-correct-values-in/m-p/304893#M10542</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;Haha, I just thought of a workaround and googled to see if somebody already implemented it in python. Doing this, I found this:&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;A href="http://support.esri.com/fr/knowledgebase/techarticles/detail/41145"&gt;http://support.esri.com/fr/knowledgebase/techarticles/detail/41145&lt;/A&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;This doesn't seem to be &lt;/SPAN&gt;&lt;SPAN style="font-style:italic;"&gt;exactly&lt;/SPAN&gt;&lt;SPAN&gt; the same bug, but it comes pretty close and the workaround should work.&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 03 Sep 2013 08:56:42 GMT</pubDate>
      <guid>https://community.esri.com/t5/geoprocessing-questions/extract-multi-values-to-points-correct-values-in/m-p/304893#M10542</guid>
      <dc:creator>Joffreybaratheon</dc:creator>
      <dc:date>2013-09-03T08:56:42Z</dc:date>
    </item>
    <item>
      <title>Re: Extract Multi Values to Points: correct values in GUI, incorrect values with Pyth</title>
      <link>https://community.esri.com/t5/geoprocessing-questions/extract-multi-values-to-points-correct-values-in/m-p/304894#M10543</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;BLOCKQUOTE class="jive-quote"&gt;Haha, I just thought of a workaround and googled to see if somebody already implemented it in python. Doing this, I found this:&lt;BR /&gt;&lt;BR /&gt;&lt;A href="http://support.esri.com/fr/knowledgebase/techarticles/detail/41145"&gt;http://support.esri.com/fr/knowledgebase/techarticles/detail/41145&lt;/A&gt;&lt;BR /&gt;&lt;BR /&gt;This doesn't seem to be &lt;SPAN style="font-style:italic;"&gt;exactly&lt;/SPAN&gt; the same bug, but it comes pretty close and the workaround should work.&lt;/BLOCKQUOTE&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;The bug referenced above is:&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;A href="http://support.esri.com/en/bugs/nimbus/TklNMDg1MTI4"&gt;#NIM085128 - The Extract Multi Values to Points tool reports only the first band and repeats the value for subsequent bands at 10.1, when the input is a multiband raster.&lt;/A&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Reportedly fixed in "10.2.1" ie when 10.2 SP1 comes out in a few months. Report those bugs!&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 03 Sep 2013 16:50:03 GMT</pubDate>
      <guid>https://community.esri.com/t5/geoprocessing-questions/extract-multi-values-to-points-correct-values-in/m-p/304894#M10543</guid>
      <dc:creator>curtvprice</dc:creator>
      <dc:date>2013-09-03T16:50:03Z</dc:date>
    </item>
    <item>
      <title>Re: Extract Multi Values to Points: correct values in GUI, incorrect values with Pyth</title>
      <link>https://community.esri.com/t5/geoprocessing-questions/extract-multi-values-to-points-correct-values-in/m-p/304895#M10544</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;Hello, Joffrey.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;This is Juan here, from the Spatial Analyst team at Esri.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;I'm sorry you're having problems with this tool. &lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Is it possible for you to provide me a simplified dataset and scenario that replicates the problem?&amp;nbsp; With that, I will test it against the most current version of the software to make sure it has been resolved.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;If you would, can you please enable the Messaging functionality so we can discuss this further?&amp;nbsp; To do that, when you are logged in with your Global account, click on &lt;/SPAN&gt;&lt;SPAN style="font-style:italic;"&gt;Settings&lt;/SPAN&gt;&lt;SPAN&gt;, then in the &lt;/SPAN&gt;&lt;SPAN style="font-style:italic;"&gt;My Settings&lt;/SPAN&gt;&lt;SPAN&gt; section, click on &lt;/SPAN&gt;&lt;SPAN style="font-style:italic;"&gt;User Control Panel&lt;/SPAN&gt;&lt;SPAN&gt;.&amp;nbsp; In the &lt;/SPAN&gt;&lt;SPAN style="font-style:italic;"&gt;Messaging &amp;amp; Notification&lt;/SPAN&gt;&lt;SPAN&gt; section, change the &lt;/SPAN&gt;&lt;SPAN style="font-style:italic;"&gt;Private Messaging&lt;/SPAN&gt;&lt;SPAN&gt; option to On.&amp;nbsp; Once that is done, please send me a message so we can get the details for delivering the test data sorted out.&amp;nbsp; &lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Thanks, &lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Juan&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 04 Sep 2013 17:06:48 GMT</pubDate>
      <guid>https://community.esri.com/t5/geoprocessing-questions/extract-multi-values-to-points-correct-values-in/m-p/304895#M10544</guid>
      <dc:creator>JuanLaguna</dc:creator>
      <dc:date>2013-09-04T17:06:48Z</dc:date>
    </item>
    <item>
      <title>Re: Extract Multi Values to Points: correct values in GUI, incorrect values with Pyth</title>
      <link>https://community.esri.com/t5/geoprocessing-questions/extract-multi-values-to-points-correct-values-in/m-p/304896#M10545</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;Hi Juan,&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;I just enabled &lt;/SPAN&gt;&lt;SPAN style="font-style:italic;"&gt;Messaging&lt;/SPAN&gt;&lt;SPAN&gt; in my account, and I could send you my data if you tell me your preferred form of delivery (is a dropbox link ok?).&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 11 Sep 2013 07:53:16 GMT</pubDate>
      <guid>https://community.esri.com/t5/geoprocessing-questions/extract-multi-values-to-points-correct-values-in/m-p/304896#M10545</guid>
      <dc:creator>Joffreybaratheon</dc:creator>
      <dc:date>2013-09-11T07:53:16Z</dc:date>
    </item>
  </channel>
</rss>

