<?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 Converting spatially enabled dataframe to feature class returns empty feature class in ArcGIS API for Python Questions</title>
    <link>https://community.esri.com/t5/arcgis-api-for-python-questions/converting-spatially-enabled-dataframe-to-feature/m-p/1127417#M6920</link>
    <description>&lt;P&gt;Greetings All,&lt;/P&gt;&lt;P&gt;I'm trying to do the following:&lt;/P&gt;&lt;OL&gt;&lt;LI&gt;Convert JSON results from &lt;A href="https://openrouteservice.org/dev/#/api-docs/isochrones" target="_self"&gt;OpenRouteService API&lt;/A&gt; into geodataframe&lt;/LI&gt;&lt;LI&gt;Convert a geopandas geodataframe to a Spatially enabled dataframe (SEDF) using &lt;A href="https://developers.arcgis.com/python/api-reference/arcgis.features.toc.html#arcgis.features.GeoAccessor.from_geodataframe" target="_blank" rel="noopener"&gt;.from_geodataframe()&lt;/A&gt;&amp;nbsp;&lt;/LI&gt;&lt;LI&gt;Export the SEDF to a feature class using &lt;A href="https://developers.arcgis.com/python/api-reference/arcgis.features.toc.html#arcgis.features.GeoAccessor.to_featureclass" target="_blank" rel="noopener"&gt;.to_featureclass()&lt;/A&gt;&lt;/LI&gt;&lt;/OL&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;As the screenshot below shows, the conversion from geopandas GDF to ESRI SEDF is successful, but when I try exporting the SEDF to a feature class, the resulting feature class has no features in it.&lt;/P&gt;&lt;P&gt;Other notes&lt;/P&gt;&lt;UL&gt;&lt;LI&gt;I do have arcpy installed and imported it.&lt;/LI&gt;&lt;LI&gt;I also tried exporting SEDF to SHP, but that also returns zero features.&lt;/LI&gt;&lt;LI&gt;If I import a feature class to an SEDF then re-export the SEDF back to feature class, it works and I get the features as expected.&lt;/LI&gt;&lt;LI&gt;There *is* a workaround if I do the following: convert SEDF to FeatureSet &amp;gt; FeatureSet to geojson &amp;gt; run JSON to features in arcgis pro. The feature class resulting from this does work and contains the features I expect. But this is clunky!&lt;/LI&gt;&lt;LI&gt;&amp;nbsp;&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;Has anyone else experienced this?&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="Capture.PNG" style="width: 999px;"&gt;&lt;img src="https://community.esri.com/t5/image/serverpage/image-id/29993iB7DAD00AF4264520/image-size/large?v=v2&amp;amp;px=999" role="button" title="Capture.PNG" alt="Capture.PNG" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Has anyone else experienced this?&lt;/P&gt;</description>
    <pubDate>Sat, 18 Dec 2021 22:16:17 GMT</pubDate>
    <dc:creator>DarrenConly</dc:creator>
    <dc:date>2021-12-18T22:16:17Z</dc:date>
    <item>
      <title>Converting spatially enabled dataframe to feature class returns empty feature class</title>
      <link>https://community.esri.com/t5/arcgis-api-for-python-questions/converting-spatially-enabled-dataframe-to-feature/m-p/1127417#M6920</link>
      <description>&lt;P&gt;Greetings All,&lt;/P&gt;&lt;P&gt;I'm trying to do the following:&lt;/P&gt;&lt;OL&gt;&lt;LI&gt;Convert JSON results from &lt;A href="https://openrouteservice.org/dev/#/api-docs/isochrones" target="_self"&gt;OpenRouteService API&lt;/A&gt; into geodataframe&lt;/LI&gt;&lt;LI&gt;Convert a geopandas geodataframe to a Spatially enabled dataframe (SEDF) using &lt;A href="https://developers.arcgis.com/python/api-reference/arcgis.features.toc.html#arcgis.features.GeoAccessor.from_geodataframe" target="_blank" rel="noopener"&gt;.from_geodataframe()&lt;/A&gt;&amp;nbsp;&lt;/LI&gt;&lt;LI&gt;Export the SEDF to a feature class using &lt;A href="https://developers.arcgis.com/python/api-reference/arcgis.features.toc.html#arcgis.features.GeoAccessor.to_featureclass" target="_blank" rel="noopener"&gt;.to_featureclass()&lt;/A&gt;&lt;/LI&gt;&lt;/OL&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;As the screenshot below shows, the conversion from geopandas GDF to ESRI SEDF is successful, but when I try exporting the SEDF to a feature class, the resulting feature class has no features in it.&lt;/P&gt;&lt;P&gt;Other notes&lt;/P&gt;&lt;UL&gt;&lt;LI&gt;I do have arcpy installed and imported it.&lt;/LI&gt;&lt;LI&gt;I also tried exporting SEDF to SHP, but that also returns zero features.&lt;/LI&gt;&lt;LI&gt;If I import a feature class to an SEDF then re-export the SEDF back to feature class, it works and I get the features as expected.&lt;/LI&gt;&lt;LI&gt;There *is* a workaround if I do the following: convert SEDF to FeatureSet &amp;gt; FeatureSet to geojson &amp;gt; run JSON to features in arcgis pro. The feature class resulting from this does work and contains the features I expect. But this is clunky!&lt;/LI&gt;&lt;LI&gt;&amp;nbsp;&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;Has anyone else experienced this?&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="Capture.PNG" style="width: 999px;"&gt;&lt;img src="https://community.esri.com/t5/image/serverpage/image-id/29993iB7DAD00AF4264520/image-size/large?v=v2&amp;amp;px=999" role="button" title="Capture.PNG" alt="Capture.PNG" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Has anyone else experienced this?&lt;/P&gt;</description>
      <pubDate>Sat, 18 Dec 2021 22:16:17 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-api-for-python-questions/converting-spatially-enabled-dataframe-to-feature/m-p/1127417#M6920</guid>
      <dc:creator>DarrenConly</dc:creator>
      <dc:date>2021-12-18T22:16:17Z</dc:date>
    </item>
    <item>
      <title>Re: Converting spatially enabled dataframe to feature class returns empty feature class</title>
      <link>https://community.esri.com/t5/arcgis-api-for-python-questions/converting-spatially-enabled-dataframe-to-feature/m-p/1127419#M6921</link>
      <description>&lt;P&gt;related?&amp;nbsp;&lt;A href="https://community.esri.com/t5/arcgis-api-for-python-questions/converting-geodataframe-to-spatially-enabled/m-p/1099998" target="_blank"&gt;Solved: Converting geodataframe to spatially enabled dataf... - Esri Community&lt;/A&gt;&lt;/P&gt;&lt;P&gt;there are some issues under consideration on github&lt;/P&gt;</description>
      <pubDate>Sun, 19 Dec 2021 01:32:43 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-api-for-python-questions/converting-spatially-enabled-dataframe-to-feature/m-p/1127419#M6921</guid>
      <dc:creator>DanPatterson</dc:creator>
      <dc:date>2021-12-19T01:32:43Z</dc:date>
    </item>
    <item>
      <title>Re: Converting spatially enabled dataframe to feature class returns empty feature class</title>
      <link>https://community.esri.com/t5/arcgis-api-for-python-questions/converting-spatially-enabled-dataframe-to-feature/m-p/1127477#M6923</link>
      <description>&lt;P&gt;I'm unable to replicate this issue. JSON -&amp;gt; GDF -&amp;gt; SEDF -&amp;gt; FC works like a charm anywhere I use the process (which is admittedly not often).&lt;/P&gt;&lt;P&gt;Have you done some other testing on your geodataframe to make sure it's valid? Like plot it, or run some other validation?&lt;/P&gt;</description>
      <pubDate>Sun, 19 Dec 2021 20:20:51 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-api-for-python-questions/converting-spatially-enabled-dataframe-to-feature/m-p/1127477#M6923</guid>
      <dc:creator>jcarlson</dc:creator>
      <dc:date>2021-12-19T20:20:51Z</dc:date>
    </item>
    <item>
      <title>Re: Converting spatially enabled dataframe to feature class returns empty feature class</title>
      <link>https://community.esri.com/t5/arcgis-api-for-python-questions/converting-spatially-enabled-dataframe-to-feature/m-p/1127494#M6924</link>
      <description>&lt;P&gt;Yes, it plots correctly when I plot the geopandas geodataframe:&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="DarrenConly_0-1639956849014.png" style="width: 490px;"&gt;&lt;img src="https://community.esri.com/t5/image/serverpage/image-id/30013iE2885046DAF755E6/image-dimensions/490x228?v=v2" width="490" height="228" role="button" title="DarrenConly_0-1639956849014.png" alt="DarrenConly_0-1639956849014.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;It also plots correctly after I convert the GDF to ESRI's SEDF:&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="DarrenConly_1-1639956918472.png" style="width: 538px;"&gt;&lt;img src="https://community.esri.com/t5/image/serverpage/image-id/30014iFA95DB88AFDD461F/image-dimensions/538x240?v=v2" width="538" height="240" role="button" title="DarrenConly_1-1639956918472.png" alt="DarrenConly_1-1639956918472.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;And as I mentioned in my original post, if I do SEDF &amp;gt; FeatureSet &amp;gt; GeoJSON File &amp;gt; Feature class, it works. So the kink is when trying to directly go from SEDF to feature class.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Sun, 19 Dec 2021 23:38:01 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-api-for-python-questions/converting-spatially-enabled-dataframe-to-feature/m-p/1127494#M6924</guid>
      <dc:creator>DarrenConly</dc:creator>
      <dc:date>2021-12-19T23:38:01Z</dc:date>
    </item>
    <item>
      <title>Re: Converting spatially enabled dataframe to feature class returns empty feature class</title>
      <link>https://community.esri.com/t5/arcgis-api-for-python-questions/converting-spatially-enabled-dataframe-to-feature/m-p/1127496#M6925</link>
      <description>&lt;P&gt;Could be. I read the thread you linked to. Problem is similar (issue going from SEDF to FC), but instead of my issue (writing empty FC), it seems to mangle the geometry when writing. Looking at the &lt;A href="https://github.com/Esri/arcgis-python-api/issues/1096" target="_self"&gt;GitHub issue&lt;/A&gt; they opened, there will be a fix for the mangled geometry coming in January 2022, maybe that fix will also fix my problem?&lt;/P&gt;</description>
      <pubDate>Mon, 20 Dec 2021 00:32:15 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-api-for-python-questions/converting-spatially-enabled-dataframe-to-feature/m-p/1127496#M6925</guid>
      <dc:creator>DarrenConly</dc:creator>
      <dc:date>2021-12-20T00:32:15Z</dc:date>
    </item>
    <item>
      <title>Re: Converting spatially enabled dataframe to feature class returns empty feature class</title>
      <link>https://community.esri.com/t5/arcgis-api-for-python-questions/converting-spatially-enabled-dataframe-to-feature/m-p/1192664#M7567</link>
      <description>&lt;P&gt;I'm having the same problem! Would love some help if anybody has an idea why this is happening.&lt;/P&gt;</description>
      <pubDate>Sat, 16 Jul 2022 13:11:37 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-api-for-python-questions/converting-spatially-enabled-dataframe-to-feature/m-p/1192664#M7567</guid>
      <dc:creator>BillyHansen6</dc:creator>
      <dc:date>2022-07-16T13:11:37Z</dc:date>
    </item>
    <item>
      <title>Re: Converting spatially enabled dataframe to feature class returns empty feature class</title>
      <link>https://community.esri.com/t5/arcgis-api-for-python-questions/converting-spatially-enabled-dataframe-to-feature/m-p/1192667#M7568</link>
      <description>&lt;P&gt;Okay for me the problem was solved when I removed the date fields from my spatial dataframe. For some reason those were breaking the export.&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Sat, 16 Jul 2022 13:35:40 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-api-for-python-questions/converting-spatially-enabled-dataframe-to-feature/m-p/1192667#M7568</guid>
      <dc:creator>BillyHansen6</dc:creator>
      <dc:date>2022-07-16T13:35:40Z</dc:date>
    </item>
  </channel>
</rss>

