<?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 plot a specific geometry column of Spatial enabled DataFrames? in ArcGIS API for Python Questions</title>
    <link>https://community.esri.com/t5/arcgis-api-for-python-questions/how-to-plot-a-specific-geometry-column-of-spatial/m-p/1237779#M8103</link>
    <description>&lt;P&gt;As a followup, I tried creating the data using the Pro toolbox,then importing as a SEDF.&amp;nbsp; That worked.&amp;nbsp; &amp;nbsp;A bit more experimentation showed that it was the number of colums in the dataframe.&amp;nbsp; Subsetting the test dataframe to use the X and Y columns then creating the SEDF worked.&lt;/P&gt;</description>
    <pubDate>Mon, 05 Dec 2022 15:02:48 GMT</pubDate>
    <dc:creator>DavidAnderson_1701</dc:creator>
    <dc:date>2022-12-05T15:02:48Z</dc:date>
    <item>
      <title>How to plot a specific geometry column of Spatial enabled DataFrames?</title>
      <link>https://community.esri.com/t5/arcgis-api-for-python-questions/how-to-plot-a-specific-geometry-column-of-spatial/m-p/1235165#M8057</link>
      <description>&lt;P&gt;I am just getting started with SeDF and I was wondering on how I can actually visualize objects with multiple geometries.&lt;/P&gt;&lt;P data-unlink="true"&gt;Following the &lt;A href="https://developers.arcgis.com/python/guide/part1-introduction-to-sedf/" target="_self"&gt;introduction&lt;/A&gt;, a buffer geometry is added to the dataframe. The map widget of my notebook is however, only showing the points. How can I visualize the buffer geometries?&lt;/P&gt;&lt;P data-unlink="true"&gt;Is there a way to specify what geometry column should be used for the visualization?&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;LI-CODE lang="python"&gt;# generates map widget visulizing the points, though info widgets places two objects there, when I click on a point
point_df.spatial.plot()
# AttributeError: 'Series' object has no attribute 'spatial'
point_df.Buffer_2.spatial.plot()
# Since plot generates a MapView, the object is not subscriptable
point_df.spatial.plot()['Buffer_2']
# or has no attribute 'Buffer_2'
point_df.spatial.plot().Buffer_2&lt;/LI-CODE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Sun, 27 Nov 2022 16:12:50 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-api-for-python-questions/how-to-plot-a-specific-geometry-column-of-spatial/m-p/1235165#M8057</guid>
      <dc:creator>TomGeo</dc:creator>
      <dc:date>2022-11-27T16:12:50Z</dc:date>
    </item>
    <item>
      <title>Re: How to plot a specific geometry column of Spatial enabled DataFrames?</title>
      <link>https://community.esri.com/t5/arcgis-api-for-python-questions/how-to-plot-a-specific-geometry-column-of-spatial/m-p/1235558#M8060</link>
      <description>&lt;P&gt;In theory the set_geometry method of the spatial data frame should work.&lt;/P&gt;&lt;P&gt;&lt;A href="https://developers.arcgis.com/python/api-reference/arcgis.features.toc.html" target="_blank"&gt;https://developers.arcgis.com/python/api-reference/arcgis.features.toc.html&lt;/A&gt;&lt;/P&gt;&lt;P&gt;However, my testing shows that it does not work.&amp;nbsp; &amp;nbsp;For example this works&lt;/P&gt;&lt;P&gt;sedf['buffer_2'] = sedf.SHAPE.geom.buffer(distance=200)&lt;/P&gt;&lt;P&gt;sedf.spatial.set_geometry('buffer_2',inplace=True)&lt;/P&gt;&lt;P&gt;This command&amp;nbsp;&lt;/P&gt;&lt;P&gt;sedf.spatial.geometry_type&lt;/P&gt;&lt;P&gt;returns&amp;nbsp;&lt;/P&gt;&lt;PRE&gt;['polygon']&lt;/PRE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;However this command&amp;nbsp;&lt;/P&gt;&lt;P&gt;ap_sedf[0:100].spatial.area&lt;/P&gt;&lt;P&gt;returns&lt;/P&gt;&lt;P&gt;0.0&lt;/P&gt;&lt;P&gt;Which for a polygon feature should not be a not zero value.&amp;nbsp; The plot function also fails to plot big circles.&lt;/P&gt;&lt;P&gt;My take on this is that the spatially enabled dataframe implementation has some issues and bugs.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Mon, 28 Nov 2022 18:51:13 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-api-for-python-questions/how-to-plot-a-specific-geometry-column-of-spatial/m-p/1235558#M8060</guid>
      <dc:creator>DavidAnderson_1701</dc:creator>
      <dc:date>2022-11-28T18:51:13Z</dc:date>
    </item>
    <item>
      <title>Re: How to plot a specific geometry column of Spatial enabled DataFrames?</title>
      <link>https://community.esri.com/t5/arcgis-api-for-python-questions/how-to-plot-a-specific-geometry-column-of-spatial/m-p/1235582#M8061</link>
      <description>&lt;P&gt;Yes, together with a colleague I tried today the set_geometry method and we experienced the same, also the issues with plotting the geometry into the map widget we can confirm.&amp;nbsp;&lt;BR /&gt;&lt;BR /&gt;&lt;/P&gt;&lt;P&gt;Thanks for looking into it and the test with geometry_type and testing against the geometries area.&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Mon, 28 Nov 2022 20:06:31 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-api-for-python-questions/how-to-plot-a-specific-geometry-column-of-spatial/m-p/1235582#M8061</guid>
      <dc:creator>TomGeo</dc:creator>
      <dc:date>2022-11-28T20:06:31Z</dc:date>
    </item>
    <item>
      <title>Re: How to plot a specific geometry column of Spatial enabled DataFrames?</title>
      <link>https://community.esri.com/t5/arcgis-api-for-python-questions/how-to-plot-a-specific-geometry-column-of-spatial/m-p/1235601#M8062</link>
      <description>&lt;P&gt;Welcome.&amp;nbsp;&lt;/P&gt;&lt;P&gt;BTW, I agree with your tag line about geopackages.&amp;nbsp;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Mon, 28 Nov 2022 20:46:01 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-api-for-python-questions/how-to-plot-a-specific-geometry-column-of-spatial/m-p/1235601#M8062</guid>
      <dc:creator>DavidAnderson_1701</dc:creator>
      <dc:date>2022-11-28T20:46:01Z</dc:date>
    </item>
    <item>
      <title>Re: How to plot a specific geometry column of Spatial enabled DataFrames?</title>
      <link>https://community.esri.com/t5/arcgis-api-for-python-questions/how-to-plot-a-specific-geometry-column-of-spatial/m-p/1237779#M8103</link>
      <description>&lt;P&gt;As a followup, I tried creating the data using the Pro toolbox,then importing as a SEDF.&amp;nbsp; That worked.&amp;nbsp; &amp;nbsp;A bit more experimentation showed that it was the number of colums in the dataframe.&amp;nbsp; Subsetting the test dataframe to use the X and Y columns then creating the SEDF worked.&lt;/P&gt;</description>
      <pubDate>Mon, 05 Dec 2022 15:02:48 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-api-for-python-questions/how-to-plot-a-specific-geometry-column-of-spatial/m-p/1237779#M8103</guid>
      <dc:creator>DavidAnderson_1701</dc:creator>
      <dc:date>2022-12-05T15:02:48Z</dc:date>
    </item>
  </channel>
</rss>

