Creating Oriented Buffer using wedge-maker-4-gis

632
2
04-23-2021 04:24 PM
YutingHermioneDeng
New Contributor

Hi,

I came across this very cool tool on Github to develop oriented buffers:

The Wedge Maker for ArcGIS is an ArcGIS tool that allows the user to create wedge and arcband (a wedge with a part of the cone of the wedge erased) shapes.

While I am using the test example file for this tool, trying to create what they have created (you can see it open up in the following image), I constantly run into an error:

YutingHermioneDeng_0-1619220114251.png

I'm currently using ArcGIS Pro 2.7.0. Don't know if it's a version issue. 

Any idea about how to fix the problem? Any advice would be much appreciated.

 

0 Kudos
2 Replies
DanPatterson
MVP Esteemed Contributor

t was obviously developed in python 2.7.

Pro uses python 3,

Solution, open up the script in a python IDE or if desperate, a text editor. and replace all print statements with

print "stuff"   # ----- wrong

print("stuff")  # ----- right ...  note the brackets

hopefully there isn't too many python 2 to 3 issues, otherwise it may a more painful process


... sort of retired...
0 Kudos
JayantaPoddar
MVP Esteemed Contributor

Alternatively, you may use the tool with ArcMap (Python 2.7).



Think Location
0 Kudos