AnsweredAssumed Answered

ArcGIS Python API Sample Notebook "Using Geoprocessing tools" does not work

Question asked by menglishesri-ca-esridist Employee on Aug 11, 2016
Latest reply on Aug 13, 2016 by bixb0012

Hi:

 

I'm following along with this sample notebook but the following input doesn't seem to produce any output on the map when I click on the map:

 

def do_analysis(m, g):

   ret = gptool.message_in_a_bottle(g, 150)

   for geom in ret:

   map.draw(geom)

 

map.on_click(do_analysis)

 

The gptool object is returning a 'NoneType':

TypeError  Traceback (most recent call last) 
<ipython-input-24-a0a0d2de3044> in <module>()      
1
ret = gptool.message_in_a_bottle(g,150)
----> 2 for geom in ret:      
3
     map.draw(geom)  TypeError: 'NoneType' object is not iterable

 

 

Any insight would be helpful (I'm  a newbie to this API)

 

Cheers,

Matt

Outcomes