|
POST
|
If you want those as a script it should be pretty easy and I'm happy to help, though I understand that might not be the point. I'm happy to admit my knowledge of model builder is limited!
... View more
02-22-2020
02:05 PM
|
0
|
3
|
10516
|
|
POST
|
Do you mean different types of retail attribute will contribute more to the density? Or separate densities for each type of retail?
... View more
02-22-2020
11:54 AM
|
0
|
8
|
2418
|
|
POST
|
Hi, completely unsure of the reason but a quick fix in field calculator would be: set it to python on the radio button and click 'show codeblock' put this in the pre-logic script code : def curly(field):
field = field.replace("{","")
field = field.replace("}","")
return field then type into the codeblock at the bottom (below 'my field =') curly(the name of your field enclosed within ! !) e.g. curly(!GUID!)
... View more
02-22-2020
08:17 AM
|
0
|
0
|
3996
|
|
POST
|
More info please. Is this for a home range? If you can give a full picture of the inputs, process and outputs.
... View more
02-22-2020
04:43 AM
|
0
|
2
|
1971
|
|
POST
|
Jeremy, nice one. Why I tried to edit the dictionary comprehension i dont know. I'm sticking to iterators! I think that may mislead others with incorrect solutions, but thanks anyway. Theres a points system??
... View more
02-21-2020
01:53 PM
|
0
|
0
|
1849
|
|
POST
|
Wifi down so back to phone. The last line in my previous should be cursor.updateRow(row)
... View more
02-21-2020
12:58 PM
|
1
|
0
|
3739
|
|
POST
|
I can't see why it's doing that. Could you show the prints or resend the feature as it wouldnt open in arc
... View more
02-21-2020
12:18 PM
|
0
|
2
|
3739
|
|
POST
|
import arcpy
inFC = #path toExample.gdb\Lines
inFields = ['ID', 'SHAPE@', "Shape_Length"]
valueDict = {r[0]:r[1] if int(r[2])!= 0 for r in arcpy.da.SearchCursor(inFC, inFields)}
print(valueDict)
with arcpy.da.UpdateCursor(inFC, inFields) as cursor:
for row in cursor:
row[1] = valueDict[row[0]]
print(row[1])
row.updateRow(row) my dictionary comprehension might be wrong, I always get confused doing them. the rest miiiight work..
... View more
02-21-2020
11:07 AM
|
1
|
4
|
3739
|
|
POST
|
Are you saying the problem is its failing on the second iteration? What's the full error? Can you print the tin filepath if that's what's erroring? Why do you need the time.sleep?
... View more
02-21-2020
10:31 AM
|
0
|
0
|
1274
|
|
POST
|
Yep I'd recommend that. Let me know if you need a hand with the script. I thought you meant a related table 'joins and relates'.
... View more
02-21-2020
09:28 AM
|
0
|
6
|
3739
|
|
POST
|
#Create an empty list of ArcMap documents to process...
mxd_list=[ ]
directory = r'#your filespace to find mxds in#'
for root, dirs, files in os.walk(directory):
for file in files:
if ".mxd" in file:
mxd_path = os.path.join(root, file)
mxd_list.append(mxd_path)
... View more
02-21-2020
07:55 AM
|
1
|
1
|
3577
|
|
POST
|
I dont quite get what you want to achieve, can you give more detail? Geometry objects can be accessed with a search cursor and SHAPE@
... View more
02-21-2020
07:41 AM
|
0
|
0
|
3739
|
|
POST
|
ok try this (sentences which start with a # are just comments to you, not part of the code). # insert this where it says 'code block'
def func(field):
result = (float(field) + 1.0)/ 2.0
return result
#put this where it says Med_PS =
func(%Row Count%)
#if that doesnt work try changing the 'code block' to
def func(field):
result = (float(field[0]) + 1.0)/ 2.0
return result
#if that doesnt work try changing the 'code block' to
def func(field):
result = (float(field.getOutput(0)) + 1.0)/ 2.0
return result
... View more
02-21-2020
07:37 AM
|
0
|
0
|
2284
|
|
POST
|
Can you try without the quotations around Row Count
... View more
02-20-2020
12:50 PM
|
0
|
1
|
2284
|
|
POST
|
I guess its password protected? I actually think you can set defaults in the gp widget but I'm not sure. I'd try and get hold of the script, though can you not run it, go to the results window and share as a service? The defaults could be changed in the publishing window maybe.
... View more
02-20-2020
11:40 AM
|
0
|
1
|
4236
|
| Title | Kudos | Posted |
|---|---|---|
| 1 | 06-13-2025 01:08 PM | |
| 1 | 09-25-2025 03:19 PM | |
| 1 | 09-24-2025 02:35 PM | |
| 1 | 09-17-2025 02:42 PM | |
| 1 | 09-10-2025 02:35 PM |
| Online Status |
Offline
|
| Date Last Visited |
01-14-2026
12:10 PM
|