<?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 Working with ExtractMultiValuesToPoints in python in Geoprocessing Questions</title>
    <link>https://community.esri.com/t5/geoprocessing-questions/working-with-extractmultivaluestopoints-in-python/m-p/227640#M7881</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;I am trying to incorporate ExtractMultiValuesToPoints tool into a workflow I am automating. I would like to have the script build the input parameters dynamically so that I can work with any number of raster inputs.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;The resulting inRasterList variable I have created looks like this:&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;[["elev_gridElev_L1.tif", "elev_gridElev_L1"], ["elev_gridElev_L2.tif", "elev_gridElev_L2"], ["elev_gridElev_L3.tif", "elev_gridElev_L3"], ["elev_gridElev_L4.tif", "elev_gridElev_L4"]]&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;When I copy and paste this string into the tool call it performs as expected:&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;ExtractMultiValuesToPoints(pointFile, [["elev_gridElev_L1.tif", "elev_gridElev_L1"], ["elev_gridElev_L2.tif", "elev_gridElev_L2"], ["elev_gridElev_L3.tif", "elev_gridElev_L3"], ["elev_gridElev_L4.tif", "elev_gridElev_L4"]], "NONE")&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;If I replace the inRasterList with a variable name it fails with the following error:&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;inRasterList = [["elev_gridElev_L1.tif", "elev_gridElev_L1"], ["elev_gridElev_L2.tif", "elev_gridElev_L2"], ["elev_gridElev_L3.tif", "elev_gridElev_L3"], ["elev_gridElev_L4.tif", "elev_gridElev_L4"]]&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;ExtractMultiValuesToPoints(pointFile, inRasterList, "NONE")&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;arcgisscripting.ExecuteError: Failed to execute. Parameters are not valid.&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;ERROR 000859: The required parameter Input rasters is empty, or is not the type of Extract Values.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;If anyone recognizes this problem or has any suggestions it would be greatly appreciated. If I can't solve this I will have to abandon the use of this tool in my final product.&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Fri, 12 Aug 2011 15:06:37 GMT</pubDate>
    <dc:creator>AllWeatherHeather</dc:creator>
    <dc:date>2011-08-12T15:06:37Z</dc:date>
    <item>
      <title>Working with ExtractMultiValuesToPoints in python</title>
      <link>https://community.esri.com/t5/geoprocessing-questions/working-with-extractmultivaluestopoints-in-python/m-p/227640#M7881</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;I am trying to incorporate ExtractMultiValuesToPoints tool into a workflow I am automating. I would like to have the script build the input parameters dynamically so that I can work with any number of raster inputs.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;The resulting inRasterList variable I have created looks like this:&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;[["elev_gridElev_L1.tif", "elev_gridElev_L1"], ["elev_gridElev_L2.tif", "elev_gridElev_L2"], ["elev_gridElev_L3.tif", "elev_gridElev_L3"], ["elev_gridElev_L4.tif", "elev_gridElev_L4"]]&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;When I copy and paste this string into the tool call it performs as expected:&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;ExtractMultiValuesToPoints(pointFile, [["elev_gridElev_L1.tif", "elev_gridElev_L1"], ["elev_gridElev_L2.tif", "elev_gridElev_L2"], ["elev_gridElev_L3.tif", "elev_gridElev_L3"], ["elev_gridElev_L4.tif", "elev_gridElev_L4"]], "NONE")&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;If I replace the inRasterList with a variable name it fails with the following error:&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;inRasterList = [["elev_gridElev_L1.tif", "elev_gridElev_L1"], ["elev_gridElev_L2.tif", "elev_gridElev_L2"], ["elev_gridElev_L3.tif", "elev_gridElev_L3"], ["elev_gridElev_L4.tif", "elev_gridElev_L4"]]&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;ExtractMultiValuesToPoints(pointFile, inRasterList, "NONE")&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;arcgisscripting.ExecuteError: Failed to execute. Parameters are not valid.&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;ERROR 000859: The required parameter Input rasters is empty, or is not the type of Extract Values.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;If anyone recognizes this problem or has any suggestions it would be greatly appreciated. If I can't solve this I will have to abandon the use of this tool in my final product.&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 12 Aug 2011 15:06:37 GMT</pubDate>
      <guid>https://community.esri.com/t5/geoprocessing-questions/working-with-extractmultivaluestopoints-in-python/m-p/227640#M7881</guid>
      <dc:creator>AllWeatherHeather</dc:creator>
      <dc:date>2011-08-12T15:06:37Z</dc:date>
    </item>
    <item>
      <title>Re: Working with ExtractMultiValuesToPoints in python</title>
      <link>https://community.esri.com/t5/geoprocessing-questions/working-with-extractmultivaluestopoints-in-python/m-p/227641#M7882</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;Ahhh, I figured it out!&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;You need to create a "Value list" as the raster input.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;inRasterList = arcpy.ValueTable(2)&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;then in a loop add the rasters you are interested in:&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;inRasterList.addRow(var1 + var2)&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sun, 14 Aug 2011 13:55:30 GMT</pubDate>
      <guid>https://community.esri.com/t5/geoprocessing-questions/working-with-extractmultivaluestopoints-in-python/m-p/227641#M7882</guid>
      <dc:creator>AllWeatherHeather</dc:creator>
      <dc:date>2011-08-14T13:55:30Z</dc:date>
    </item>
  </channel>
</rss>

