|
POST
|
count = 0
id_list =[]
def cummulativeCount(increment, id_row_value):
global count
global id_list
id_list.append(id_row_value)
if len(id_list)>=2 and id_row_value == id_list[-2]:
count += int(increment)
elif len(id_list)<2:
count += int(increment)
else:
count = int(increment)
return count cummulativeCount( !count_! , !id! )
... View more
05-09-2020
08:18 AM
|
0
|
1
|
5286
|
|
POST
|
It should work through the python window if you're connected to the sde (I guess). Hopefully someone with more ken can solve that one if not. import arcpy
import os
workspace = r'your sde here'
walk = arcpy.da.Walk(workspace, datatype="FeatureClass", type="Polygon")
polygon_list = []
for dirpath, dirnames, filenames in walk:
for filename in filenames:
polygon_list.append([os.path.join(dirpath, filename), filename])
walk = arcpy.da.Walk(workspace, datatype="FeatureClass", type="Polyline")
line_list = []
for dirpath, dirnames, filenames in walk:
for filename in filenames:
line_list.append([os.path.join(dirpath, filename), filename])
walk = arcpy.da.Walk(workspace, datatype="FeatureClass", type="Point")
point_list = []
for dirpath, dirnames, filenames in walk:
for filename in filenames:
point_list.append([os.path.join(dirpath, filename), filename])
print(line_list)
for polygon in polygon_list:
row_count = arcpy.GetCount_management(polygon[0])
print("Polygon -- " + polygon[1] + " -- " + str(row_count))
print("\n")
for line in line_list:
row_count = arcpy.GetCount_management(line[0])
print("Line -- " + line[1] + " -- " + str(row_count))
print("\n")
for point in point_list:
row_count = arcpy.GetCount_management(point[0])
print("Point -- " + point[1] + " -- " + str(row_count))
... View more
05-09-2020
05:04 AM
|
0
|
0
|
934
|
|
POST
|
I've symbolised cities by their Nation and sized them by Population.
... View more
05-09-2020
03:28 AM
|
1
|
1
|
2910
|
|
POST
|
Apologies, maybe it's just how you're choosing to view the metadata?
... View more
05-08-2020
10:49 AM
|
0
|
2
|
4630
|
|
POST
|
Right Click --> Properties --> Source --> Spatial Reference ?
... View more
05-08-2020
10:02 AM
|
0
|
0
|
4630
|
|
POST
|
Yes Johannes, deleted as I was confusing it with a backslash...
... View more
05-08-2020
05:09 AM
|
0
|
0
|
1212
|
|
POST
|
I don't use model builder but I had a quick look. Something along the lines of (guessing the model builder syntax): myfunc(%Row Count%) def myfunc(input): return bool(input)
... View more
05-08-2020
03:27 AM
|
0
|
0
|
2020
|
|
POST
|
On your tool window on the RHS it is set to 'overlap'. change this to split or dissolve.
... View more
05-08-2020
02:36 AM
|
4
|
2
|
4098
|
|
POST
|
Hi, I would love to live in a place called Manjimup! Don't care what it's like, just saying the name will do me fine. I'm guessing each town's edits are isolated to their own folders? i.e. there's no shared edits and you only want to replicate each location's data to share between you? I'm guessing a county which is managing districts etc?
... View more
05-08-2020
02:07 AM
|
0
|
1
|
1762
|
|
POST
|
It looks very much like a one-way restriction is applied in your Pro service area.
... View more
05-08-2020
01:55 AM
|
4
|
4
|
4098
|
|
POST
|
My excel graph skills are non existent. maybe something like the below fake histogram (I hate excel) where you could then maybe create a probability density for travel differences, statistically break it into SDs and quartiles etc?
... View more
05-07-2020
04:16 AM
|
0
|
0
|
2023
|
|
POST
|
Why are 2 matrices being calculated? Are you changing the number of destinations for each? Facility and Demand terminology refers to Location Allocation problems, OD Cost Matrix is Origin / Destination (as far as my understanding permits). I'm really sorry but I'm not getting a good grip of this question, but it might just be my fault. However, a picture paints a thousand words and will likely help others to answer this if I can't.
... View more
05-07-2020
03:28 AM
|
0
|
2
|
2023
|
|
POST
|
It really relies upon the attribution of your network dataset. If it is every basic, the only 'cost' of traversing the network the solver can use is distance. If the network has a time cost / speed limit etc you can use this as an impedence value in the Analysis Settings window as opposed to distance. The OD solver output will then reflect that. Of course if you assume your travel speed along the network to remain unchanged, a simple distance/speed calculation would do it. e.g. 10km/10kph = 1 hour travel.
... View more
05-07-2020
02:00 AM
|
0
|
4
|
2023
|
|
POST
|
Something like an arcpy.da.SearchCurosr to compare geometries then create a matching dictionary of some sort. Would it be worth the effort? whats the purpose?
... View more
05-05-2020
12:25 PM
|
0
|
0
|
3459
|
| 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 |
a week ago
|