Esri / OptimizeRasters

OptimizeRasters is a set of tools for converting raster data to optimized Tiled TIF or MRF files, moving data to cloud storage, and creating Raster Proxies.
Apache License 2.0
127 stars 50 forks source link

Google Cloud Storage bucket cleared out in GP Tool #144

Open slibby opened 2 years ago

slibby commented 2 years ago

When trying to run the OptimizeRasters tool from the .pyt, there appears to be an issue with the Tool Validation logic.

I have a credential file with GetObject privileges to the bucket, when I specify the bucket name, then click to another parameter, it does some processing (some ToolValidation I assume) and then immediately clears out the value.

87B74847-0549-48D6-9890-F503CA4C5EFF

I am guessing this may be because it tries to do a ListBuckets query or something similar to that, to populate a dropdown?

slibby commented 2 years ago

I think this comes down to the validateCredentials method, which has exception handling for AWS and Azure when ListBuckets is not allowed, but not for Google:

image

Chamlika commented 2 years ago

@slibby Can you check if running it at the console works for you, and you're right, it looks like a UI issue. Will see to rectify, thanks!