Tag Info

New answers tagged

3

There appears to be a solution on your duplicate post on the Esri forums: You just need to delete this part (first three lines of the script): Python 2.7.5 (default, May 15 2013, 22:43:36) [MSC v.1500 32 bit (Intel)] on win32 Type "copyright", "credits" or "license()" for more information. >>> I think the author of this tool meant to ...


0

I'm calling this a workaround since I'm not sure if there is a better way to deal with the typeloadexception, but I changed my CompilerParameters to generate to a file: outpath (where the outpath is the assembly cache directory + somefilename.dll). Now it works. CompilerParameters options = new CompilerParameters(); options.GenerateExecutable = false; ...


4

Make your expressions as triple quoted strings - nice and clean! For File geodatabases: """CRIME_INDX <= 0.02""" """NAME = 'California'""" For personal geodatabases (.mdb): """[CRIME_INDX] <= 0.02""" """[NAME] = 'California'"""


0

I think you need to do something like this: queryString = "\"{0}\" >= {1} OR \"{0}\" <= {1}".format(field.name, integer) The query shouldn't use the actual value, it should compare the field name. So the value in this field is less than this value. Also, as far as I know, you shouldn't have the comma after affectedfield, just use: with ...


3

I'm not by a computer where I can try this within ArcMap, but try: wf_expression = '"AGE_18_64"' + " >= " + str(wf_value) or, using str.format(): wf_expression = '"AGE_18_64" >= {0}'.format(wf_value) Try that if wf_value is supposed to be a number in the sql query (you don't generally need to enclose numeric values in quotes). If however it ...



Top 50 recent answers are included