本文整理匯總了Python中HelperFunctions.get_featureclass_properties方法的典型用法代碼示例。如果您正苦於以下問題:Python HelperFunctions.get_featureclass_properties方法的具體用法?Python HelperFunctions.get_featureclass_properties怎麽用?Python HelperFunctions.get_featureclass_properties使用的例子?那麽, 這裏精選的方法代碼示例或許可以為您提供幫助。您也可以進一步了解該方法所在類HelperFunctions
的用法示例。
在下文中一共展示了HelperFunctions.get_featureclass_properties方法的1個代碼示例,這些例子默認根據受歡迎程度排序。您可以為喜歡或者感覺有用的代碼點讚,您的評價將有助於係統推薦出更棒的Python代碼示例。
示例1: normalization
# 需要導入模塊: import HelperFunctions [as 別名]
# 或者: from HelperFunctions import get_featureclass_properties [as 別名]
#if iNumRecs < 30:
# HF.pGP.AddWarning (msgFewRecsWrn)
if HF.pGP.exists(inputs.sOutputFC):
HF.pGP.delete(inputs.sOutputFC)
#Copy the input feature class to the output feature class.
try:
HF.pGP.QualifiedFieldNames = 0
HF.pGP.Copyfeatures(inputs.sInputFC, inputs.sOutputFC)
except:
sMessage = HF.msgOverwriteErr % (inputs.sOutputFC)
raise HF.ReportError (sMessage)
properties = HF.get_featureclass_properties(inputs.sOutputFC)
attri = build_value_lists()
#HF.pGP.AddMessage ("--------build_value_lists finished--------")
clusterAttri = attri[:,1:]
#print clusterAttri
clusterAttri_Norm = normalization(clusterAttri)
#print "----------------------"
#print clusterAttri_Norm
#KData is the clusterAttri plus the sqrt of weight