Question: Please complete this python 3.x script with the below statement import arcpy def FindLabel ( [Facility], [OnStDsp] ): fac = str([Facility]) toxic = float([OnStDsp]) name
Please complete this python 3.x script with the below statement
import arcpy
def FindLabel ( [Facility], [OnStDsp] ): fac = str([Facility]) toxic = float([OnStDsp]) name = fac.strip().split(".")[0].title() if name.find(&) != -1: name = name.replace(&, and) toxic = float([OnStDsp]) name = fac.striip().split(".")[0].title() if name.find("&") !=-1: name = name.replace("&","and") txt = " " if float(toxic) > 25000: txt = "" + name + ""
elif float(toxic) > 10000
txt = "" + name+ ""
else:
return buffDist
continuing on the code above, label TRI facilities whose on-site disposal is greater than 10,000 and less than or equal to 25,000 pound in blue and with font size 8 . The result should show two sets of TRI facilities (that is, >25,000 and between 10,000 and 25,000) in red and blue font,
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
