<?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: How to draw a polygon or circle on few locations in Jupyter notebook? in ArcGIS API for Python Questions</title>
    <link>https://community.esri.com/t5/arcgis-api-for-python-questions/how-to-draw-a-polygon-or-circle-on-few-locations/m-p/866859#M4464</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Agree with Joshua.&lt;/P&gt;&lt;P&gt;And here is an example using a quite similar approach,&amp;nbsp;it should&amp;nbsp;work straight away for your data if you give it some simple tweaks.&lt;/P&gt;&lt;P&gt;&lt;A class="link-titled" href="https://developers.arcgis.com/python/guide/performing-proximity-analysis-on-feature-data/#Buffer-a-fixed-distance" title="https://developers.arcgis.com/python/guide/performing-proximity-analysis-on-feature-data/#Buffer-a-fixed-distance"&gt;Proximity analysis | ArcGIS for Developers&lt;/A&gt;&amp;nbsp;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Mon, 24 Sep 2018 05:53:58 GMT</pubDate>
    <dc:creator>simoxu</dc:creator>
    <dc:date>2018-09-24T05:53:58Z</dc:date>
    <item>
      <title>How to draw a polygon or circle on few locations in Jupyter notebook?</title>
      <link>https://community.esri.com/t5/arcgis-api-for-python-questions/how-to-draw-a-polygon-or-circle-on-few-locations/m-p/866857#M4462</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;In jupyter notebook, I'm trying to make draw a shape (say circle) on some location points plotted on map as shown below:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;# &lt;STRONG&gt;df&lt;/STRONG&gt; is a pandas dataframe with coloumns 'lon' &amp;amp; 'lat'&lt;/P&gt;&lt;P&gt;&lt;EM&gt;points = gis.content.import_data(df)&lt;/EM&gt;&lt;/P&gt;&lt;P&gt;&lt;EM&gt;g.add_layer(points)&lt;/EM&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;# &lt;STRONG&gt;cen_lon&lt;/STRONG&gt;, &lt;STRONG&gt;cen_lat&lt;/STRONG&gt; are center longitude and latitude respectively.&lt;/P&gt;&lt;P&gt;&lt;EM&gt;g.draw('circle',[cen_x, cen_y])&lt;/EM&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I want a circle/polygon should appear, which encircles the points of&amp;nbsp;&lt;STRONG&gt;df&lt;/STRONG&gt; upto some radius &lt;STRONG&gt;r&lt;/STRONG&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 21 Sep 2018 10:54:29 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-api-for-python-questions/how-to-draw-a-polygon-or-circle-on-few-locations/m-p/866857#M4462</guid>
      <dc:creator>BhartenduThakur</dc:creator>
      <dc:date>2018-09-21T10:54:29Z</dc:date>
    </item>
    <item>
      <title>Re: How to draw a polygon or circle on few locations in Jupyter notebook?</title>
      <link>https://community.esri.com/t5/arcgis-api-for-python-questions/how-to-draw-a-polygon-or-circle-on-few-locations/m-p/866858#M4463</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Since the data has already been loaded as a layer, what about &lt;A href="https://esri.github.io/arcgis-python-api/apidoc/html/arcgis.features.analysis.html?highlight=buffer#arcgis.features.analysis.create_buffers"&gt;&lt;SPAN style="font-family: courier new, courier, monospace;"&gt;arcgis.features.analysis.create_buffer&lt;/SPAN&gt;&lt;/A&gt;?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 21 Sep 2018 16:41:31 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-api-for-python-questions/how-to-draw-a-polygon-or-circle-on-few-locations/m-p/866858#M4463</guid>
      <dc:creator>JoshuaBixby</dc:creator>
      <dc:date>2018-09-21T16:41:31Z</dc:date>
    </item>
    <item>
      <title>Re: How to draw a polygon or circle on few locations in Jupyter notebook?</title>
      <link>https://community.esri.com/t5/arcgis-api-for-python-questions/how-to-draw-a-polygon-or-circle-on-few-locations/m-p/866859#M4464</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Agree with Joshua.&lt;/P&gt;&lt;P&gt;And here is an example using a quite similar approach,&amp;nbsp;it should&amp;nbsp;work straight away for your data if you give it some simple tweaks.&lt;/P&gt;&lt;P&gt;&lt;A class="link-titled" href="https://developers.arcgis.com/python/guide/performing-proximity-analysis-on-feature-data/#Buffer-a-fixed-distance" title="https://developers.arcgis.com/python/guide/performing-proximity-analysis-on-feature-data/#Buffer-a-fixed-distance"&gt;Proximity analysis | ArcGIS for Developers&lt;/A&gt;&amp;nbsp;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 24 Sep 2018 05:53:58 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-api-for-python-questions/how-to-draw-a-polygon-or-circle-on-few-locations/m-p/866859#M4464</guid>
      <dc:creator>simoxu</dc:creator>
      <dc:date>2018-09-24T05:53:58Z</dc:date>
    </item>
    <item>
      <title>Re: How to draw a polygon or circle on few locations in Jupyter notebook?</title>
      <link>https://community.esri.com/t5/arcgis-api-for-python-questions/how-to-draw-a-polygon-or-circle-on-few-locations/m-p/866860#M4465</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I tried the following (both with analysis.create_buffers and use_proximitiy.&lt;SPAN&gt;create_buffers (&lt;A href="https://community.esri.com/migrated-users/10807" target="_blank"&gt;simo xu&lt;/A&gt;‌&lt;/SPAN&gt;)]:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;PRE class="lia-code-sample line-numbers language-none"&gt;layer0 &lt;SPAN class="" style="color: #b27d12; font-weight: bold;"&gt;=&lt;/SPAN&gt; g&lt;SPAN class="" style="color: #b27d12; font-weight: bold;"&gt;.&lt;/SPAN&gt;layers&lt;SPAN class="" style="color: #b27d12; font-weight: bold;"&gt;[&lt;/SPAN&gt;&lt;SPAN class="" style="color: #258f8f; font-weight: bold;"&gt;0&lt;/SPAN&gt;&lt;SPAN class="" style="color: #b27d12; font-weight: bold;"&gt;]
&lt;/SPAN&gt;buffer0 &lt;SPAN class="" style="color: #b27d12; font-weight: bold;"&gt;=&lt;/SPAN&gt; use_proximity&lt;SPAN class="" style="color: #b27d12; font-weight: bold;"&gt;.&lt;/SPAN&gt;create_buffers&lt;SPAN class="" style="color: #b27d12; font-weight: bold;"&gt;(&lt;/SPAN&gt;layer0&lt;SPAN class="" style="color: #b27d12; font-weight: bold;"&gt;,&lt;/SPAN&gt; distances&lt;SPAN class="" style="color: #b27d12; font-weight: bold;"&gt;=&lt;/SPAN&gt;&lt;SPAN class="" style="color: #b27d12; font-weight: bold;"&gt;[&lt;/SPAN&gt;&lt;SPAN class="" style="color: #258f8f; font-weight: bold;"&gt;50&lt;/SPAN&gt;&lt;SPAN class="" style="color: #b27d12; font-weight: bold;"&gt;]&lt;/SPAN&gt;&lt;SPAN class="" style="color: #b27d12; font-weight: bold;"&gt;,&lt;/SPAN&gt; units &lt;SPAN class="" style="color: #b27d12; font-weight: bold;"&gt;=&lt;/SPAN&gt; &lt;SPAN class="" style="color: #0065ca; font-weight: bold;"&gt;'Miles'&lt;/SPAN&gt;&lt;SPAN class="" style="color: #b27d12; font-weight: bold;"&gt;)&lt;/SPAN&gt;&lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;and getting this error:&lt;/P&gt;&lt;P&gt;&lt;SPAN class="" style="color: #b27d12; font-weight: bold;"&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;SPAN class="" style="color: #b22b31; font-weight: bold;"&gt;AttributeError&lt;/SPAN&gt;: 'NoneType' object has no attribute 'create_buffers'&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sun, 12 Dec 2021 10:47:18 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-api-for-python-questions/how-to-draw-a-polygon-or-circle-on-few-locations/m-p/866860#M4465</guid>
      <dc:creator>BhartenduThakur</dc:creator>
      <dc:date>2021-12-12T10:47:18Z</dc:date>
    </item>
  </channel>
</rss>

