linkagescape / linkage-mapper

ArcGIS tools to automate mapping and prioritization of wildlife habitat corridors
https://circuitscape.org/linkagemapper/
GNU General Public License v3.0
37 stars 12 forks source link

Fix errors in executing arcpy.sa.NbrAnnulus ArcGIS Pro #176

Open sdy623 opened 5 months ago

johngallo commented 1 month ago

@sdy623 Thank you so much for your contribution! One of our team tested this with the sample data a few months ago and it did not work properly. Last I heard he was going to try fixing it, but I'm assuming that has stalled. Please let me know if you would like me to pass on a more detailed report out.

dkav commented 1 month ago

I cannot test but the change looks correct. It is not the only neighborhood class update needed in this file. Defining neighborhood as a string and not as class goes back to ArcGIS 9.3. May be related to this Google Groups post.

johngallo commented 1 month ago

Thanks @dkav ! Much appreciated. @sdy623 , dkav gives a good couple clues as to why it may have failed. (Note, the code tester ran it fine in ArcMap, but it failed in ArcPro using the similar but not exact parameters. He used the sample data in the toolbox I believe, and I can find the exact parameters if that helps. Pls let us know if you do not have access to ArcGIS Pro. Thanks again for your contribution!