Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

AOI Utilities - Add a New Layer #78

Open
jdduh opened this issue Dec 19, 2019 · 3 comments
Open

AOI Utilities - Add a New Layer #78

jdduh opened this issue Dec 19, 2019 · 3 comments

Comments

@jdduh
Copy link

jdduh commented Dec 19, 2019

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
Copy link
Contributor

lbross commented Dec 19, 2019

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

@jdduh
Copy link
Author

jdduh commented Dec 19, 2019

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

lbross added a commit that referenced this issue Dec 20, 2019
…validateTableName to ensure valid layer name
@lbross
Copy link
Contributor

lbross commented Dec 20, 2019

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.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants