<?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 How to create a feature layer from geojson in memory? in ArcGIS API for Python Questions</title>
    <link>https://community.esri.com/t5/arcgis-api-for-python-questions/how-to-create-a-feature-layer-from-geojson-in/m-p/1390525#M9718</link>
    <description>&lt;P&gt;I'm a newbie to the Portal API for Python, and I am just trying to figure out how to go from geojson loaded into memory (say, a WFS response object) to a feature layer on an ArcGIS Enterprise portal.&amp;nbsp; I'm happy to read documentation and follow examples, but everything I've seen involves messing around with CSVs and pandas (which then requires cleaning up field headings etc).&lt;/P&gt;&lt;P&gt;Additionally all the questions seem to presuppose you have a geojson file sitting around, but what about when you want to avoid the IO overhead?&amp;nbsp; Seems silly to write the content out to a file, only to read it right back in again.&lt;/P&gt;&lt;P&gt;Is there a more-or-less direct path to go from the data in the buffer, in json format, right to a new feature layer?&lt;/P&gt;</description>
    <pubDate>Tue, 05 Mar 2024 21:35:49 GMT</pubDate>
    <dc:creator>EricEagle</dc:creator>
    <dc:date>2024-03-05T21:35:49Z</dc:date>
    <item>
      <title>How to create a feature layer from geojson in memory?</title>
      <link>https://community.esri.com/t5/arcgis-api-for-python-questions/how-to-create-a-feature-layer-from-geojson-in/m-p/1390525#M9718</link>
      <description>&lt;P&gt;I'm a newbie to the Portal API for Python, and I am just trying to figure out how to go from geojson loaded into memory (say, a WFS response object) to a feature layer on an ArcGIS Enterprise portal.&amp;nbsp; I'm happy to read documentation and follow examples, but everything I've seen involves messing around with CSVs and pandas (which then requires cleaning up field headings etc).&lt;/P&gt;&lt;P&gt;Additionally all the questions seem to presuppose you have a geojson file sitting around, but what about when you want to avoid the IO overhead?&amp;nbsp; Seems silly to write the content out to a file, only to read it right back in again.&lt;/P&gt;&lt;P&gt;Is there a more-or-less direct path to go from the data in the buffer, in json format, right to a new feature layer?&lt;/P&gt;</description>
      <pubDate>Tue, 05 Mar 2024 21:35:49 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-api-for-python-questions/how-to-create-a-feature-layer-from-geojson-in/m-p/1390525#M9718</guid>
      <dc:creator>EricEagle</dc:creator>
      <dc:date>2024-03-05T21:35:49Z</dc:date>
    </item>
    <item>
      <title>Re: How to create a feature layer from geojson in memory?</title>
      <link>https://community.esri.com/t5/arcgis-api-for-python-questions/how-to-create-a-feature-layer-from-geojson-in/m-p/1414055#M9923</link>
      <description>&lt;P&gt;I have not performed this workflow myself but this would be my approach.&lt;/P&gt;&lt;UL&gt;&lt;LI&gt;Create an empty feature service if needed with &lt;A href="https://developers.arcgis.com/python/api-reference/arcgis.gis.toc.html#arcgis.gis.ContentManager.create_service" target="_blank" rel="noopener"&gt;create_service()&lt;/A&gt;, or use an existing.&amp;nbsp;&lt;/LI&gt;&lt;LI&gt;Read the GeoJSON and parse to get the required info - geomtype, field names, attributes and geometry.&lt;/LI&gt;&lt;LI&gt;Create a Feature Layer in the Feature Service based on the geomtype and define schema, or use an existing Feature Layer. Achievable by using JSON to create the layer, ill need to dig out some code for you later.&lt;/LI&gt;&lt;LI&gt;Edit the Feature Layer to add in the records. &lt;A href="https://developers.arcgis.com/python/api-reference/arcgis.features.toc.html#arcgis.features.FeatureLayer.append" target="_blank" rel="noopener"&gt;append()&lt;/A&gt;,&amp;nbsp; &lt;A href="https://developers.arcgis.com/python/api-reference/arcgis.features.toc.html#arcgis.features.FeatureLayer.edit_features" target="_blank" rel="noopener"&gt;edit_features()&lt;/A&gt;&lt;/LI&gt;&lt;/UL&gt;</description>
      <pubDate>Tue, 23 Apr 2024 11:51:29 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-api-for-python-questions/how-to-create-a-feature-layer-from-geojson-in/m-p/1414055#M9923</guid>
      <dc:creator>Clubdebambos</dc:creator>
      <dc:date>2024-04-23T11:51:29Z</dc:date>
    </item>
    <item>
      <title>Re: How to create a feature layer from geojson in memory?</title>
      <link>https://community.esri.com/t5/arcgis-api-for-python-questions/how-to-create-a-feature-layer-from-geojson-in/m-p/1618753#M11422</link>
      <description>&lt;P&gt;This thread is a year old but maybe this can help someone. I do it with ESRI Spatially Enabled Dataframes. Read the data into an in-memory SEDF, use&amp;nbsp;&lt;SPAN&gt;spatial.to_featurelayer to publish to the enterprise.&lt;/SPAN&gt;&lt;/P&gt;</description>
      <pubDate>Wed, 28 May 2025 00:32:09 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-api-for-python-questions/how-to-create-a-feature-layer-from-geojson-in/m-p/1618753#M11422</guid>
      <dc:creator>ErikLash_HiCo</dc:creator>
      <dc:date>2025-05-28T00:32:09Z</dc:date>
    </item>
  </channel>
</rss>

