Skip To Content

Rasterize Attributes function

Overview

The Rasterize Attribute function enriches a raster by adding bands derived from values of specified attributes, from an external table or a feature service.

You can optionally specify a zone raster and the associated zone ID attribute to enable regional lookups.

Zone raster, input raster, output band 1, output band 2, output band 3, and a zonal attributes table

Notes

If a multiband raster is used as an input, only the first band and the rasterized attributes will be retained.

Parameters

Parameter nameRequired?Description

Input Raster

Yes

The input raster.

The input should be a single-band raster. If a multiband raster is used, then only the first band will be used.

Zone Raster

No

An optional single-band raster where each pixel contains the zone ID associated with the location. The zone ID is used for looking up rows in the zonal attributes table for zone-specific ingestion.

Leave this parameter unspecified if you only want to import the attribute.

Zonal Attributes Table

No

The zonal attributes specified as a path to a local feature class, the path to a table, the URL to a feature service layer, or a JSON string.

In JSON, it is described as a collection of mapping from zone IDs to an array of integers. { zoneId:[f1,f2,...,fn], ... }

Zone ID Field Name

No

The field name containing the zone ID values.

Attribute Names

No

List of fields in the Zonal Attributes Table, where each field is separated by a comma. Values in each field will be represented by a band in the output raster.

Background Value

No

The initial pixel value of the output bands in raster, prior to being remapped.

If a pixel does not fall within a zone it will remain as the background value.

Where Clause

No

An optional additional query applied on the Zonal Attributes Table.

If you were using the table above as an example, the query would be Variable1 = 'bare earth'.

Related topics


In this topic
  1. Overview
  2. Notes
  3. Parameters