Dynamically generate Thumbnail for raster item

75
1
Jump to solution
04-21-2020 11:22 PM
ThanHtetAung_EsriAu
Esri Regular Contributor

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" 

Reply
0 Kudos
1 Solution

Accepted Solutions
ThanHtetAung_EsriAu
Esri Regular Contributor

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

Reply
0 Kudos
1 Reply
ThanHtetAung_EsriAu
Esri Regular Contributor

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

Reply
0 Kudos