Dear Experts,
I am currently trying to dynamically generate thumbnail for raster items under folder connection under catalog view.
Manually we can do it by right click- edit metadata like the screenshots here.
But I want to make that action dynamic by either arcpy or arcgis pro sdk.
I can manage to retrieve list of raster items from folder connection already.
But I still didn't manage to find out how to do it in arcgis pro. In arccatalog addin development, we can call that command "esriArcCatalogUI.CreateThumbnailCommand"
Solved! Go to Solution.
Manage to figure it out myself.
Steps to perform are
- Get raster item raster image , use the Image object of c# and generate the thumbnail on the fly and save into byte array and then converted into based64 string
- Cast the raster item object into IMetadata object and modify the xml content and perform metadata update with setxml function.
Manage to figure it out myself.
Steps to perform are
- Get raster item raster image , use the Image object of c# and generate the thumbnail on the fly and save into byte array and then converted into based64 string
- Cast the raster item object into IMetadata object and modify the xml content and perform metadata update with setxml function.