<?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: Populating Point Variable in Modelbuilder in ModelBuilder Questions</title>
    <link>https://community.esri.com/t5/modelbuilder-questions/populating-point-variable-in-modelbuilder/m-p/856213#M643</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Thanks for this! It lets me connect the Point variable to the Extract By Circle tool, but when I run the model (from the toolbox) it fails with&amp;nbsp;"ERROR 000859: The required parameter Center point is empty, or is not the type of Point." It seems that Modelbuilder cannot validate the Extract By Circle tool until Calculate Value has run, I'm guessing because Calculate Value does not have a default output like '1 1' that Extract By Circle would recognize as a point.&amp;nbsp;Is there any&amp;nbsp;way to validate the model with these tools?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;modelbuilder‌&amp;nbsp;geoprocessing tool problem&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Fri, 11 Sep 2020 02:29:28 GMT</pubDate>
    <dc:creator>DylanMcDougall</dc:creator>
    <dc:date>2020-09-11T02:29:28Z</dc:date>
    <item>
      <title>Populating Point Variable in Modelbuilder</title>
      <link>https://community.esri.com/t5/modelbuilder-questions/populating-point-variable-in-modelbuilder/m-p/856210#M640</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I am trying to use Extract By Circle with the Center Point parameter being filled with the XCENTROID and YCENTROID fields gotten from a Zonal Geometry table. However, the Center Point parameter (or any Point variable for that matter) does not accept connectors (giving the error message "Only a variable can be connected to a process") and does not accept inline variable substitution such as %XCENTROID% (see attached screenshot with red box around entered text). What gives?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I could generate points, buffer them, and clip the raster instead, but Extract By Circle would greatly simplify my model, especially considering that I get the centroids from Zonal Statistics already.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks!&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 28 May 2020 22:55:16 GMT</pubDate>
      <guid>https://community.esri.com/t5/modelbuilder-questions/populating-point-variable-in-modelbuilder/m-p/856210#M640</guid>
      <dc:creator>DylanMcDougall</dc:creator>
      <dc:date>2020-05-28T22:55:16Z</dc:date>
    </item>
    <item>
      <title>Re: Populating Point Variable in Modelbuilder</title>
      <link>https://community.esri.com/t5/modelbuilder-questions/populating-point-variable-in-modelbuilder/m-p/856211#M641</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;This is kind of fun once you figure out how it works!&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Extract By Circle needs a object of type Point for that parameter, in the ExtractByCircle help they have a Python example&amp;nbsp;that looks like this.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;PRE class="lia-code-sample line-numbers language-none"&gt;&lt;CODE&gt;outExtCircle &lt;SPAN class="operator token"&gt;=&lt;/SPAN&gt; ExtractByCircle&lt;SPAN class="punctuation token"&gt;(&lt;/SPAN&gt;&lt;SPAN class="string token"&gt;"elevation"&lt;/SPAN&gt;&lt;SPAN class="punctuation token"&gt;,&lt;/SPAN&gt; arcpy&lt;SPAN class="punctuation token"&gt;.&lt;/SPAN&gt;Point&lt;SPAN class="punctuation token"&gt;(&lt;/SPAN&gt;&lt;SPAN class="number token"&gt;482838.823&lt;/SPAN&gt;&lt;SPAN class="punctuation token"&gt;,&lt;/SPAN&gt; &lt;SPAN class="number token"&gt;222128.982&lt;/SPAN&gt;&lt;SPAN class="punctuation token"&gt;)&lt;/SPAN&gt;&lt;SPAN class="punctuation token"&gt;,&lt;/SPAN&gt; &lt;SPAN class="number token"&gt;500&lt;/SPAN&gt;&lt;SPAN class="punctuation token"&gt;,&lt;/SPAN&gt; &lt;SPAN class="string token"&gt;"INSIDE"&lt;/SPAN&gt;&lt;SPAN class="punctuation token"&gt;)&lt;/SPAN&gt;‍‍‍
&lt;SPAN class="line-numbers-rows"&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN class="" style="color: #4d4d4d;"&gt;You need a string representation, because all variables in ModelBuilder are text strings, even when they represent other data types. These aren't always obvious (Point string rep would be&amp;nbsp; something&amp;nbsp; "100.0 00.0 NaN NaN" -- but most aren't that simple, think: Spatial Reference) so I like to construct&amp;nbsp;them using the Calculate Value tool. You use this tool to create a Python string expression and assign its type to Point. Say X and Y are model variables you extracted from your table using Get Field Value. You set these as preconditions to the Calculate Value tool, then use:&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN class="" style="color: #4d4d4d;"&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN class="" style="color: #4d4d4d;"&gt;Calculate Value expression: &lt;SPAN style="font-family: 'andale mono', monospace;"&gt;str(arcpy.Point(%X%, %Y%))&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN class="" style="color: #4d4d4d;"&gt;Calculate Value data type: &lt;SPAN style="font-family: 'andale mono', monospace;"&gt;Point&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN class="" style="color: #4d4d4d;"&gt;The output is a text representation of a Point, which&amp;nbsp; you assign as Point type using the data type parameter. If you do this, you can connect the point value output to Extract By Circle!&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN class="" style="color: #4d4d4d;"&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN class="" style="color: #4d4d4d;"&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN class="" style="color: #4d4d4d;"&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sun, 12 Dec 2021 10:35:12 GMT</pubDate>
      <guid>https://community.esri.com/t5/modelbuilder-questions/populating-point-variable-in-modelbuilder/m-p/856211#M641</guid>
      <dc:creator>curtvprice</dc:creator>
      <dc:date>2021-12-12T10:35:12Z</dc:date>
    </item>
    <item>
      <title>Re: Populating Point Variable in Modelbuilder</title>
      <link>https://community.esri.com/t5/modelbuilder-questions/populating-point-variable-in-modelbuilder/m-p/856212#M642</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;To compliment &lt;A href="https://community.esri.com/migrated-users/3355"&gt;Curtis Price&lt;/A&gt;‌'s answer this is why you to need to &lt;EM&gt;read the help file&lt;/EM&gt; and understand what it is showing you, especially the &lt;A href="https://desktop.arcgis.com/en/arcmap/10.7/tools/spatial-analyst-toolbox/extract-by-circle.htm#GUID-B1B4839D-6C23-4CF1-A5E5-CF9560D19C49"&gt;syntax section&lt;/A&gt; of each tool. If you look at the data type of centre_point it is a POINT geometry. This would have helped you realise that you can't connect a number variable and would have hopefully lead you down the path of creating a geometry object. Your idea of a buffer centroid approach would have worked but would have added extra steps into the model whilst Curtis's slick solution introduces only 1 tool.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;So if models are not doing what you expect have a look at the syntax section of the tool.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 01 Jun 2020 10:36:34 GMT</pubDate>
      <guid>https://community.esri.com/t5/modelbuilder-questions/populating-point-variable-in-modelbuilder/m-p/856212#M642</guid>
      <dc:creator>DuncanHornby</dc:creator>
      <dc:date>2020-06-01T10:36:34Z</dc:date>
    </item>
    <item>
      <title>Re: Populating Point Variable in Modelbuilder</title>
      <link>https://community.esri.com/t5/modelbuilder-questions/populating-point-variable-in-modelbuilder/m-p/856213#M643</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Thanks for this! It lets me connect the Point variable to the Extract By Circle tool, but when I run the model (from the toolbox) it fails with&amp;nbsp;"ERROR 000859: The required parameter Center point is empty, or is not the type of Point." It seems that Modelbuilder cannot validate the Extract By Circle tool until Calculate Value has run, I'm guessing because Calculate Value does not have a default output like '1 1' that Extract By Circle would recognize as a point.&amp;nbsp;Is there any&amp;nbsp;way to validate the model with these tools?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;modelbuilder‌&amp;nbsp;geoprocessing tool problem&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 11 Sep 2020 02:29:28 GMT</pubDate>
      <guid>https://community.esri.com/t5/modelbuilder-questions/populating-point-variable-in-modelbuilder/m-p/856213#M643</guid>
      <dc:creator>DylanMcDougall</dc:creator>
      <dc:date>2020-09-11T02:29:28Z</dc:date>
    </item>
    <item>
      <title>Re: Populating Point Variable in Modelbuilder</title>
      <link>https://community.esri.com/t5/modelbuilder-questions/populating-point-variable-in-modelbuilder/m-p/1473950#M3997</link>
      <description>&lt;P&gt;I am having the same problem with my model because there is no default output. Has anyone figured out a solution to this?&lt;/P&gt;</description>
      <pubDate>Thu, 16 May 2024 15:57:04 GMT</pubDate>
      <guid>https://community.esri.com/t5/modelbuilder-questions/populating-point-variable-in-modelbuilder/m-p/1473950#M3997</guid>
      <dc:creator>AveryDurham1</dc:creator>
      <dc:date>2024-05-16T15:57:04Z</dc:date>
    </item>
  </channel>
</rss>

