POST
|
I have access to 10.3.x, that is not the issue, unless 10.3 is significantly more stable and/or has 64 bit geoprocessing available (10.2.2 crashes a lot for me, and I am working with large datasets with 64 bit might be helpful)
... View more
02-14-2016
10:09 PM
|
0
|
1
|
654
|
POST
|
Thanks, but I do not seem to have access to that page. I get this error: Which is why I ask if this is available to students. Do you have a student account?
... View more
02-14-2016
09:46 PM
|
0
|
2
|
654
|
POST
|
Is it possible to install/enable 64 bit background geoprocessing using a student license in ArcGIS 10.2.2? Thank you.
... View more
02-14-2016
09:14 PM
|
0
|
9
|
2892
|
POST
|
You might try a Query Table. I have been recently using them in lieu of one-to-many joins. You add both tables, and then you input a SQL expression that contains the relationship. It will then "duplicate" records in the spatial table to match the entries in the non-spatial table, and visa versa. A relate would be significantly different than your current set up. You would select the record in your spatial table, and the matching records would be selected in the non-spatial table, but they would still appear as two separate tables, unlike a join. This may impact your workflows. A query table, however, would function much like the original table, (although it would not support editing). The query table would even show the features if you include the SHAPE@ field!
... View more
02-06-2016
09:53 PM
|
0
|
2
|
730
|
POST
|
I concur with Dan. The student code would have worked with ArcGIS 10.3; it is not dependent on the version.
... View more
02-06-2016
09:46 PM
|
2
|
1
|
497
|
POST
|
I was using an unwieldy model that I should have written in arcpy to begin with. I actually managed to do so in a relatively quick manner, it works 10-100 x faster than model builder! Troubleshooting it seems no longer necessary.
... View more
02-06-2016
03:02 PM
|
1
|
1
|
708
|
POST
|
I actually ended up rewriting the tool from scratch in Python, and actually got at least a 10 fold improvement in performance!
... View more
02-06-2016
02:59 PM
|
1
|
0
|
708
|
POST
|
Thank you so much! switching the positions and passing the geometry fixed this immediate error! << arcpy.SelectLayerByLocation_management(P_paths, "COMPLETELY_CONTAINS", Cup_shape, "", "NEW_SELECTION") >>
... View more
02-06-2016
01:32 PM
|
0
|
0
|
479
|
POST
|
Thank you, Wes Miller, for confirming that it should work. My tool looked very much like yours. However, I was getting an error that it could not open the specified field. Do you have any suggestions?
... View more
02-06-2016
12:48 PM
|
0
|
3
|
708
|
POST
|
Hello, I have a cursor cycling through several polygon features. Would like to pass the current cursor entry to the Select by Location tool, to select a series of lines contained by the polygons. I am getting an error stating the Select by Location tool is not working. Is my syntax correct? In the for loop, I defined for "Cup_row in C_update"; do I just pass "Cup_row" as the input to the "SelectLayerByLocation_management" tool The "A2" exception is displaying "Object: Error in executing tool" for Cup_row in C_update:
C_count+=1
Cup_totalest = Cup_row[0]
Cup_totalmoe = Cup_row[1]
Cup_pairid = Cup_row[2]
Cup_subpairs = Cup_row[3]
Cup_OX = Cup_row[4]
Cup_OY = Cup_row[5]
Cup_DX = Cup_row[6]
Cup_DY = Cup_row[7]
#initial values
Cup_totalest = 0.0
Cup_totalmoe = 0.0
Cup_pairid = ""
C_pairlist = []
if(p_er):print "A1"
#---Select Subpairs containted by corridor---##
try:
arcpy.SelectLayerByLocation_management(Cup_row, "COMPLETELY_CONTAINS", P_paths, "", "NEW_SELECTION")
except Exception as A2:
arcpy.AddError(A2)
print "A2 "+ str(A2)
... View more
02-06-2016
12:11 PM
|
0
|
2
|
2797
|
POST
|
Hello, I have a modelbuilder tool with an iterator that produces a selection in another feature class each iteration. I would like to get the value of a field from the records in each selection, and put them in a coma separated string. I have attempted to use an embedded python tool to use a search cursor over these records, but it does not seem to work. I get a runtime error: cannot open '<<field name>>' Do you have any suggestions as to how to accomplish this? Would a searchcursor work in an iterator model? Thank you. -- My python tool containing the search cursor. It works as expected in isolation, but not in the model builder tool. import arcpy
from arcpy import env
env.workspace = arcpy.GetParameterAsText(0)
##import time
#from datetime import datetime
##current_time=time.strftime("%H:%M:%S")+" "+ time.strftime("%d/%m/%Y")
local_pairlist = "" #list will be populated with pair ids from paths in prevailing direction
#selected features
pathfc = arcpy.GetParameterAsText(1) #demand paths in prevailing direction
path_pair_id= str(arcpy.GetParameterAsText(2)) #pair id field
with arcpy.da.SearchCursor(pathfc,(path_pair_id,)) as path_cursor:
newpair=path_row[0]
if local_pairlist == "":
local_pairlist+=newpair
else:
local_pairlist+=r","+newpair
#--//colection loop--#
##print "OD Builder Finished!\n\nOutput table="+str(out_name)+"\n\nLocation: " + str(out_path)
arcpy.AddMessage("Subpairs saved!")
arcpy.SetParameter(3, local_pairlist)
... View more
02-05-2016
10:45 PM
|
0
|
7
|
3129
|
POST
|
I have a model with an iterator that produces a selection of records each iteration. I would like to get the values of a field from every record, and compile the values into a single coma delimited string. I have attempted to use an embedded python tool to use a search cursor over these records, but it does not seem to work. I get a runtime error: cannot open '<<field name>>' Is it is possible to run a python script tool with a cursor as a sub tool to loop through the selected records to get the field values and append them to the string? Is there a better way of doing this?
... View more
02-05-2016
10:38 PM
|
0
|
1
|
2105
|
POST
|
You might try buffering inwards, with a buffer radius equal to half the polygon width. Then export the narrow "reverse buffer" as a polyline, with a narrow snap tolerance so that you get a single center line. I haven't tried this myself, so I can't guarantee that it will work, but hopefully gives you a starting point.
... View more
12-04-2012
03:12 AM
|
0
|
0
|
698
|
POST
|
Hello everyone, I am trying to call on the "Lookup" tool to look up a value in field located in a table joined to the raster's attribute table. I have successfully used "Lookup" manually from the arctoolbox to build a new raster using a field in the joined table. I have also successfully called "Lookup" from within the "Raster Calculator" to get a value from a field in an attribute table without a join. However, whenever I try to "Lookup" a value from an attribute table with a join, it gives me an error that the field does not exist. This is the case whether the field is in the attribute table or the joined table. Does anyone have any insight into why I am getting this error? Does "Lookup" not normally work with joined tables? Thank you!
... View more
12-03-2012
03:07 PM
|
0
|
0
|
364
|
Title | Kudos | Posted |
---|---|---|
1 | 02-06-2016 02:59 PM | |
1 | 02-06-2016 03:02 PM | |
2 | 02-06-2016 09:46 PM |
Online Status |
Offline
|
Date Last Visited |
11-11-2020
02:24 AM
|