Instrução

Aplicar códigos de cores hexadecimais ou RGB de um campo de atributo como uma simbologia de recurso no ArcGIS Pro

Last Published: July 20, 2023

Resumo

In ArcGIS Pro, features in a layer can be symbolized as a single symbol or unique values, or through the graduated colors method. In some instances, the features of a layer must be symbolized based on Hex or RGB color codes from the layer's attribute field so they can be differentiated. This article describes the steps to add Hex or RGB color codes from the attribute field as a feature symbology in ArcGIS Pro.

Procedimento

  1. In ArcGIS Pro, open the attribute table of the layer.
  2. Click the Add icon to add a new Text data type field. Populate the new field with the desired Hex or RGB color code value.

The image below shows an example of the Hex color codes.

Image of adding a new field and the desired Hex color codes

The image below shows an example of the RGB color codes.

Image of adding a new field and the desired RGB color codes
  1. In the Contents pane, right-click the layer, and click Symbology.
  2. In the Symbology pane, click the Vary symbology by attribute icon, and check the Allow symbol property connections check box.
Image of the Symbology pane with the checked Allow symbol property connections check box
  1. Click the Primary symbology icon, and select the symbol next to Symbol.
Image of the Primary symbology tab
  1. In the Format Polygon Symbol pane, click the Properties tab. After that, click the Layers tab.
  2. In the Appearance section, click the Set attribute mapping button next to Color.
Image of the selected No attribute mapping icon
  1. In the Set Attribute Mapping dialog box, choose the field containing the color codes, and click OK.
Image of the Set Attribute Mapping dialog box
  1. Click Apply.

The image below shows the Hex color codes applied to the features of the layer.

Image of the colored map using the desired Hex/RGB color codes from the custom field

ID do Artigo: 000024233

Receba notificações e encontre soluções para problemas novos ou comuns

Obtenha respostas resumidas e soluções de vídeo do nosso novo chatbot de IA.

Baixe o Aplicativo de Suporte da Esri

Informações Relacionadas

Descubra mais sobre este tema

Obtenha ajuda de especialistas do ArcGIS

Entre em contato com Suporte Técnico

Baixe o Aplicativo de Suporte da Esri

Ir para as opções de download