斯潘8
斯潘4
我和内行的人试过这个。
SQL查询:
选择A*,B.从“Postcode”到“A.Postcode”再到“A.Postcode”再到“B.Postcode”。
在蟒蛇中尝试以下方法,它会将Postcode_-From和Postcode_之间的每个可能变体的传入功能克隆到:
从fmeobjects import*import stringdigs=string.digits+string.ascii_uppercasedef int2base(x,base):如果x<0:sign=-1 elif x==0:return digs[0]否则:sign=1 x*=sign digits=[]而x:digits.append(digs[int(x%base)])x=int(x/base)if sign<0:digits.append('-')digits.reverse()返回'.jo则无耻地从https://stackoverflow.com/a/2267446中被盗。在(digits)类StringIterator()中:def输入(self,功能):str_from=feature.getattribute('postcode_from')str_to=feature.getattribute('postcode_to')int_from=int(str_from,len(digs))int_to=int(str_to,范围内x的len(digs)(int_-from,int_to+1):f=feature.clone()f.setattribute('postcode',In 2BASE(X)len(digs)))self.pyoutput(f)
将“Class or Function to Process Features”设置为“StringIterator”,然后暴露属性“postcode”。
使用(从)7887AD(到)7887AJ输入单个功能的示例结果:
?2019安全亚搏在线软件公司|法律