Tag Info

Hot answers tagged

4

Here is the code that should work for you: import arcpy mylist = ['A4126','A4190'] print str(tuple(mylist)) tempFeat_1 = r"C:\ArcGIS\Default.gdb\AR_postalcodes" tempFeat_2 = r"C:\ArcGIS\Default.gdb\AR_postalcodes_sel" qry = """POSTCODE IN {0}""".format(str(tuple(mylist))) arcpy.Select_analysis(tempFeat_1, tempFeat_2, qry) A couple of comments: ...


2

The problem is in your code block. Instead of: def Reclass( !CODE! , !COMPLEX! ): if ( !CODE! == 1.1.7 and !COMPLEX! == 4): return 1.3 elif ( !CODE! == 3.2.0 and !COMPLEX! == 4): return 1.3 else: return 0 try: def Reclass( CODE , COMPLEX ): if ( CODE == "1.1.7" and COMPLEX == 4): return 1.3 elif ( ...


2

Only a small modification is needed: You need to generate the group prior to exporting (i.e., use i.group), then export to a multilayer file by assigning the group name as input in the r.out.gdal call.



Only top voted, non community-wiki answers of a minimum length are eligible