<?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 Create feature layer from geometry  in ArcGIS API for Python Questions</title>
    <link>https://community.esri.com/t5/arcgis-api-for-python-questions/create-feature-layer-from-geometry/m-p/840688#M3506</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I looked extensively in this forum but I cannot get to decipher the answer. If I create a polygon (this is from an example in here) and want to make that into a feature layer, how can this be done? This would be useful for me to do. So, say I create a polygon from bufferin an initial point:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;import arcpy,json&amp;nbsp;&lt;/P&gt;&lt;P&gt;x = 116.6735507&lt;/P&gt;&lt;P&gt;y = -31.28888386&lt;/P&gt;&lt;P&gt;point = arcpy.Point(float(x),float(y))&lt;/P&gt;&lt;P&gt;sr = arcpy.SpatialReference(3857)&lt;/P&gt;&lt;P&gt;ptGeometry = arcpy.PointGeometry(point,sr)&lt;/P&gt;&lt;P&gt;length = 1&lt;/P&gt;&lt;P&gt;buff_geometry = ptGeometry.buffer(length)&lt;/P&gt;&lt;P&gt;densify = buff_geometry.densify('DISTANCE',1,1)&lt;/P&gt;&lt;P&gt;shape = densify.JSON&lt;/P&gt;&lt;P&gt;newshape = json.loads(shape)&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;So now i have a "newshape" polygon geometry object. I cannot seem to display this as a visual item in jupyter, but moreover, I cannot find a way to save this permanently as a feature layer. I think you have to create a feature layer collection first and I looked at the arcgis.gis api but could not find anything that would do this. Any ideas on how to save a polygon (or point or line feature) created this way as a feature layer?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;And once I have created the layer, how would I add additional polygons to it?&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Hugo&amp;nbsp;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Thu, 25 Oct 2018 06:38:51 GMT</pubDate>
    <dc:creator>HugoBouckaert1</dc:creator>
    <dc:date>2018-10-25T06:38:51Z</dc:date>
    <item>
      <title>Create feature layer from geometry</title>
      <link>https://community.esri.com/t5/arcgis-api-for-python-questions/create-feature-layer-from-geometry/m-p/840688#M3506</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I looked extensively in this forum but I cannot get to decipher the answer. If I create a polygon (this is from an example in here) and want to make that into a feature layer, how can this be done? This would be useful for me to do. So, say I create a polygon from bufferin an initial point:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;import arcpy,json&amp;nbsp;&lt;/P&gt;&lt;P&gt;x = 116.6735507&lt;/P&gt;&lt;P&gt;y = -31.28888386&lt;/P&gt;&lt;P&gt;point = arcpy.Point(float(x),float(y))&lt;/P&gt;&lt;P&gt;sr = arcpy.SpatialReference(3857)&lt;/P&gt;&lt;P&gt;ptGeometry = arcpy.PointGeometry(point,sr)&lt;/P&gt;&lt;P&gt;length = 1&lt;/P&gt;&lt;P&gt;buff_geometry = ptGeometry.buffer(length)&lt;/P&gt;&lt;P&gt;densify = buff_geometry.densify('DISTANCE',1,1)&lt;/P&gt;&lt;P&gt;shape = densify.JSON&lt;/P&gt;&lt;P&gt;newshape = json.loads(shape)&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;So now i have a "newshape" polygon geometry object. I cannot seem to display this as a visual item in jupyter, but moreover, I cannot find a way to save this permanently as a feature layer. I think you have to create a feature layer collection first and I looked at the arcgis.gis api but could not find anything that would do this. Any ideas on how to save a polygon (or point or line feature) created this way as a feature layer?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;And once I have created the layer, how would I add additional polygons to it?&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Hugo&amp;nbsp;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 25 Oct 2018 06:38:51 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-api-for-python-questions/create-feature-layer-from-geometry/m-p/840688#M3506</guid>
      <dc:creator>HugoBouckaert1</dc:creator>
      <dc:date>2018-10-25T06:38:51Z</dc:date>
    </item>
  </channel>
</rss>

