Modify File Name with Python

المشرف العام

Administrator
طاقم الإدارة
How would I change the following code if d like to have the original attribute table name (eg Adress) and the attribute fieldname (eg ZipCode) as file name? (Adress_ZipCode)

The code as I have it now would just name the output JPG after the field in the attribute table (ZipCode)

outPath = "D:\\Test\\Folder1\\Example\\outJPEG = os.path.join(outPath, attr + ".jpg")(attr is a codeblock which takes out each field in the attribute table in ArcGIS). Maybe os-path.split is an option but I am not so familiar with python and cannot make it work..



أكثر...
 
أعلى