734 reputation
25
bio website
location
age
visits member for 2 years, 6 months
seen 2 days ago

2d
comment Update Data Driven Pages Index layer via Python
Curious, maybe I'm missing something, but if the schema isn't anything unexpected to confound the indexing as DDP is expecting, then why can't you simply replace the dataSource instead of all the layer obj manipulations?
May
11
answered Combo box in python add-in for Arc - keep selected value visible
Apr
20
comment Add layer to mxd files ignoring specific item- arcpy
If you don't need case sensitivity and specifically want to exclude 'land use', then instead of Alex's "if 'land use' not in mxd", you could use: if os.path.splitext(mxd.lower())[0] != 'land use'
Apr
3
answered Losing Subtypes when exporting selected Feature Class Data
Apr
3
answered arcpy.da.SearchCursor ignores the where_clause parameter?
Apr
1
answered Feature Class to Feature Class Keeps Layer Name In Fields 10.2?
Mar
31
comment Appending polygons to existing feature class in ModelBuilder?
Looks to me like a case for in-line variable substitution for making unique output names. However, you need Append. If you include an Append, then you're adding the output to a destination before it gets overwritten.
Mar
26
comment Arcpy reclassify label display issue
Not sure but think you can mark your own post as the answer.
Mar
26
comment Arcpy reclassify label display issue
Just checked the webhelp-- classBreakLabels are both read/write as a list, so you should be able to read the labels in, reformat the labels to reflect the rounded to 10ths you desire, then write the list back to that property...and refresh the layer.
Mar
26
comment Arcpy reclassify label display issue
Thought that's where you were heading but wanted to be sure...very well. So in that case, I'm not logged in to confirm, but can you intercept from the layer object the reclassification values and subsequently apply similar logic as from the sample code to 'reapply' rounded output?
Mar
26
answered Running Select results in error 000210
Mar
26
comment Running Select results in error 000210
\n is an escape sequence; for your output use a raw string, as in r'C:\output\newpoly.shp'
Mar
26
answered Arcpy reclassify label display issue
Mar
24
answered Exporting gdb tables to excel in folder containing gdb?
Mar
22
comment Arcpy save command giving errors
Think the problem is the there is no result obj reference to save by...not sure, but make sure your input parameters are valid and use the sa alias suffix, as in arcpy.gp.Fill_sa
Mar
15
comment Concatenate string data plus numeric data in Arcmap 10.2.2
Come to think of it, do you really want to include the text 'Address'?...if so, is your destination field long enough? Otherwise, remove that text, simply do this: my_result_string = "{0} {1} {2}".format(my_address_nr,street_name,my_street_ty)
Mar
15
comment Concatenate string data plus numeric data in Arcmap 10.2.2
could be a simple error in formatting the string...recommend replacing the my_result_string line with: my_result_string = "Address: {0} {1} {2}".format(my_address_nr,street_name,my_street_ty)
Mar
15
comment Concatenate string data plus numeric data in Arcmap 10.2.2
@Jelle, about the string formatting, this is perhaps a more conducive way to enter string variables, see examples here: docs.python.org/2/library/string.html?#format-examples. I think if you provided a screenshot for Snickers, it would be best. (I'm not logged in; maybe you are?)
Mar
15
comment Concatenate string data plus numeric data in Arcmap 10.2.2
Think there's also an error in forming the result string, missing a '+'. I recommend using format function.
Mar
15
comment Concatenate string data plus numeric data in Arcmap 10.2.2
I think Jelle meant not to include 'def' in the expression line.