Dynamically generate Thumbnail for raster item

503
1
Jump to solution
04-21-2020 11:22 PM
by Anonymous User
Not applicable

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" 

0 Kudos
1 Solution

Accepted Solutions
by Anonymous User
Not applicable

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.

View solution in original post

0 Kudos
1 Reply
by Anonymous User
Not applicable

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.

0 Kudos