<?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: SpatialDataFrame has been deprecated in ArcGIS API for Python Questions</title>
    <link>https://community.esri.com/t5/arcgis-api-for-python-questions/spatialdataframe-has-been-deprecated/m-p/823374#M2907</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Found reason: &amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;SEDF which works =&amp;nbsp;&lt;/P&gt;&lt;PRE style="color: #000000; background-color: transparent; border: 0px; font-size: 14px; padding: 1px 0px;"&gt;{'x': -13657899.64491753,  'y': 5749953.6899396395,  'spatialReference': {'wkid': 102100, 'latestWkid': 3857}}&lt;/PRE&gt;&lt;P&gt;SEDF which doesn't =&amp;nbsp;&lt;/P&gt;&lt;PRE style="color: #000000; background-color: transparent; border: 0px; font-size: 14px; padding: 1px 0px;"&gt;{'x': -13657899.64491753,  'y': 5749953.689939638,  'spatialReference': {'wkid': 4326}}&lt;/PRE&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Wed, 01 Apr 2020 01:06:44 GMT</pubDate>
    <dc:creator>artzaifman</dc:creator>
    <dc:date>2020-04-01T01:06:44Z</dc:date>
    <item>
      <title>SpatialDataFrame has been deprecated</title>
      <link>https://community.esri.com/t5/arcgis-api-for-python-questions/spatialdataframe-has-been-deprecated/m-p/823363#M2896</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I receive following warning after this statement is run: &lt;STRONG&gt;&lt;EM&gt;sdf = features.SpatialDataframe(df)&lt;/EM&gt;&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;PRE style="color: #000000; background-color: #ffdddd; border: 0px; font-size: 14px; padding: 1px 0px;"&gt;opt/anaconda3/lib/python3.7/site-packages/arcgis/features/_data/geodataset/geodataframe.py:221: UserWarning: SpatialDataFrame has been deprecated.  Please switch to the GeoAccessor/GeoSeriesAccessor.   warnings.warn("SpatialDataFrame has been deprecated.  Please switch to the GeoAccessor/GeoSeriesAccessor.")&lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;What is the correct way to create an 'sdf' now?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 31 Mar 2020 12:32:21 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-api-for-python-questions/spatialdataframe-has-been-deprecated/m-p/823363#M2896</guid>
      <dc:creator>artzaifman</dc:creator>
      <dc:date>2020-03-31T12:32:21Z</dc:date>
    </item>
    <item>
      <title>Re: SpatialDataFrame has been deprecated</title>
      <link>https://community.esri.com/t5/arcgis-api-for-python-questions/spatialdataframe-has-been-deprecated/m-p/823364#M2897</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi &lt;A href="https://community.esri.com/migrated-users/397918"&gt;art zaifman&lt;/A&gt;,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;The answer to your question might be found here: &lt;A class="link-titled" href="https://developers.arcgis.com/python/guide/introduction-to-the-spatially-enabled-dataframe/" title="https://developers.arcgis.com/python/guide/introduction-to-the-spatially-enabled-dataframe/"&gt;Introduction to the Spatially Enabled DataFrame | ArcGIS for Developers&lt;/A&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;BLOCKQUOTE class="jive_macro_quote jive-quote jive_text_macro"&gt;&lt;P&gt;New at version 1.5, the Spatially Enabled DataFrame is an evolution of the &lt;CODE&gt;SpatialDataFrame&lt;/CODE&gt; object that you may be familiar with. While the &lt;CODE&gt;SDF&lt;/CODE&gt; object is still avialable for use, the team has stopped active development of it and is promoting the use of this new Spatially Enabled DataFrame pattern. The SEDF provides you better memory management, ability to handle larger datasets and is the pattern that Pandas advocates as the path forward.&lt;/P&gt;&lt;/BLOCKQUOTE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;HTH,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Egge-Jan&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 31 Mar 2020 12:48:56 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-api-for-python-questions/spatialdataframe-has-been-deprecated/m-p/823364#M2897</guid>
      <dc:creator>Egge-Jan_Pollé</dc:creator>
      <dc:date>2020-03-31T12:48:56Z</dc:date>
    </item>
    <item>
      <title>Re: SpatialDataFrame has been deprecated</title>
      <link>https://community.esri.com/t5/arcgis-api-for-python-questions/spatialdataframe-has-been-deprecated/m-p/823365#M2898</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;It does help and thank you for the rapid reply, Egge-Jan!&lt;/P&gt;&lt;P&gt;Short follow-up question: &amp;nbsp;is there a description of the method in which &lt;EM&gt;&lt;STRONG&gt;GIS().content.import_data&lt;/STRONG&gt;&lt;/EM&gt;(panda data frame containing &lt;STRONG&gt;lat, lon columns&lt;/STRONG&gt;) populates the &lt;EM&gt;&lt;STRONG&gt;SHAPE&lt;/STRONG&gt;&lt;/EM&gt; column? &amp;nbsp;Main question is why are the 'x, y' values in the SHAPE column so different from the original 'latitude, longitude' values&lt;IMG class="image-1 jive-image" src="https://community.esri.com/legacyfs/online/486966_pastedImage_7.png" /&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 31 Mar 2020 15:06:45 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-api-for-python-questions/spatialdataframe-has-been-deprecated/m-p/823365#M2898</guid>
      <dc:creator>artzaifman</dc:creator>
      <dc:date>2020-03-31T15:06:45Z</dc:date>
    </item>
    <item>
      <title>Re: SpatialDataFrame has been deprecated</title>
      <link>https://community.esri.com/t5/arcgis-api-for-python-questions/spatialdataframe-has-been-deprecated/m-p/823366#M2899</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Are these UTM coordinates?&lt;/P&gt;&lt;P&gt;Thanks.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 31 Mar 2020 15:26:47 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-api-for-python-questions/spatialdataframe-has-been-deprecated/m-p/823366#M2899</guid>
      <dc:creator>artzaifman</dc:creator>
      <dc:date>2020-03-31T15:26:47Z</dc:date>
    </item>
    <item>
      <title>Re: SpatialDataFrame has been deprecated</title>
      <link>https://community.esri.com/t5/arcgis-api-for-python-questions/spatialdataframe-has-been-deprecated/m-p/823367#M2900</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi &lt;A href="https://community.esri.com/migrated-users/397918"&gt;art zaifman&lt;/A&gt;,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Always happy to help &lt;span class="lia-unicode-emoji" title=":slightly_smiling_face:"&gt;🙂&lt;/span&gt; If you consider your initial question being answered you might consider to 'close the call' by marking my answer as correct.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regarding your follow-up question: I guess this has something to do with the use of different&amp;nbsp;coordinate systems being used. It looks like your input latitude and longitude are in WGS84 (&lt;A class="link-titled" href="https://epsg.io/4326" title="https://epsg.io/4326"&gt;EPSG:4326&lt;/A&gt;) whereas the coordinates in the SHAPE column are - most probably - in&amp;nbsp;&lt;A class="link-titled" href="https://epsg.io/3857" title="https://epsg.io/3857"&gt;EPSG:3857&lt;/A&gt;.&amp;nbsp; (EPSG:3857 is a Spherical Mercator projection coordinate system popularized by web services such as Google and later OpenStreetMap, and also being used by Esri, with WKID:102100).&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I guess the points do appear in the right location when plotted on the map, don't they?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;BR,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Egge-Jan&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 31 Mar 2020 15:30:25 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-api-for-python-questions/spatialdataframe-has-been-deprecated/m-p/823367#M2900</guid>
      <dc:creator>Egge-Jan_Pollé</dc:creator>
      <dc:date>2020-03-31T15:30:25Z</dc:date>
    </item>
    <item>
      <title>Re: SpatialDataFrame has been deprecated</title>
      <link>https://community.esri.com/t5/arcgis-api-for-python-questions/spatialdataframe-has-been-deprecated/m-p/823368#M2901</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;webby stuff is usually in a Web Mercator projection&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 31 Mar 2020 16:09:51 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-api-for-python-questions/spatialdataframe-has-been-deprecated/m-p/823368#M2901</guid>
      <dc:creator>DanPatterson_Retired</dc:creator>
      <dc:date>2020-03-31T16:09:51Z</dc:date>
    </item>
    <item>
      <title>Re: SpatialDataFrame has been deprecated</title>
      <link>https://community.esri.com/t5/arcgis-api-for-python-questions/spatialdataframe-has-been-deprecated/m-p/823369#M2902</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;... so that would be this WKID:102100/EPSG:3857 thing, as I mentioned above.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 31 Mar 2020 16:12:46 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-api-for-python-questions/spatialdataframe-has-been-deprecated/m-p/823369#M2902</guid>
      <dc:creator>Egge-Jan_Pollé</dc:creator>
      <dc:date>2020-03-31T16:12:46Z</dc:date>
    </item>
    <item>
      <title>Re: SpatialDataFrame has been deprecated</title>
      <link>https://community.esri.com/t5/arcgis-api-for-python-questions/spatialdataframe-has-been-deprecated/m-p/823370#M2903</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;The points are mapped correctly and thank you again!&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 31 Mar 2020 16:20:56 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-api-for-python-questions/spatialdataframe-has-been-deprecated/m-p/823370#M2903</guid>
      <dc:creator>artzaifman</dc:creator>
      <dc:date>2020-03-31T16:20:56Z</dc:date>
    </item>
    <item>
      <title>Re: SpatialDataFrame has been deprecated</title>
      <link>https://community.esri.com/t5/arcgis-api-for-python-questions/spatialdataframe-has-been-deprecated/m-p/823371#M2904</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;from pyproj import Proj, transform&lt;/P&gt;&lt;P&gt;print(transform(Proj('epsg:4326'), Proj('epsg:3857'), 45.810, -122.691)) &amp;nbsp;# longitude first, latitude second.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;PRE style="color: #000000; background-color: transparent; border: 0px; font-size: 14px; padding: 1px 0px;"&gt;(-13657899.64491753, 5749953.689939638)&lt;/PRE&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 31 Mar 2020 17:06:00 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-api-for-python-questions/spatialdataframe-has-been-deprecated/m-p/823371#M2904</guid>
      <dc:creator>artzaifman</dc:creator>
      <dc:date>2020-03-31T17:06:00Z</dc:date>
    </item>
    <item>
      <title>Re: SpatialDataFrame has been deprecated</title>
      <link>https://community.esri.com/t5/arcgis-api-for-python-questions/spatialdataframe-has-been-deprecated/m-p/823372#M2905</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;BTW, here's an excellent reference for how to code bulk transformations using pyproj: &amp;nbsp;&lt;A href="https://github.com/pyproj4/pyproj/issues/128#issuecomment-474627399"&gt;High-performance bulk transformation of coordinates&lt;/A&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 31 Mar 2020 18:37:58 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-api-for-python-questions/spatialdataframe-has-been-deprecated/m-p/823372#M2905</guid>
      <dc:creator>artzaifman</dc:creator>
      <dc:date>2020-03-31T18:37:58Z</dc:date>
    </item>
    <item>
      <title>Re: SpatialDataFrame has been deprecated</title>
      <link>https://community.esri.com/t5/arcgis-api-for-python-questions/spatialdataframe-has-been-deprecated/m-p/823373#M2906</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Related to the issues above, is it possible to use sdf.spatial.plot(map_widget=...) on an SEDF derived from a regular panda DF where the SEDF was &lt;STRONG&gt;NOT &lt;/STRONG&gt;created with&lt;STRONG&gt; &lt;EM&gt;import_data() &lt;/EM&gt;&lt;/STRONG&gt;method? &amp;nbsp;The SEDF was instead created as follows: &lt;EM&gt;&lt;STRONG&gt;&amp;nbsp;sdf = GeoAccessor.from_xy(df, 'x', 'y')&lt;/STRONG&gt;&lt;/EM&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 31 Mar 2020 22:13:54 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-api-for-python-questions/spatialdataframe-has-been-deprecated/m-p/823373#M2906</guid>
      <dc:creator>artzaifman</dc:creator>
      <dc:date>2020-03-31T22:13:54Z</dc:date>
    </item>
    <item>
      <title>Re: SpatialDataFrame has been deprecated</title>
      <link>https://community.esri.com/t5/arcgis-api-for-python-questions/spatialdataframe-has-been-deprecated/m-p/823374#M2907</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Found reason: &amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;SEDF which works =&amp;nbsp;&lt;/P&gt;&lt;PRE style="color: #000000; background-color: transparent; border: 0px; font-size: 14px; padding: 1px 0px;"&gt;{'x': -13657899.64491753,  'y': 5749953.6899396395,  'spatialReference': {'wkid': 102100, 'latestWkid': 3857}}&lt;/PRE&gt;&lt;P&gt;SEDF which doesn't =&amp;nbsp;&lt;/P&gt;&lt;PRE style="color: #000000; background-color: transparent; border: 0px; font-size: 14px; padding: 1px 0px;"&gt;{'x': -13657899.64491753,  'y': 5749953.689939638,  'spatialReference': {'wkid': 4326}}&lt;/PRE&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 01 Apr 2020 01:06:44 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-api-for-python-questions/spatialdataframe-has-been-deprecated/m-p/823374#M2907</guid>
      <dc:creator>artzaifman</dc:creator>
      <dc:date>2020-04-01T01:06:44Z</dc:date>
    </item>
    <item>
      <title>Re: SpatialDataFrame has been deprecated</title>
      <link>https://community.esri.com/t5/arcgis-api-for-python-questions/spatialdataframe-has-been-deprecated/m-p/823375#M2908</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Continuing to add to this thread since it may help other newbies to arcGIS Pro like like me!&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Discovered that sdf.spatial.plot() will fail to render (without generation an error) if it encounters NaN values.&lt;/P&gt;&lt;P&gt;Here's snippet to remove NaNs from SEDF:&lt;/P&gt;&lt;P&gt;&lt;EM&gt;&lt;STRONG&gt;sdf = GeoAccessor.from_xy(df, 'x', 'y', sr=102100) # 102100 is necessary to render using sdf.spatial.plot() method&lt;/STRONG&gt;&lt;/EM&gt;&lt;/P&gt;&lt;P&gt;&lt;EM&gt;&lt;STRONG&gt;...&lt;/STRONG&gt;&lt;/EM&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;EM&gt;&lt;STRONG&gt;sdf[~sdf['SHAPE'].apply(lambda r: numpy.isnan(r['x']) or numpy.isnan(r['y']))]&amp;nbsp;&amp;nbsp;&amp;nbsp;# drop NaNs which cause plot to silently fail&lt;/STRONG&gt;&lt;/EM&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 01 Apr 2020 15:31:28 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-api-for-python-questions/spatialdataframe-has-been-deprecated/m-p/823375#M2908</guid>
      <dc:creator>artzaifman</dc:creator>
      <dc:date>2020-04-01T15:31:28Z</dc:date>
    </item>
  </channel>
</rss>

