POST
|
Ken Buja, you are the best, most capable Bro on GeoNet today. I was all Ric Flair over here when I saw your response. Ric Flair Woo - YouTube 3 gold stars!
... View more
12-17-2019
02:23 PM
|
0
|
0
|
106
|
POST
|
I think one solution is to use the SPlit lines at specified distance tool . http://help.arcgis.com/en/arcgisdesktop/10.0/help/index.html#/at_a_specified_distance_or_percentage/001t0000008r000000/ If I split to 5 m lengths, I could then use the Add Surface Info tool on these then dissolve based on an ordinal classification in a separate field. How can I use the Splitting lines at specified distance tool in an automated manner? Or is this strictly a manual process? Thanks!
... View more
09-30-2014
08:21 AM
|
0
|
0
|
24
|
POST
|
I've got a script that crashes python when trying to run the following tool arcpy.MakeQueryTable_management Running in IDLE, Arcmap 10.1, windows 7 The crash is intermittent, maybe 50% of the time. Here is the error that comes up: python.exe has stopped working Description: Stopped working Problem signature: Problem Event Name: APPCRASH Application Name: pythonw.exe Application Version: 0.0.0.0 Application Timestamp: 4df4b9cc Fault Module Name: GPCoreFunctions.dll Fault Module Version: 10.1.0.3035 Fault Module Timestamp: 4f9203bd Exception Code: c0000005 Exception Offset: 002f35ba OS Version: 6.1.7601.2.1.0.256.48 Locale ID: 1033 Read our privacy statement online: http://go.microsoft.com/fwlink/?linkid=104288&clcid=0x0409 If the online privacy statement is not available, please read our privacy statement offline: C:\Windows\system32\en-US\erofflps.txt Thoughts?
... View more
11-06-2013
07:56 AM
|
0
|
0
|
1839
|
POST
|
jscheirer, You are a hero of our times. I only wish esri still had a star system so you could be rewarded appropriately. I had attempted to use the zip method previously, though for some reason I determined that it didn't work. I suppose I went about it wrong. Thanks again for the help! You can use zip to unify two lists in the way you're looking for. I would rewrite the script like this: symbols = (u'\u00b0', u"'", u"''") Update_cursor = arcpy.UpdateCursor(feature_class) for rows in update cursor: coord = row.latitude merged_items = zip(coord.split(u"-"), symbols) merged_value = "".join(x + y for (x, y) in merged_items) row.new_field = merged_value Update_cursor.updateRow(row)
... View more
04-14-2011
08:17 AM
|
0
|
0
|
20
|
POST
|
Here's how I do it. Note: I'm printing the 'path' variable to make sure everything looks right during testing. # Start a blank list for appending list = [] for tbl in mlist: # Create the full path path = tempWS+tbl print path # Append all the paths together into one big list filepath = list.append(path) ## Create the proper format for the Merge tool # Separate each item in the list by a ';' and put "" around the whole thing. mergedlist = '"'+';'.join(list)+'"' try: print "Merging to get Output.dbf..." gp.merge_management(mergedlist, "Ouptput.dbf") print gp.GetMessages() except: print "\n *** ERROR: Output.dbf failed to merge *** \n" print gp.GetMessages() This snippet of code worked for my merge problem. Thank you very much rdharles. This is how I would do it too. 😄
... View more
02-02-2011
01:49 PM
|
0
|
0
|
11
|
POST
|
Functionally they are the same, just getattr and setattr will work on any Python object, not just row objects.
... View more
08-10-2010
05:49 PM
|
0
|
0
|
2
|
Online Status |
Offline
|
Date Last Visited |
11-11-2020
02:23 AM
|