HOW TO

Mask line features by their labels in ArcMap

Last Published: April 25, 2020

Summary

The following procedure provides functionality similar to the ARCTEXT command with the BLANK option in Workstation ArcInfo. Resulting lines are labeled such that the label is placed on the top of the line, as well as masking part of the line underneath. This technique is commonly used to label contour lines.

Procedure

This functionality is only available with an ArcInfo license. Annotation must be stored in a Geodatabase for this procedure to work.

  1. If the line dataset is not a feature class in a geodatabase, start ArcCatalog and create a new geodatabase containing a new feature dataset. Use the import button to import the coordinate system and the X/Y domain from the line dataset to the feature dataset.
  2. Add the line dataset into ArcMap and display at desired scale.
  3. Label features with desired symbology and label settings.
  4. In ArcMap, right-click the line dataset and select 'Convert labels to annotation'. Use the option to store annotation in database. Use the file icon next to the annotation feature class name to browse to the feature dataset to add the annotation feature class to.
  5. Open ArcToolbox in ArcMap and use Cartography Tools > Masking Tools > Intersect Layers Masks tool. Use the annotation feature class as the Masking Layer, and the line dataset as the Masked Layer.
  6. The new feature class is added automatically to ArcMap.
  7. Set the Fill symbol of this layer to NoColor, with an outline width of 0.
  8. Right-click Layers in the Table of Contents, then select Advanced Drawing Options.
  9. Check 'Draw using masking options specified below'.
  10. Check the line dataset layer, click Ok and the lines display as masked.

Article ID:000007330

Software:
  • ArcMap 9 x

Get help from ArcGIS experts

Contact technical support

Download the Esri Support App

Go to download options

Discover more on this topic