3,787 reputation
926
bio website
location Chicago, IL
age 27
visits member for 2 years, 8 months
seen 23 hours ago

Urban Planning Analyst.


1d
answered Python query to find records with more than one alpha character in a field
Jul
3
reviewed Approve suggested edit on Labeling a Feature Class - how to force the label to use a particular field
Jul
3
reviewed Approve suggested edit on Labeling a Feature Class - how to force the label to use a particular field
Jul
2
awarded  Curious
Jul
1
reviewed Approve suggested edit on Changing original source projection
Jun
12
comment ModelBuilder - How to calculate Field using part of path name
While this isn't technically a ModelBuilder answer, you could turn this into a short Python script tool (i.e. add it to a toolbox) and incorporate it into your model. The tool would have to accept the feature class/layer and the field name as inputs.
Jun
12
comment ModelBuilder - How to calculate Field using part of path name
Can we see the exact expression you're using for the calculation, and/or a screenshot of the relevant portion of your model?
Jun
2
awarded  Enlightened
Jun
2
awarded  Nice Answer
May
29
revised GetCount raises exception
Updated code to play nice with old Python
May
28
answered GetCount raises exception
May
28
comment GetCount raises exception
Let us continue this discussion in chat.
May
28
comment GetCount raises exception
You're checking numeric values, but quoting them in the query. Is the field formatted as a string?
May
28
comment GetCount raises exception
Have you debugged to verify the results of your isdigit check for each line?
May
28
comment GetCount raises exception
Try query = "[FIELD] = \"%s\"" % line.strip() -- I'm guessing there's a newline character (\n) at the end of each line that's causing problems.
May
28
answered Using ArcPy and Python to export Table View as PDF format?
May
27
revised Python MemoryError when running ArcGIS Python Toolbox tool
Clarification of solutions
May
27
accepted Python MemoryError when running ArcGIS Python Toolbox tool
May
27
comment Python MemoryError when running ArcGIS Python Toolbox tool
Thanks, Jason. I can confirm that make_oid_array() works (after I made a couple corrections) in foreground processing. As I noted in a comment to my question, I can also get make_oid_dict() to work if I enable background processing for the tool.
May
27
revised Python MemoryError when running ArcGIS Python Toolbox tool
Corrected errors in `make_oid_array()`