How to do advanced Python labeling in Arcmap?

المشرف العام

Administrator
طاقم الإدارة
Does anyone have a good reference for advanced/complicated labeling expressions in Arcmap? I am attempting to write a Python label expression that would involve multiple label definitions.

Here is what I am trying to do: (Using ArcMap 10.1)

I have a point shapefile representing Monitoring Wells. For each Well I have taken concentration readings for various chemicals. What I need to do is label all of these concentrations for each well and color code them based on whether or not they exceed a certain limit.

This is what I have:

def FindLabel ([cis12DCE],[cis12DCE_Ex] ): if int([cis12DCE_Ex]) == 2: return ""+"cis-1,2-Dichloroethylene "+[cis12DCE]+"" else: return "cis-1,2-Dichloroethylene "+[cis12DCE]My question is how do I repeat this so I get a label that looks somthing like this:





أكثر...
 
أعلى