Python labeling expression not working

المشرف العام

Administrator
طاقم الإدارة
I'm trying to label parcels from a shapefile in the python expression below in ArcGIS 10.2. All parcels should be labeled with the last 8 characters of their [PARCEL_NUM], and parcels 10 acres or greater should also include their [PROP_ADDRE]. [Acres] is a double field.

Instead, all parcels get labeled with [PARCEL_NUM] and [PROP_ADDRE]. Using Maplex, land parcel placement. Any ideas on what's going wrong?

In response to comments, no, no errors verifying the expression. Tried switching to checking for [ACRES] < 10.0 first, no difference.

def FindLabel ( [PARCEL_NUM], [PROP_ADDRE], [Acres] ): if [Acres] >= 10.0: return [PARCEL_NUM][-8:] + '\n' + [PROP_ADDRE] else: return [PARCEL_NUM][-8:]

أكثر...
 
أعلى