本文整理匯總了Python中HelperFunctions.check_field_properties方法的典型用法代碼示例。如果您正苦於以下問題:Python HelperFunctions.check_field_properties方法的具體用法?Python HelperFunctions.check_field_properties怎麽用?Python HelperFunctions.check_field_properties使用的例子?那麽, 這裏精選的方法代碼示例或許可以為您提供幫助。您也可以進一步了解該方法所在類HelperFunctions
的用法示例。
在下文中一共展示了HelperFunctions.check_field_properties方法的1個代碼示例,這些例子默認根據受歡迎程度排序。您可以為喜歡或者感覺有用的代碼點讚,您的評價將有助於係統推薦出更棒的Python代碼示例。
示例1: len
# 需要導入模塊: import HelperFunctions [as 別名]
# 或者: from HelperFunctions import check_field_properties [as 別名]
# change if the input fc has a join
pInFields = HF.pGP.ListFields(inputs.sInputFC)
pOutFields = HF.pGP.ListFields(inputs.sOutputFC)
pInField = pInFields.next()
pOutField = pOutFields.next()
while pInField:
sName = (pInField.Name).upper()
if sName == inputs.sZField:
inputs.sZField = (pOutField.Name).upper()
pInField = pInFields.next()
pOutField = pOutFields.next()
#Get and check feature class information: fields, shapefile, etc.
properties = HF.get_featureclass_properties(inputs.sOutputFC)
HF.check_field_properties(inputs, properties)
HF.check_numeric_properties(inputs)
# Get X, Y and Z values.
keys,zDict,zSumG,z2SumG = build_value_lists()
#Read GAL File
w = GR.galReader(inputs.bWtsFile,firstIndex=1)
if len(keys) <> len(w):
HF.pGP.AddWarning("Error: Length of data vector and weights matrix do not match")
# Calculate the AMOEBA Clusters.
clusterHighList = []