<?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 ArcGIS Server Geometry Service Buffer Polygon in ArcGIS Enterprise Questions</title>
    <link>https://community.esri.com/t5/arcgis-enterprise-questions/arcgis-server-geometry-service-buffer-polygon/m-p/1577967#M41482</link>
    <description>&lt;P&gt;I am working on a project to create a convex hull polygon for a list of points and then take the convex hull polygon and buffer it all using the ArcGIS Server Geometry service end points.&lt;/P&gt;&lt;P&gt;I can create the convex hull fine, but when I run the buffer I get an error message stating that the operation was attempted on an empty geometry. I am using a Jupyter Notebook and the ArcGIS Api for Python to make the calls. I also attempted to take the polygon geometry and use the rest end point directly but get an error message stating "&lt;SPAN&gt;The operation cannot be performed on a non-simple geometry." &lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;I was able to create a buffer of the vertexes from the convex hull polygon, but that is not what we are looking for.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;For a test I wrote the convex hull to a hosted feature service because the documentation uses a query of a feature service to get the geometry. Below is the relevant lines from the notebook.&lt;/P&gt;&lt;P&gt;geom1 = Polygon(boundary_layer.query(where="name='test'").features[0].geometry)&lt;/P&gt;&lt;P&gt;buffer = buffer(geometries =[geom1],&lt;BR /&gt;&amp;nbsp; distances=[1000],&lt;BR /&gt;&amp;nbsp; in_sr = {"wkid": 102100},&lt;BR /&gt;&amp;nbsp; unit = LengthUnits.FOOT,&lt;BR /&gt;&amp;nbsp; out_sr = 102100,&lt;BR /&gt;&amp;nbsp; buffer_sr = 102100,&lt;BR /&gt;&amp;nbsp; union_results = False,&lt;BR /&gt;&amp;nbsp; geodesic = True,&lt;BR /&gt;&amp;nbsp; future = False)&lt;/P&gt;</description>
    <pubDate>Wed, 22 Jan 2025 20:46:45 GMT</pubDate>
    <dc:creator>CaseyBentz</dc:creator>
    <dc:date>2025-01-22T20:46:45Z</dc:date>
    <item>
      <title>ArcGIS Server Geometry Service Buffer Polygon</title>
      <link>https://community.esri.com/t5/arcgis-enterprise-questions/arcgis-server-geometry-service-buffer-polygon/m-p/1577967#M41482</link>
      <description>&lt;P&gt;I am working on a project to create a convex hull polygon for a list of points and then take the convex hull polygon and buffer it all using the ArcGIS Server Geometry service end points.&lt;/P&gt;&lt;P&gt;I can create the convex hull fine, but when I run the buffer I get an error message stating that the operation was attempted on an empty geometry. I am using a Jupyter Notebook and the ArcGIS Api for Python to make the calls. I also attempted to take the polygon geometry and use the rest end point directly but get an error message stating "&lt;SPAN&gt;The operation cannot be performed on a non-simple geometry." &lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;I was able to create a buffer of the vertexes from the convex hull polygon, but that is not what we are looking for.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;For a test I wrote the convex hull to a hosted feature service because the documentation uses a query of a feature service to get the geometry. Below is the relevant lines from the notebook.&lt;/P&gt;&lt;P&gt;geom1 = Polygon(boundary_layer.query(where="name='test'").features[0].geometry)&lt;/P&gt;&lt;P&gt;buffer = buffer(geometries =[geom1],&lt;BR /&gt;&amp;nbsp; distances=[1000],&lt;BR /&gt;&amp;nbsp; in_sr = {"wkid": 102100},&lt;BR /&gt;&amp;nbsp; unit = LengthUnits.FOOT,&lt;BR /&gt;&amp;nbsp; out_sr = 102100,&lt;BR /&gt;&amp;nbsp; buffer_sr = 102100,&lt;BR /&gt;&amp;nbsp; union_results = False,&lt;BR /&gt;&amp;nbsp; geodesic = True,&lt;BR /&gt;&amp;nbsp; future = False)&lt;/P&gt;</description>
      <pubDate>Wed, 22 Jan 2025 20:46:45 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-enterprise-questions/arcgis-server-geometry-service-buffer-polygon/m-p/1577967#M41482</guid>
      <dc:creator>CaseyBentz</dc:creator>
      <dc:date>2025-01-22T20:46:45Z</dc:date>
    </item>
    <item>
      <title>Re: ArcGIS Server Geometry Service Buffer Polygon</title>
      <link>https://community.esri.com/t5/arcgis-enterprise-questions/arcgis-server-geometry-service-buffer-polygon/m-p/1578032#M41484</link>
      <description>&lt;P&gt;I found my answer from an old gis.stackexchange,&amp;nbsp;&lt;A href="https://gis.stackexchange.com/questions/361734/why-is-the-arcgis-geometry-buffer-method-failing-on-supposed-empty-geometries" target="_blank"&gt;https://gis.stackexchange.com/questions/361734/why-is-the-arcgis-geometry-buffer-method-failing-on-supposed-empty-geometries&lt;/A&gt;.&amp;nbsp;&lt;/P&gt;&lt;P&gt;The trick for me was to use 9003 as the unit rather than the&amp;nbsp;LengthUnits.FOOT from the Esri example...&lt;/P&gt;</description>
      <pubDate>Wed, 22 Jan 2025 23:08:43 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-enterprise-questions/arcgis-server-geometry-service-buffer-polygon/m-p/1578032#M41484</guid>
      <dc:creator>CaseyBentz</dc:creator>
      <dc:date>2025-01-22T23:08:43Z</dc:date>
    </item>
  </channel>
</rss>

