Hot answers tagged error
Your Try: statement is capitalised, it should be lower case - try:
With booleans, you need to repeat the query with the name of the field : ("Pop_CL"=8) or ("Pop_CL"=9) or ("Pop_CL"=10) but in your case you could use "Pop_CL" in (8,9,10)
The northern two-thirds of Georgia should be pretty good, because the South Carolina coordinate reference system is Lambert conformal conic-based. Thus, the standard parallels extend through Georgia too. I ran a point at 31N 85W through the National Geodetic Survey's SPC program to see what the distortion would be. Note: South Carolina's zone is 3900. It ...
You cannot assign an output directly to a field in the calculation text, only by selecting the field as the output field of the calculation. [Intact] needs to be changed to Intact (a variable) and the output needs to be to Intact in the field output portion. Parser: VB Script Use Codeblock: Checked Pre-Logic Codeblock: If IsNull([Condition]) Then ...
As Michael suggested, first creating a layer file of populated rows should do the trick. Before your code, create a variable with the proper SQL query, and then create your layer file. Execute your time conversion on your layer file. code: sql = '"START_DATE" IS NOT NULL' arcpy.MakeFeatureLayer_management (SA_TEN_GOV_els, "lyr", sql) ...
try this method, it could be work. using "copy feature" tool to create a new feature class in .gdb. export the new feature as a shapefile. hope it works. Good luck.
When I have a layer with errors , I normally run it through the GRASS function v.clean in the Processing Toolbox. Though I never really figured out which tool is best in which case, I normally choose the bpol function there. Maybe even more important it is to set the advanced parameters for snap tolerance and min area. Depending on the layer, I usually ...
I am assuming you are running this as a field calculate from a table? You don't reference the field you want to change in the pre-logic script section, you apply a variable to it which you compute a value for (in your case a 1 or a 0). Add Dim x to the beginning of the code in the pre-logic script code box then replace all "[Intact] = " with "x = " As you ...
Only top voted, non community-wiki answers of a minimum length are eligible