Tag Info

New 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: ...


0

You are describing a problem that has often plagued me, although not for a while. It has been discussed in a Knowledge Base Technical Article entitled: Problem: On some systems, running any Geoprocessing tool in ArcToolbox results in Microsoft Script Errors and the tool dialog box appears blank Two solutions/workarounds are offered there: ...


0

Along the lines of what @michael said, just set all of the parameters to required, and in the tool validation script modify the updateParameters function to look like this: def updateParameters(self): for i in range(6): if not self.params[i].value: self.params[i].value = '--' return Then have your script to only use parameters that do not ...


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.



Top 50 recent answers are included