Geometry Buffer Empty POST

05-09-2023 06:53 AM
Occasional Contributor III

I am trying to create a buffer but I am getting an exception that simply states 'geometry'. the strange part is that when I watch the request in fiddler, the buffet POST request does not have any form data included with it except f=json. So the data returned is just the description for the service. Here is how i am performing the buffer in my code. Any ideas on why this is not functioning as expected?

from arcgis.gis import GIS
from arcgis.features import FeatureLayer, FeatureCollection, FeatureSet, use_proximity
from arcgis.geometry import Geometry
from arcgis.geometry.functions import buffer, simplify

            geom = Geometry(resultPath.features[x].geometry)
            print (geom.type)
                #path_buffer = use_proximity.create_buffers(resultPath.features[x], distances=[1], units = 'Miles')
                path_buffer = buffer(geometries=geom, distances=[1], unit="esriMiles", in_sr = "4326")
            except Exception as e1:
                print('Buffer Error Details:')


0 Kudos
0 Replies