A geodatabase feature class or table can have an attribute field that contains a raster dataset. Unlike a hyperlink that simply links a feature to an image, an attribute field of type Raster stores the raster data within the geodatabase. For example, you could add a photograph of the commercial property as an attribute of a parcel feature.
The following are the general steps to add a raster dataset to a field within a feature class:
- Add a field of type Raster to the attribute table.
- Edit the field to insert the raster dataset.
All supported raster dataset formats are available, but it is recommended that only small pictures are used for this field. Only one field of type Raster can be used in each table. To associate more than one raster to a feature, you will need to use another table with related fields.
Add a field of type Raster
- In the Contents pane, right-click on the feature class and click Attribute Table.
The attribute table for the feature class opens.
- In the attribute table, click the Add Field button.
This opens the Fields view and the Fields tab. The Fields view is used to manage the fields associated with a layer or table. Within this view you can make edits to a layer or table's fields, modify their properties, delete fields, or create new ones.
- Set Data Type to Raster.
- Optionally, you can give the field an alias.
- On the Fields tab, click Save.
- Close the Fields view.
Update the Raster field
- Add the feature class containing the Raster field.
- Select the feature to add the raster to.
You can use the interactive Select tool or select the record in the attribute table.
- On the Map tab, click on the Attributes button.
- In the Attributes pane, click the Load Content button for the Raster field.
This will open the Load Raster Data dialog box.
- Browse to the raster that you want to add.
- Optionally, set Compression Type and Compression Quality.
- Click OK.