Proceed to GeoCommunity Home Page


SpatialNewsGIS Data DepotGeoImaging ChannelGIS and MappingSoftwareGIS JobsGeoBids-RFPsGeoCommunity MarketplaceGIS Event Listings
HomeLoginAccountsAboutContactAdvertiseSearchFAQsForumsCartFree Newsletter

Sponsored by:


TOPICS
Today's News

Submit News

Feature Articles

Product Reviews

Education

News Affiliates

Discussions

Newsletters

Email Lists

Polls

Editor's Corner


SpatialNews Daily Newswire!
Subscribe now!

Latest Industry Headlines
SiteVision GIS Partnership With City of Roanoke VA Goes Live
Garmin® Introduces Delta™ Upland Remote Trainer with Beeper
Caliper Offers Updated Chile Data for Use with Maptitude 2013
Southampton’s Go! Rhinos Trail Mapped by Ordnance Survey
New Approach to Measuring Coral Growth Offers Valuable Tool for Reef Managers
Topo ly - Tailor-Fit for Companies' Online Mapping Needs

Latest GeoBids-RFPs
Nautical Charts*Poland
Software & Telemetry GPS
Spatial Data Management-DC
Geospatial and Mapping-DC
Next-Gen 911-MO

Recent Job Opportunities
Planner/GIS Specialist
Team Leader- Grape Supply Systems
Geospatial Developer

Recent Discussions
Raster images
cartographic symbology
Telephone Exchange areas in Europe
Problem showcasing Vector map on Windows CE device
Base map

GeoCommunity Mailing List
 
Mailing List Archives

Subject: RE: [gislist] Stack labelling in ArcGIS 9
Date:  02/25/2005 04:55:01 PM
From:  Mugur Anghel



Thanks to all who gently replied and gave me a bit of their wisdom.

Andrew Phay
The expression below will put the Labels on top of each other and
center. This expression is done in the Layer Properties Dialog Box
under the Labels tab. Put it into the Text String/Expression Dialog
Box.

Function FindLabel ( [Field1], [Field2], [Field3] )
FindLabel = [Field1] & VBCRLF & [Field2] & VBCRLF & [Field3]
End Function

***********************************************************************************
Kevin Bell

Use an advanced label expression:

[Field1] & vbNewLine & [Field2]

***********************************************************************************
Brian Lord
Use an expression. It would be something like:
[Attribute1] & vbNewLine & [Attribute2]

***********************************************************************************
Phil Chidlaw
Mugur, get to know the Labels Expression dialog. Open the Layer
Properties Labels tab, click the Expression button, and select or type
the fields you wish to display into the Expression box, separating
them
with the VBScript vbNewLine constant. I am told that the vbCrLf
constant
will also do what you want in this application. The Help button below
the Expression box offers a good guide to typical syntax by example.
***********************************************************************************
David White (Hi Dave)
Hi Mugur,
I think what you need is "& vbnewline &"

Click on the expression button next to the label field (label tab of
layer properties).
Add the first field and "& vbnewline &" and the then the next and so
on
if you want each field to stack.
You can also add text, such as [Field1] & "and" & [Field2] & vbnewline
& Field3].

This should result in label that looks like:
Text1 and Text2
Text3
***********************************************************************************
Gary Andersen (very exhaustive explanation...Thanks a lot!)
Label Expression in ArcMap. Stacked Labels.


[NAME] & vbNewLine & "SHWL=" & " " &[SHWL] & " " & vbNewLine &"NP=" &
" " & [NP]


This label expression produces a stacked label. Here is an example.
(stacked label) (attribute columns)
SE-W61 [NAME]
SHWL=48.50 [SHWL]
NP=NA [NP]
[NAME] & vbNewLine & "SHWL=" & " " &[SHWL] & " " & vbNewLine &"NP=" &
" " & [NP]

RED are extracted from three different columns in the attribute table.
BLUE creates the stacked affect by moving the label to the next line.
GREEN are the typed text that appear in front of each label for the
last two attributes.

Location of Label Expression in ArcMap.
Open the Label Manager.
Open the Expression window.
Type in expression. Note that label fields can be added by simply
selecting them and clicking the Append button.
Click Verify button to confirm that the VBScript is correct. You will
be shown an example of the stacked label.
Close out Label Manager.
**********************************************************************************
Gerald Lee
Under your label expressions, paste this code and change your field
names to what you want.


- To create stacked text, use the VBScript vbNewLine or vbCrLf
constants between the field names: [for example]

"Name: " & [NAME] & vbNewLine & [ADDRESS_1] & vbNewLine &
[ADDRESS_2]
**********************************************************************************
Scott Tometich
You can use the expression builder in the layer properties under the
labels tab.

Ex.
[TAZ] & vbNewline & [Centroid num]

This will give you stacked labels.
***********************************************************************************
Jaclyn La Motta
In the properties box for the file you want to label you will want to
build an expression. If you click on the expressions button you can add
as
many labels as you want. If you click on help it will tell you how to
label them on 2 different rows (see below).


- To create stacked text, use the VBScript vbNewLine or vbCrLf
constants
between the field names:
"Name: " & [NAME] & vbNewLine & [ADDRESS_1] & vbNewLine &
[ADDRESS_2]
**********************************************************************************
John Callahan (thanks a lot John!)
If both fields have only one word, or you don't mind having more than
one word per line for each label, you can always do the following. The

"&vbcrlf" adds the line break.

Function FindLabel ( [NAME1], [NAME2] )
FindLabel = [NAME1] &vbcrlf [NAME2]
End Fu

Sponsored by:

For information
regarding
advertising rates
Click Here!

Copyright© 1995-2012 MindSites Group / Privacy Policy

GeoCommunity™, Wireless Developer Network™, GIS Data Depot®, and Spatial News™
including all logos and other service marks
are registered trademarks and trade communities of
MindSites Group