本文整理汇总了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