Skip to main content
13 events
when toggle format what by license comment
Jul 15, 2022 at 19:03 vote accept skepticizin
Jul 14, 2022 at 14:23 answer added KHibma timeline score: 1
Jul 13, 2022 at 4:20 history edited PolyGeo
edited tags
Jul 12, 2022 at 18:30 history edited skepticizin CC BY-SA 4.0
updated code to show more of what's going on; cleaned up some comments for clarity.
Jul 12, 2022 at 18:27 history edited skepticizin CC BY-SA 4.0
added 2355 characters in body
Jul 12, 2022 at 18:22 comment added skepticizin oh i see edit now. I'll add some info.
Jul 12, 2022 at 18:19 comment added skepticizin so my main.py receives user input for gdb and everything is run from the root project directory, so relative paths. at the time of writing this my string for gdb input was just "WY_testing.gdb" as out_worksapce variable fed to the Proc class. I'm not sure I can edit this post or I would include the other part of the code to show you. If I add a gdb "Exists" check before I run this code above, the check comes back truthy.
Jul 12, 2022 at 17:26 comment added Vince If it's giving an OS error on a "file" containing '.gdb', then the geodatabase is not being seen as a folder, and the file (aka table) in the geodatabase is not being searched for in the geodatabase catalog. That means the declaration is outside this function (which you could prove by doing an arcpy.Exists before calling the function).
Jul 12, 2022 at 17:10 comment added skepticizin I've isolated the error to this code. It seems it might be an arcpy parameter problem, the in_features (first param) of the tool 'AddGeometryAttributes' does not like that I used a variable as input. It might want a string version of that variable. I'm doing some testing to see if this is the issue. I'll post back here if it is. Thanks for your comment.
Jul 12, 2022 at 16:05 comment added Vince The error may not be in this code. How are you invoking the function? Did you escape the backslash or use raw formatting?
Jul 12, 2022 at 16:04 history edited Vince CC BY-SA 4.0
removed thanks ; formatting
S Jul 12, 2022 at 15:27 review First questions
Jul 12, 2022 at 15:34
S Jul 12, 2022 at 15:27 history asked skepticizin CC BY-SA 4.0