<?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: Can I use a featureset as input to analyze_patterns.interpolate_points? in ArcGIS API for Python Questions</title>
    <link>https://community.esri.com/t5/arcgis-api-for-python-questions/can-i-use-a-featureset-as-input-to-analyze/m-p/775194#M893</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;FeatureSets are not supported as input to the feature analysis tools.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;The following are supported:&lt;/P&gt;&lt;UL&gt;&lt;LI&gt;URL to feature layers&lt;/LI&gt;&lt;LI&gt;Items of type Feature Layer&lt;/LI&gt;&lt;LI&gt;Items of type Feature Collections&lt;/LI&gt;&lt;LI&gt;FeatureCollection as a Python dictionary&lt;/LI&gt;&lt;LI&gt;FeatureLayer objects&lt;/LI&gt;&lt;LI&gt;FeatureLayerCollection objects - the first layer is used.&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;The 'Feature Input' reference was to&amp;nbsp;&lt;A class="link-titled" href="https://developers.arcgis.com/rest/analysis/api-reference/feature-input.htm" title="https://developers.arcgis.com/rest/analysis/api-reference/feature-input.htm"&gt;Feature input—ArcGIS REST API: Spatial Analysis Service | ArcGIS for Developers&lt;/A&gt;&amp;nbsp;&amp;nbsp;but we should have it a better place in the Python API doc - thanks for alerting us to this.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Fri, 31 Mar 2017 18:54:16 GMT</pubDate>
    <dc:creator>RohitSingh2</dc:creator>
    <dc:date>2017-03-31T18:54:16Z</dc:date>
    <item>
      <title>Can I use a featureset as input to analyze_patterns.interpolate_points?</title>
      <link>https://community.esri.com/t5/arcgis-api-for-python-questions/can-i-use-a-featureset-as-input-to-analyze/m-p/775193#M892</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;The API guide for interpolate_points for the input_layer parameter mentions "see Feature Input in documentation". &amp;nbsp;Where do I find that documentation? &amp;nbsp;More specifically, I'm trying to figure out if&amp;nbsp;I can use featureset as the input layer? &amp;nbsp;I'm currently getting this error:&lt;/P&gt;&lt;PRE style="color: #000000; background-color: #ffffff; border: 0px; font-size: 14px;"&gt;&lt;SPAN class="" style="color: darkred;"&gt;---------------------------------------------------------------------------&lt;/SPAN&gt;&lt;SPAN class="" style="color: darkred;"&gt;Exception&lt;/SPAN&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; Traceback (most recent call last)&lt;SPAN class="" style="color: darkgreen;"&gt;&amp;lt;ipython-input-52-ba1e10e3e46c&amp;gt;&lt;/SPAN&gt; in &lt;SPAN class="" style="color: steelblue;"&gt;&amp;lt;module&amp;gt;&lt;SPAN class="" style="color: darkblue;"&gt;()&lt;/SPAN&gt;&lt;SPAN class="" style="color: darkgreen;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; 1&lt;/SPAN&gt; &lt;SPAN class="" style="color: darkgreen;"&gt;from&lt;/SPAN&gt; arcgis&lt;SPAN class="" style="color: #c4a000;"&gt;.&lt;/SPAN&gt;features&lt;SPAN class="" style="color: #c4a000;"&gt;.&lt;/SPAN&gt;analyze_patterns &lt;SPAN class="" style="color: darkgreen;"&gt;import&lt;/SPAN&gt; interpolate_points&lt;SPAN class="" style="color: #c4a000;"&gt;&lt;/SPAN&gt;&lt;SPAN class="" style="color: darkgreen;"&gt;----&amp;gt; 2&lt;SPAN class="" style="color: #c4a000;"&gt; &lt;/SPAN&gt;interpolated_sites &lt;SPAN class="" style="color: #c4a000;"&gt;=&lt;/SPAN&gt; interpolate_points&lt;SPAN class="" style="color: #c4a000;"&gt;(&lt;/SPAN&gt;solardatasites_fset&lt;SPAN class="" style="color: #c4a000;"&gt;,&lt;/SPAN&gt; field&lt;SPAN class="" style="color: #c4a000;"&gt;=&lt;/SPAN&gt;&lt;SPAN class="" style="color: darkblue;"&gt;'jul_ghi'&lt;/SPAN&gt;&lt;SPAN class="" style="color: #c4a000;"&gt;)&lt;/SPAN&gt;&lt;SPAN class="" style="color: #c4a000;"&gt;&lt;/SPAN&gt; C:\Program Files\ArcGIS\Pro\bin\Python\envs\arcgispro-py3\lib\site-packages\arcgis\features\analyze_patterns.py in interpolate_points&lt;SPAN class="" style="color: darkblue;"&gt;(input_layer, field, interpolate_option, output_prediction_error, classification_type, num_classes, class_breaks, bounding_polygon_layer, predict_at_point_layer, output_name, context, gis)&lt;/SPAN&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; 209&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; predict_at_point_layer&lt;SPAN class="" style="color: #c4a000;"&gt;,&lt;/SPAN&gt;&lt;SPAN class="" style="color: #c4a000;"&gt;&lt;/SPAN&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; 210&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; output_name&lt;SPAN class="" style="color: #c4a000;"&gt;,&lt;/SPAN&gt;&lt;SPAN class="" style="color: #c4a000;"&gt;&lt;/SPAN&gt;--&amp;gt; 211&lt;SPAN class="" style="color: #c4a000;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; context)&lt;/SPAN&gt;C:\Program Files\ArcGIS\Pro\bin\Python\envs\arcgispro-py3\lib\site-packages\arcgis\_impl\tools.py in interpolate_points&lt;SPAN class="" style="color: darkblue;"&gt;(self, input_layer, field, interpolate_option, output_prediction_error, classification_type, num_classes, class_breaks, bounding_polygon_layer, predict_at_point_layer, output_name, context)&lt;/SPAN&gt;&amp;nbsp;&amp;nbsp; 1322&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; params &lt;SPAN class="" style="color: #c4a000;"&gt;=&lt;/SPAN&gt; &lt;SPAN class="" style="color: #c4a000;"&gt;{&lt;/SPAN&gt;&lt;SPAN class="" style="color: #c4a000;"&gt;}&lt;/SPAN&gt;&lt;SPAN class="" style="color: #c4a000;"&gt;&lt;/SPAN&gt;&amp;nbsp;&amp;nbsp; 1323 &lt;SPAN class="" style="color: #c4a000;"&gt;&lt;/SPAN&gt;-&amp;gt; 1324&lt;SPAN class="" style="color: #c4a000;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;/SPAN&gt;params&lt;SPAN class="" style="color: #c4a000;"&gt;[&lt;/SPAN&gt;&lt;SPAN class="" style="color: darkblue;"&gt;"inputLayer"&lt;/SPAN&gt;&lt;SPAN class="" style="color: #c4a000;"&gt;]&lt;/SPAN&gt; &lt;SPAN class="" style="color: #c4a000;"&gt;=&lt;/SPAN&gt; super&lt;SPAN class="" style="color: #c4a000;"&gt;(&lt;/SPAN&gt;&lt;SPAN class="" style="color: #c4a000;"&gt;)&lt;/SPAN&gt;&lt;SPAN class="" style="color: #c4a000;"&gt;.&lt;/SPAN&gt;_feature_input&lt;SPAN class="" style="color: #c4a000;"&gt;(&lt;/SPAN&gt;input_layer&lt;SPAN class="" style="color: #c4a000;"&gt;)&lt;/SPAN&gt;&lt;SPAN class="" style="color: #c4a000;"&gt;&lt;/SPAN&gt;&amp;nbsp;&amp;nbsp; 1325&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; params&lt;SPAN class="" style="color: #c4a000;"&gt;[&lt;/SPAN&gt;&lt;SPAN class="" style="color: darkblue;"&gt;"field"&lt;/SPAN&gt;&lt;SPAN class="" style="color: #c4a000;"&gt;]&lt;/SPAN&gt; &lt;SPAN class="" style="color: #c4a000;"&gt;=&lt;/SPAN&gt; field&lt;SPAN class="" style="color: #c4a000;"&gt;&lt;/SPAN&gt;&amp;nbsp;&amp;nbsp; 1326&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; if interpolate_option is not None&lt;SPAN class="" style="color: #c4a000;"&gt;:&lt;/SPAN&gt;&lt;SPAN class="" style="color: #c4a000;"&gt;&lt;/SPAN&gt; C:\Program Files\ArcGIS\Pro\bin\Python\envs\arcgispro-py3\lib\site-packages\arcgis\_impl\tools.py in _feature_input&lt;SPAN class="" style="color: darkblue;"&gt;(self, input_layer)&lt;/SPAN&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; 381&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; input_param &lt;SPAN class="" style="color: #c4a000;"&gt;=&lt;/SPAN&gt;&amp;nbsp; &lt;SPAN class="" style="color: #c4a000;"&gt;{&lt;/SPAN&gt;&lt;SPAN class="" style="color: darkblue;"&gt;"url"&lt;/SPAN&gt;&lt;SPAN class="" style="color: #c4a000;"&gt;:&lt;/SPAN&gt; input_layer_url &lt;SPAN class="" style="color: #c4a000;"&gt;}&lt;/SPAN&gt;&lt;SPAN class="" style="color: #c4a000;"&gt;&lt;/SPAN&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; 382&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; else&lt;SPAN class="" style="color: #c4a000;"&gt;:&lt;/SPAN&gt;&lt;SPAN class="" style="color: #c4a000;"&gt;&lt;/SPAN&gt;--&amp;gt; 383&lt;SPAN class="" style="color: #c4a000;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; raise Exception(&lt;SPAN class="" style="color: darkblue;"&gt;"Invalid format of input layer. url string, feature service Item, feature service instance or dict supported"&lt;/SPAN&gt;)&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; 384&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; 385&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; return input_param &lt;SPAN class="" style="color: darkred;"&gt;Exception&lt;/SPAN&gt;: Invalid format of input layer. url string, feature service Item, feature service instance or dict supported&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/PRE&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 31 Mar 2017 18:05:45 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-api-for-python-questions/can-i-use-a-featureset-as-input-to-analyze/m-p/775193#M892</guid>
      <dc:creator>DavidJohnson5</dc:creator>
      <dc:date>2017-03-31T18:05:45Z</dc:date>
    </item>
    <item>
      <title>Re: Can I use a featureset as input to analyze_patterns.interpolate_points?</title>
      <link>https://community.esri.com/t5/arcgis-api-for-python-questions/can-i-use-a-featureset-as-input-to-analyze/m-p/775194#M893</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;FeatureSets are not supported as input to the feature analysis tools.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;The following are supported:&lt;/P&gt;&lt;UL&gt;&lt;LI&gt;URL to feature layers&lt;/LI&gt;&lt;LI&gt;Items of type Feature Layer&lt;/LI&gt;&lt;LI&gt;Items of type Feature Collections&lt;/LI&gt;&lt;LI&gt;FeatureCollection as a Python dictionary&lt;/LI&gt;&lt;LI&gt;FeatureLayer objects&lt;/LI&gt;&lt;LI&gt;FeatureLayerCollection objects - the first layer is used.&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;The 'Feature Input' reference was to&amp;nbsp;&lt;A class="link-titled" href="https://developers.arcgis.com/rest/analysis/api-reference/feature-input.htm" title="https://developers.arcgis.com/rest/analysis/api-reference/feature-input.htm"&gt;Feature input—ArcGIS REST API: Spatial Analysis Service | ArcGIS for Developers&lt;/A&gt;&amp;nbsp;&amp;nbsp;but we should have it a better place in the Python API doc - thanks for alerting us to this.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 31 Mar 2017 18:54:16 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-api-for-python-questions/can-i-use-a-featureset-as-input-to-analyze/m-p/775194#M893</guid>
      <dc:creator>RohitSingh2</dc:creator>
      <dc:date>2017-03-31T18:54:16Z</dc:date>
    </item>
    <item>
      <title>Re: Can I use a featureset as input to analyze_patterns.interpolate_points?</title>
      <link>https://community.esri.com/t5/arcgis-api-for-python-questions/can-i-use-a-featureset-as-input-to-analyze/m-p/775195#M894</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Thanks Rohit the quick response!. &amp;nbsp;Would it be possible to construct&amp;nbsp;an in-memory feature layer object from a FeatureSet to use as the tool input? &amp;nbsp;If not, can you suggest any alternatives for&amp;nbsp;passing in a subset of points from a feature layer to the tool that does not involve creating a new feature layer item?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 31 Mar 2017 19:40:40 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-api-for-python-questions/can-i-use-a-featureset-as-input-to-analyze/m-p/775195#M894</guid>
      <dc:creator>DavidJohnson5</dc:creator>
      <dc:date>2017-03-31T19:40:40Z</dc:date>
    </item>
    <item>
      <title>Re: Can I use a featureset as input to analyze_patterns.interpolate_points?</title>
      <link>https://community.esri.com/t5/arcgis-api-for-python-questions/can-i-use-a-featureset-as-input-to-analyze/m-p/775196#M895</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;You can construct an in-memory FeatureCollection object and that will work. The format of FeatureCollection is in the Feature Input page.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 31 Mar 2017 22:21:09 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-api-for-python-questions/can-i-use-a-featureset-as-input-to-analyze/m-p/775196#M895</guid>
      <dc:creator>RohitSingh2</dc:creator>
      <dc:date>2017-03-31T22:21:09Z</dc:date>
    </item>
    <item>
      <title>Re: Can I use a featureset as input to analyze_patterns.interpolate_points?</title>
      <link>https://community.esri.com/t5/arcgis-api-for-python-questions/can-i-use-a-featureset-as-input-to-analyze/m-p/775197#M896</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;That works. &amp;nbsp;Thanks again!&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;my_featureset = my_flyr.query(where="state='WY'")&lt;/P&gt;&lt;P&gt;from arcgis.features import FeatureCollection&lt;BR /&gt;my_fc = FeatureCollection(&lt;SPAN&gt;my&lt;/SPAN&gt;&lt;SPAN&gt;_featureset&lt;/SPAN&gt;.to_dict())&lt;/P&gt;&lt;P&gt;from arcgis.features.analyze_patterns import interpolate_points&lt;BR /&gt;interpolated_points = interpolate_points(&lt;SPAN&gt;my&lt;/SPAN&gt;&lt;SPAN&gt;_fc&lt;/SPAN&gt;, field='GHI')&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sat, 01 Apr 2017 00:24:20 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-api-for-python-questions/can-i-use-a-featureset-as-input-to-analyze/m-p/775197#M896</guid>
      <dc:creator>DavidJohnson5</dc:creator>
      <dc:date>2017-04-01T00:24:20Z</dc:date>
    </item>
    <item>
      <title>Re: Can I use a featureset as input to analyze_patterns.interpolate_points?</title>
      <link>https://community.esri.com/t5/arcgis-api-for-python-questions/can-i-use-a-featureset-as-input-to-analyze/m-p/775198#M897</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;All I can say is... "even better" !&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sat, 01 Apr 2017 00:27:22 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-api-for-python-questions/can-i-use-a-featureset-as-input-to-analyze/m-p/775198#M897</guid>
      <dc:creator>RohitSingh2</dc:creator>
      <dc:date>2017-04-01T00:27:22Z</dc:date>
    </item>
  </channel>
</rss>

