<?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: ArcGIS geo enrichment in ArcGIS API for Python Questions</title>
    <link>https://community.esri.com/t5/arcgis-api-for-python-questions/arcgis-geo-enrichment/m-p/1241486#M8168</link>
    <description>&lt;P&gt;From the web&lt;/P&gt;&lt;P&gt;&lt;A href="https://developers.arcgis.com/rest/geoenrichment/api-reference/geoenrichment-service-overview.htm" target="_blank"&gt;GeoEnrichment service—ArcGIS REST APIs | ArcGIS Developers&lt;/A&gt;&lt;/P&gt;&lt;P&gt;under Access the Service gives the requirements&lt;/P&gt;</description>
    <pubDate>Thu, 15 Dec 2022 10:38:41 GMT</pubDate>
    <dc:creator>DanPatterson</dc:creator>
    <dc:date>2022-12-15T10:38:41Z</dc:date>
    <item>
      <title>ArcGIS geo enrichment</title>
      <link>https://community.esri.com/t5/arcgis-api-for-python-questions/arcgis-geo-enrichment/m-p/1240498#M8154</link>
      <description>&lt;P&gt;Hi i wanted to know if "&lt;SPAN&gt;arcgis&lt;/SPAN&gt;&lt;SPAN&gt;.&lt;/SPAN&gt;&lt;SPAN&gt;geoenrichment" is free?&lt;BR /&gt;&lt;BR /&gt;my code:&lt;/SPAN&gt;&lt;/P&gt;&lt;DIV&gt;&lt;DIV&gt;&lt;SPAN&gt;from&lt;/SPAN&gt; &lt;SPAN&gt;arcgis&lt;/SPAN&gt;&lt;SPAN&gt;.&lt;/SPAN&gt;&lt;SPAN&gt;gis&lt;/SPAN&gt; &lt;SPAN&gt;import&lt;/SPAN&gt; &lt;SPAN&gt;GIS&lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV&gt;&lt;SPAN&gt;from&lt;/SPAN&gt; &lt;SPAN&gt;arcgis&lt;/SPAN&gt;&lt;SPAN&gt;.&lt;/SPAN&gt;&lt;SPAN&gt;geoenrichment&lt;/SPAN&gt; &lt;SPAN&gt;import&lt;/SPAN&gt; &lt;SPAN&gt;Country&lt;/SPAN&gt;&lt;/DIV&gt;&lt;/DIV&gt;&lt;DIV&gt;&amp;nbsp;&lt;/DIV&gt;&lt;DIV&gt;# hid credentials&lt;BR /&gt;&lt;DIV&gt;&lt;SPAN&gt;gis&lt;/SPAN&gt;&lt;SPAN&gt; = &lt;/SPAN&gt;&lt;SPAN&gt;GIS&lt;/SPAN&gt;&lt;SPAN&gt;(&lt;/SPAN&gt;&lt;SPAN&gt;username&lt;/SPAN&gt;&lt;SPAN&gt;=&lt;/SPAN&gt;&lt;SPAN&gt;'*********'&lt;/SPAN&gt;&lt;SPAN&gt;, &lt;/SPAN&gt;&lt;SPAN&gt;password&lt;/SPAN&gt;&lt;SPAN&gt;=&lt;/SPAN&gt;&lt;SPAN&gt;'*********'&lt;/SPAN&gt;&lt;SPAN&gt;)&lt;/SPAN&gt;&lt;/DIV&gt;&lt;BR /&gt;&lt;DIV&gt;&lt;SPAN&gt;pk&lt;/SPAN&gt;&lt;SPAN&gt; = &lt;/SPAN&gt;&lt;SPAN&gt;Country&lt;/SPAN&gt;&lt;SPAN&gt;.&lt;/SPAN&gt;&lt;SPAN&gt;get&lt;/SPAN&gt;&lt;SPAN&gt;(&lt;/SPAN&gt;&lt;SPAN&gt;'PK'&lt;/SPAN&gt;&lt;SPAN&gt;)&lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV&gt;&lt;SPAN&gt;pk_states&lt;/SPAN&gt;&lt;SPAN&gt; = [&lt;/SPAN&gt;&lt;SPAN&gt;state&lt;/SPAN&gt; &lt;SPAN&gt;for&lt;/SPAN&gt; &lt;SPAN&gt;state&lt;/SPAN&gt; &lt;SPAN&gt;in&lt;/SPAN&gt; &lt;SPAN&gt;pk&lt;/SPAN&gt;&lt;SPAN&gt;.&lt;/SPAN&gt;&lt;SPAN&gt;subgeographies&lt;/SPAN&gt;&lt;SPAN&gt;.states.items()]&lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV&gt;&lt;SPAN&gt;# pk_places = [place for place in pk.subgeographies.states['Punjab'].places.items()][:5]&lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV&gt;&amp;nbsp;&lt;/DIV&gt;&lt;DIV&gt;&lt;SPAN&gt;errors i am facing:&lt;BR /&gt;1.&lt;BR /&gt;Traceback (most recent call last):&lt;BR /&gt;File "test.py", line 7, in &amp;lt;module&amp;gt;&lt;BR /&gt;pk_states = [state for state in pk.subgeographies.states.items()]&lt;BR /&gt;File "/Users/suleman/.pyenv/versions/3.8.16/lib/python3.8/site-packages/arcgis/geoenrichment/enrichment.py", line 227, in __getattribute__&lt;BR /&gt;val = object.__getattribute__(self, name)&lt;BR /&gt;AttributeError: 'NamedArea' object has no attribute 'states'&lt;BR /&gt;&lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV&gt;&amp;nbsp;&lt;/DIV&gt;&lt;DIV&gt;&lt;SPAN&gt;2.&lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV&gt;&lt;SPAN&gt;Traceback (most recent call last):&lt;BR /&gt;File "test.py", line 6, in &amp;lt;module&amp;gt;&lt;BR /&gt;pk = Country.get('US').subgeographies.states&lt;BR /&gt;File "/Users/suleman/.pyenv/versions/3.8.16/lib/python3.8/site-packages/arcgis/geoenrichment/enrichment.py", line 230, in __getattribute__&lt;BR /&gt;self._fetch_subgeographies(name)&lt;BR /&gt;File "/Users/suleman/.pyenv/versions/3.8.16/lib/python3.8/site-packages/arcgis/geoenrichment/enrichment.py", line 237, in _fetch_subgeographies&lt;BR /&gt;df = standard_geography_query(&lt;BR /&gt;File "/Users/suleman/.pyenv/versions/3.8.16/lib/python3.8/site-packages/arcgis/geoenrichment/enrichment.py", line 102, in wrapped&lt;BR /&gt;return fn_to_call(*args, **kwargs)&lt;BR /&gt;File "/Users/suleman/.pyenv/versions/3.8.16/lib/python3.8/site-packages/arcgis/geoenrichment/enrichment.py", line 1802, in _standard_geography_query_gis&lt;BR /&gt;return ge.standard_geography_query(&lt;BR /&gt;File "/Users/suleman/.pyenv/versions/3.8.16/lib/python3.8/site-packages/arcgis/geoenrichment/_ge.py", line 1225, in standard_geography_query&lt;BR /&gt;res = self._gis._con.post(path=url, postdata=params)&lt;BR /&gt;File "/Users/suleman/.pyenv/versions/3.8.16/lib/python3.8/site-packages/arcgis/gis/_impl/_con/_connection.py", line 1407, in post&lt;BR /&gt;return self._handle_response(&lt;BR /&gt;File "/Users/suleman/.pyenv/versions/3.8.16/lib/python3.8/site-packages/arcgis/gis/_impl/_con/_connection.py", line 900, in _handle_response&lt;BR /&gt;self._handle_json_error(data["error"], errorcode)&lt;BR /&gt;File "/Users/suleman/.pyenv/versions/3.8.16/lib/python3.8/site-packages/arcgis/gis/_impl/_con/_connection.py", line 923, in _handle_json_error&lt;BR /&gt;raise Exception(errormessage)&lt;BR /&gt;Exception: User does not have permissions to access this resource.&lt;/SPAN&gt;&lt;/DIV&gt;&lt;/DIV&gt;</description>
      <pubDate>Tue, 13 Dec 2022 08:59:50 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-api-for-python-questions/arcgis-geo-enrichment/m-p/1240498#M8154</guid>
      <dc:creator>SulemanButt</dc:creator>
      <dc:date>2022-12-13T08:59:50Z</dc:date>
    </item>
    <item>
      <title>Re: ArcGIS geo enrichment</title>
      <link>https://community.esri.com/t5/arcgis-api-for-python-questions/arcgis-geo-enrichment/m-p/1240519#M8156</link>
      <description>&lt;P&gt;It requires an arcgis pro license with geoenrichment capabilities enabled on your account or the data doesn't exist for the country in question&lt;/P&gt;&lt;P&gt;&lt;A href="https://pro.arcgis.com/en/pro-app/latest/help/sharing/analyzer-error-messages/00310-geoenrichment-service-is-not-configured.htm" target="_blank"&gt;00310: GeoEnrichment service is not configured—ArcGIS Pro | Documentation&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&lt;A href="https://pro.arcgis.com/en/pro-app/latest/help/sharing/analyzer-error-messages/00312-country-cannot-be-determined-for-the-statistical-data-collection.htm" target="_blank"&gt;00312: Country cannot be determined for the Statistical Data Collection or the country is not available in the GeoEnrichment service—ArcGIS Pro | Documentation&lt;/A&gt;&lt;/P&gt;&lt;P&gt;plus other links&lt;/P&gt;</description>
      <pubDate>Tue, 13 Dec 2022 10:41:31 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-api-for-python-questions/arcgis-geo-enrichment/m-p/1240519#M8156</guid>
      <dc:creator>DanPatterson</dc:creator>
      <dc:date>2022-12-13T10:41:31Z</dc:date>
    </item>
    <item>
      <title>Re: ArcGIS geo enrichment</title>
      <link>https://community.esri.com/t5/arcgis-api-for-python-questions/arcgis-geo-enrichment/m-p/1241456#M8167</link>
      <description>&lt;P&gt;Just confirming.... do i need to buy a plan or geo-enrichment service to use this info? If yes then can you share me the link where i could buy this service please??&lt;/P&gt;</description>
      <pubDate>Thu, 15 Dec 2022 05:38:43 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-api-for-python-questions/arcgis-geo-enrichment/m-p/1241456#M8167</guid>
      <dc:creator>SulemanButt</dc:creator>
      <dc:date>2022-12-15T05:38:43Z</dc:date>
    </item>
    <item>
      <title>Re: ArcGIS geo enrichment</title>
      <link>https://community.esri.com/t5/arcgis-api-for-python-questions/arcgis-geo-enrichment/m-p/1241486#M8168</link>
      <description>&lt;P&gt;From the web&lt;/P&gt;&lt;P&gt;&lt;A href="https://developers.arcgis.com/rest/geoenrichment/api-reference/geoenrichment-service-overview.htm" target="_blank"&gt;GeoEnrichment service—ArcGIS REST APIs | ArcGIS Developers&lt;/A&gt;&lt;/P&gt;&lt;P&gt;under Access the Service gives the requirements&lt;/P&gt;</description>
      <pubDate>Thu, 15 Dec 2022 10:38:41 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-api-for-python-questions/arcgis-geo-enrichment/m-p/1241486#M8168</guid>
      <dc:creator>DanPatterson</dc:creator>
      <dc:date>2022-12-15T10:38:41Z</dc:date>
    </item>
  </channel>
</rss>

