PSU-CSAR / vb-bagis

Source code for BAGIS V3 ESRI Add-In
0 stars 1 forks source link

AOI Utilities - Add a New Layer #78

Open jdduh opened 4 years ago

jdduh commented 4 years ago

The tool fails when the default output file name contains the ".img" file extension. Please add a check to remove any extension name from the default output file.

image

lbross commented 4 years ago

Can you post some sample .img files so I can test the fix?

jdduh commented 4 years ago

Please download SWE_April_1st_2004_2019.zip from ftp://basins.geog.pdx.edu/public/

lbross commented 4 years ago

This is fixed. I did two things: 1)Automatically drop any file extension from the suggested layer name that shows up in the MessageBox. This layer name is derived from the selected source layer. 2) Start using a built-in ESRI Geoprocessor function that validates the layer name and suggests a valid layer name if the original is invalid. The workaround is to manually remove the file extension from the output layer name in the MessageBox before clipping. Because there is a workaround, I'm not planning on building a new add-in immediately, but let me know if you disagree. This is ready to deploy.