Как сделать легенду в аркгис

от admin

P Легенда карты

Используйте команду Insert—Legend. В появившемся диалоге оставьте в правой части только те слои, для которых вы хотите условные обозначения. Ненужные слои можно выделить и исключить из легенды. Параметры в остальных диалогах можно оставить по умолчанию — их можно настроить позже.

P.2 Название слоя в легенде

Чтобы поменять название слоя в легенде, переименуйте его в таблице содержания

P.3 Название показателя в легенде

Чтобы переименовать название показателя, перейдите в настройки слоя и замените его на вкладке Symbology в столбце Label:

P.4 Стиль отображения подписей в легенде

Вы можете отрегулировать стиль отображения, а также включить/отключить подписи для:

Названия элемента легенды

Описания элемента легенды (если есть)

Дважды щелкните на легенде

Перейдите на вкладку Items, выберите один или несколько слоев и нажмите кнопку Style

В появившемся диалоге нажмите кнопку Properties…

В следующем диалоге перейдите на вкладку General, в которой вы можете выполнить необходимые настройки.

Если вы выделили несколько слоев, то настройки будут применены ко всем. Вышеописанный процесс иллюстрирует следующий рисунок:

P.5 Название легенды

Чтобы изменить название легенды или стиль его отображения, дважды щелкните на легенде и перейдите на вкладку General:

P.6 Интервал между элементами легенды

Интервал между элементами легенды регулируется в свойствах легенды на вкладке Layout (компоновка) и обозначен там как Item Gap:

P.7 Изменение подписей классов

Щелкните дважды на слое и перейдите на кладку Symbology. Отредактируйте вручную содержимое столбца Label.

Добавление легенды

Легенда представляет собой элемент компоновки и объясняет пользователю карты значение символов, которые используются для отображения объектов на карте. Легенды могут относиться к любым фреймам карты в компоновке, на любая легенда может ссылаться только на один фрейм карты. Слои карты представлены как пункты легенды с образцом, представляющим собой пример символов карты и пояснительного текста. Легенды всегда отображаются в наборе образцов легенды для каждого векторного слоя. На панели Содержание легенды обозначаются символов Legend, а пункты легенды — символом Legend Item.

Легенды могут быть статическими, отображающими все слои карты, или динамическими, обновляющимися, отображая только слои, видимые в текущем экстенте фрейма карты. Легенды также можно настроить на обновление, в зависимости от изменений на карте, например, для автоматического добавления новых слоев в качестве пунктов легенды.

Для добавления легенды выполните следующие шаги:

  1. Откройте компоновку с хотя бы одним фреймом карты. Легенду можно добавить только в вид компоновки.
  2. Выберите фрейм карты на панели Содержание .
  3. Кроме того, можно развернуть карту на панели Содержание , чтобы выбрать поднабор слоев. Если слои не выбраны, добавляется легенда, в которую входят все подходящие слои, содержащиеся в фрейме карты по умолчанию.
  4. На вкладке Вставка в группе Зарамочное оформление карты щелкните кнопку Легенда Legend.

Щелкните верхнюю половину кнопки, чтобы вставить стиль легенды по умолчанию. Щелкните нижнюю половину кнопки, чтобы выбрать элементы стиля легенды из галереи.

Добавление и удаление пунктов легенды

После создания легенды можно добавлять, удалять и менять порядок пунктов легенды.

Для добавления пунктов, выберите слой на панели Содержание и перетащите его в группу легенда на той же панели.

Примечание:

В легенде могут содержаться пункты только одного фрейма карты. Нельзя перетаскивать в легенду слои нескольких фреймов карты.

Чтобы удалить пункты легенды, разверните легенду на панели Содержание , чтобы увидеть их. Щелкните правой кнопкой элемент и щелкните Удалить . Снимите отметку с пункта легенды, чтобы отключить его отображение, не удаляя из легенды.

Измените порядок пунктов легенды, развернув легенду на панели Содержание , чтобы увидеть их. Перетащите пункты вверх или вниз в списке, чтобы изменить порядок.

Форумы GIS-Lab.info

Добрый день. Подскажите пожалуйста, как добавить в Arcgis 10.1 к карте легенду, такую как например на рисунке в красных рамочках.
Изображение
причём данные берутся из таблицы атрибутов. как это сделать? объясните, пожалуйста, есть ли какая-то методика? при помощи подпрограммы Arcmap.

Re: Как добавить легенду к карте в Arcgis 10.1

Сообщение novia » 29 ноя 2012, 15:44

Re: Как добавить легенду к карте в Arcgis 10.1

Сообщение CAC » 29 ноя 2012, 15:57

Вот я добавил легенду в компановку, но она не полная.
Изображение
там нужно ещё площадь вставить напротив класса экспликации, которому соответствует тот или иной полигон. вопрос в том можно ли вставить её из атрибутов поля, как сумму например? и можно ли как-то сохранить эту легенду, и чтоб в будущем можно было подгружать к другой компановке и в ней изменять только лишь площадь?

Re: Как добавить легенду к карте в Arcgis 10.1

Сообщение novia » 29 ноя 2012, 16:35

посмотрите в настройках легенды. в 10.1 вроде было что-то на тему отображения фактических площадей по классам.

отдельно легенду нельзя сохранить. но если сделать ее графикой — ее можно копировать и вставлять

Make a custom legend in ArcGIS Pro

Sometimes the design of a map legend can be just as important as the design of the map’s symbology.

Symbology is at its best when it needs no legend, but this isn’t always possible. If your map needs a legend, that means people are going to need help reading your map. Take the time to help them by making the best legend you can.

Add a legend

This map shows grain elevators in the Canadian prairies. The data is from Agriculture and Agri-Food Canada (Government of Canada), via ArcGIS Living Atlas of the World.

2. In the Contents pane, right-click the GrainElevators layer and click Symbology.

The data is symbolized with color based on the elevator type.

Three elevator types listed in Symbology pane

3. At the top of the pane, click the Vary symbology by attribute button and expand the Size section.

This layer is also symbolized by size, based on how much grain each elevator can hold.

Size section under Vary symbology by attribute

You need to make a legend for this map that conveys the meanings of both the color and size of the symbols.

4. Open the layout. On the Insert tab of the ribbon, click Legend. Draw a box next to the map to add a legend.

Legend button on the ribbon and new legend next to the map

I prefer to add legends next to the map because I know I’ll need to click them a lot to edit them. I don’t want to accidentally click things on the map instead.

Remove unnecessary words

Not everything on the map needs to be in the legend. Only keep those things that aren’t obvious or aren’t already described with labels.

1. In the Contents pane, expand Legend, right-click Cities, and choose Remove.

You also don’t need a title that says “GrainElevators.” That information is already conveyed by the map’s title.

2. In the Contents pane, double-click GrainElevators to open the Format Legend Item pane.

In general, double-clicking something in the Contents pane will open its properties.

3. Under Show, uncheck Layer name.

Rephrase a legend

When I design a legend, I imagine myself showing the map to a friend and explaining it out loud. Here’s what that might sound like:

  • Me: Hey Ellen, check out this map I made! The yellow circles are primary elevators, the green ones are process elevators and the red ones are terminal elevators.
  • Ellen: Nice! Looks like most of them are primary elevators. But I don’t see any red ones on the map. Where are they?

Now I’m ready to make the legend equivalent of my conversation. First, I want to address Ellen’s concern about the missing terminal elevators.

Читать:
Как ввести массив с клавиатуры golang

1. On the Format Legend Item pane, under Feature Display Options, check Only show features visible in the map extent.

Only show features visible in the map extent checked

The red symbol disappears from the legend. Ellen was right, the only terminal elevator in the dataset is in Churchill, Manitoba, which is not visible on the map.

Next I want to change the Elevator_t heading. I would never say “Elevator_t” when explaining the map to a friend. I would say “elevator type.” But looking back on my conversation, I didn’t even say that. That means that my legend doesn’t need to either.

2. On the Format Legend Item pane, under Show, uncheck Headings.

3. In the Contents pane, expand Map Frame. Under the GrainElevators layer, click Primary and press F2 on your keyboard to make the text editable. Change the label to Primary elevator. Add the word elevator to the other two types as well.

Renamed items in Contents pane

I displaced the “Elevator type” title into the legend labels. This works well when you only have a few items in the legend.
Let’s continue with my imaginary conversation:

  • Me: The size of the circles represents capacity. The largest circles are elevators that can hold 60,000 tonnes or more of grain, while the smallest one holds only 10.

My current legend doesn’t look like that at all.

Legend with 6 items

20,006.7 and 40,003.3 would be much easier to read if they were rounded to 20,000 and 40,000. But I didn’t mention those values in my conversation, so maybe they’re not needed. Also, this legend does not indicate that the largest symbol represents a capacity of 60,000 tonnes or more.

In this case, I’ll convert the legend to graphics so I can have full control over its appearance.

Convert a legend to graphics

1. Right-click the legend to Copy and Paste it. Right-click the new legend and choose Convert to graphics.

Convert legend to graphics

2. Right-click the graphic and choose Ungroup. Delete all of the graphics except for the size circles.

3. Drag the smallest circle and place it on top of the largest one.

Legend with stacked circles

I decided that it would be good to have a middle-sized circle as well, even though I hadn’t included that information in my conversation. But I want it to be 30,000 and that value isn’t already represented. So I’ll have to fake it.

Make a fake legend item

I’ll make a new feature with the size I want to serve as a model for my legend graphics.

1. Return to the map. On the ribbon, click the Edit tab and click the Create button.

2. In the Create Features pane, click any of the elevator symbols. Click once somewhere in northern Saskatchewan to add a new feature to the map.

New primary elevator feature on map

3. On the ribbon, click the Attributes button. In the Attributes pane, change capacity to 30,000 and click Apply. Clear the selection and return to the layout.

4. Drag one of the medium-sized circles from the legend onto the map. Line it up with the new feature and resize it until it matches.

5. Drag the resized circle back to the legend and stack it with the others. Delete the remaining circle.

6. On the ribbon, on the Insert tab, in the Graphics and Text group, click Rectangle text.

7. Draw a box next to the size legend and type the legend labels on three lines (60,000 or more / 30,000 / 10). Add another rectangle text box above that says Capacity in tonnes.

Don’t worry if the text is too big. You’ll fix it later.

Stacked proportional legend with labels

The original legend still has size information, which is now redundant. You also have a fake data point in northern Saskatchewan that you need to get rid of. You’ll go back to the map to make these changes.

8. Return to the map. On the ribbon, click Discard to undo your edits.

9. In the Contents pane, double-click one of the size symbols to open the Symbology pane to the size properties. Uncheck Show legend.

Show legend checked

10. Return to the layout.

Change the font

The content of both legends now matches how I would explain the map to a friend. To finish, I want to make sure that the style of the legend matches that of the map. Mostly, this means changing the font.

1. Select and double-click the Capacity in tonnes text. The Format Text pane appears. Click Text Symbol and change the font to High Tower Text with a size of 10 pt.

2. For Color, use the Eyedropper tool to sample from the green color of the map’s title.

Eyedropper tool in color picker menu

3. Change the legend labels text to use the same properties. Additionally, click the Formatting tab and change Line spacing to -4.

Text line spacing

Now your legend labels are more in line with the circles they are labeling.

4. Position the size legend elements until you are happy with them. Then select them all, right-click, and choose Group.

Group legend items

5. Select the legend for elevator types. Double-click the legend to open its properties and click Text Symbol. Change the font to match the other legend.

6. At the top of the pane, click the back arrow and click the Legend Arrangement Options tab. For Fitting Strategy, choose Adjust columns.

Legend fitting strategy

This will prevent the text size from changing when you resize the legend.

7. Expand Spacing and change Patches and text to 0 pt.

Now the labels are a little bit closer to the symbols, so it can look a bit more consistent with the size legend. The symbols are kind of small though, they might be hard for people to see properly.

8. Return to the Options tab and click Show properties.

Show legend items properties

9. Under Sizing, change the Patch height to 7 pt and check Scale to fit patch size.

Finish

1. Drag both legends onto the map and place them wherever you find pleasing.

2. If a province border interferes with one of them, double-click the legend to open the Format Legend pane. Click the Display tab and change the Background color to white.

Background symbol set to white

The legend is complete!

Map with completed custom legend

Locator maps are one of many possible elements you can include in your map’s layout. Read the following articles to learn about some others:

Похожие статьи