Adding raster datasets as attributes in a feature class

A geodatabase feature class or table can have one attribute field that contains a raster dataset. Unlike a hyperlink that simply links a feature's attribute field to an image, an attribute field of type Raster stores the raster data within or alongside the geodatabase. For example, you could add a photograph of the commercial property as an attribute of a parcel feature.

To create a feature class containing an attribute field that holds raster datasets, do the following:

  1. Add a field of type Raster to the attribute table.
  2. In ArcMap, start an edit session.
  3. Edit the field to insert the raster dataset.

Only appropriate raster imagery should be added as an attribute to a feature class. All ArcGIS software-supported raster dataset formats are available, but it is highly recommended that only small pictures be used for this field.

Only one field of type raster can be used in each feature class or table. Use a different table with a related field to associate more than one raster dataset with each feature.

A shapefile cannot contain an attribute field to hold raster datasets. In this case, it would be advantageous to use a hyperlink.

LicenseLicense:

Adding or modifying fields of type raster in an ArcSDE geodatabase requires an ArcEditor or ArcInfo license.

Another way to associate a raster with a feature class is using attachments.

Learn about enabling attachments on a feature class

Add a field of type Raster

You can access the attribute table of a geodatabase feature class in any ArcGIS Desktop application. Using the Table window or view, you can add a new field.

To add a field of type Raster in ArcMap, open the attribute table, click the Table Options button Table Options, then click Add Field. On the Add Field dialog box, choose Raster from the Type drop-down list and enter the other relevant information.

Learn more about adding fields to tables

To add a field in ArcCatalog, use the following steps:

Steps:
  1. Click a feature class within a geodatabase.
  2. Click the Preview tab.
  3. Click the Preview drop-down arrow and click Table.
  4. Click the Table Options button Table Options and click Add field.
  5. Type a Name for the new field of type raster.
  6. Click the Type drop-down arrow and click Raster.
  7. Edit any of the properties that may need editing.
    • If you want the raster to be ingested and managed by the geodatabase set Managed By GDB to Yes. If you want the raster to be maintained outside the geodatabase in a folder you maintain, set Managed By GDB to No.
  8. Click OK.

Updating attributes of type raster

Steps:
  1. Add to ArcMap a feature class containing a raster field.
  2. Click the Editor Toolbar button Editor Toolbar on the Standard toolbar.
  3. Click the Editor menu on the Editor toolbar and click Start Editing.
  4. Click the Edit tool Edit Tool on the Editor toolbar and click the feature.
  5. Click the Attributes button Attributes on the Editor toolbar.
  6. Click the attribute field containing the rasters.
  7. Click the drop-down arrow and click Load.
  8. Click the Input Raster Dataset browse button and navigate to the location of the raster dataset.
  9. Click Add.

    The dialog will close if the raster field is unmanaged and the image will be displayed in the Attributes window.

  10. If the raster field you created is managed, you can choose a compression method and value, then click OK.

    Since the raster dataset is being ingested into the geodatabase (because it is managed) it will be stored using this compression method.

  11. Once the raster is loaded as an attribute, you can view and perform other edits on it. Click the drop-down arrow for the raster field select one of the options in the menu.
    • Click View to open the raster in a larger window.
    • Click Load to load a different image as the raster attribute.
    • Click Clear to delete the raster attribute.
    • Click Save As to export the raster.
    • Click Properties to view and edit the properties of the raster.
  12. When you are done, close the Attributes window.
  13. Click the Editor menu on the Editor toolbar and click Stop Editing.

You can also edit the raster attribute from within the attribute table. You need to be in a edit session. Click the raster drop-down arrow in the row you want to modify, right-click in the window that appears, then click Load.


8/21/2013