Export Raster Field Type Records

10-01-2013 06:31 AM
New Contributor II

1) Batch exporting photo field
We are in the process of switching how we manage photos attributes from raster type fields to using attachments.  We still have features with raster type fields where old photos are stored.  Is there an easy way to export these photos as jpg and naming them based off grabbing their ID number from another text field or objectID?

2) Manual Option
Manually you can click the <raster> record and "save as" the photo (shown below)


Here I am also running into issues.  This option will allow saving file types of ERDAS Imagine, ESRI GRID, BIL, ENVI, but these are not useful for me. 

For other file types (.jpg, .png, .gif etc) I receive the following error:

"Failed to export Raster Dataset.  The existing data with the same name in this location may be locked, you may not have permission to write to the output location, you may be out of disk space, or the process was canceled."

None of these conditions are true as I have full privileges and have tried saving in different locations.

I also found this thread for IRasterValue but I am unsure how to use it for my purposes.  Any help would be appreciated.

Thank you.

0 Kudos
1 Reply
New Contributor II
I am able to "Save As" .tiff and .jp2; however when I open these in another program like Adobe Illustrator, the images are in grayscale.  I did notice there is a xml file created which perhaps has the information for the other bands?

I wish to do the same thing requested in this post which did not have an answer

0 Kudos