Ask A Cartographer

compare location in label expression

July 23 2011 | 0 comments
Categories: Labeling

Hi, i would like to setup my map's to have sample locations across site then add analyte criterior locations out of view and then join results table containing criterior for analytes aswell as sample location analyte results.

once this is done i was wondering if there is a way to use a criterior location values in a label expression e.g
if [benzene] > criterior locations value for [benzene].

Essentially i want to compare one locations value to another locations value and with case criterior without having to define variables for upto 5 criterior for each analyte.

This sounds confusing on reading but don't know how to make it clearer.

Cheers, Pat

Mapping Center Answer:

I am not sure I completely understand your question but I think what you are asking is if you can use the values in a joined table to set up the instances when a particular label is shown. If this is the case, then yes, you can use the values in a joined table and yes, you can use logic in a label expression. For example, I could join a table with population to a feature class of counties and then use a label expression that only labels the counties that have a population over 25,000. There is an example a label expression that uses logic that you can see if you click the Help button on the Labels tab when you look at the layer properties. Scroll down to the example just before "References for scripting languages" to see the example. You can copy and paste this into the label expression to modify it for your particular values and fields. Right click the text in the ArcGIS Dialog Help window and click Copy, then in the Expression area of the Label Expression dialog, right click and click Paste.

If you would like to post a comment, please login.

Contact Us | Legal | Privacy |