SHARE
TWEET

Untitled

a guest Jan 23rd, 2015 222 Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. import arcpy
  2. shp = r"D:/JAN17ALG/joo/Felsotarkany_energetika_kiserleti.gdb/c"
  3.  
  4. tabl=r"D:/JAN17ALG/joo/Felsotarkany_energetika_kiserleti.gdb/ttt"
  5.  
  6. t1="""def g(hsz,Helyrajziszam,mez1,mez2):
  7.    valt=0
  8.    
  9.    if hsz == Helyrajziszam:
  10.        valt=valt+mez1*mez2
  11.    return valt"""
  12.    
  13. arcpy.CalculateField_management(tabl,"ossz", "g(!"+shp+".helysz!,!"+tabl+".hely!,!"+shp+".mez1!,!"+shp+".mez2!)", "PYTHON", t1)
RAW Paste Data
We use cookies for various purposes including analytics. By continuing to use Pastebin, you agree to our use of cookies as described in the Cookies Policy. OK, I Understand
 
Top