Esri / data-assistant

ArcGIS Pro Add-in that assists in emergency management, local government and state government data aggregation workflows.
Apache License 2.0
22 stars 8 forks source link

Increased upfront validation #230

Open JRosenfeldIntern opened 7 years ago

JRosenfeldIntern commented 7 years ago

I've written a Validator class that I will add to the next pull request. At the moment, it is unimplemented. This class can do simple upfront checks such as ensuring source and target are of the same shape type, ensuring the layerfile input isn't broken, as well as anything else really you might want to check.

I initially was going to implement it into the python toolbox parameters, but the validation process takes too long to complete while still providing a satisfying user experience, so for the moment, it has been scrapped. I'll look to add them into the runtime scripts instead in the near future.