POST
|
That worked perfectly! Sadly, performance is....lacking. Eg. I have a line with 36 features that passed thru 3 states. The result (pop up) takes 2-3 minutes to execute, on a very fast computer and very fast internet. Is this just a hard limitation of Arcade that can't be worked around?
... View more
04-21-2023
03:11 PM
|
0
|
1
|
1158
|
POST
|
In an AGOL webmap, I have an Attribute Expression (that I sourced from here😞 // get the states layer
var portal = Portal('https://arcgis.com')
var states = FeatureSetByPortalItem(
portal,
'a454cf97c4264cd2b77f27175e01d3ba',
3,
['ABBRV']
)
// intersect feature with States
var xs = Intersects(
$feature,
states
)
// create array of intersected state names
var c_array = []
for (var c in xs){
Push(c_array, c['ABBRV'])
}
// remove duplicates
var unique_states = Distinct(c_array)
// concatenate array, return string
return Concatenate(unique_states, ', ') That works as expected: user clicks on a line, pop-up returns a list of state(s) that the selected line intersects. Here's the problem: the line is multiple parts (features? Sections?). CHunked up by numerous attributes (state, county, district, etc....). So if the user clicks on a line segment, they get the state(s) that the segment intersects. But what I want is: Every single state the ENTIRE line intersects, based on the name of the line. So if the NAME attribute of the line they click on is "BIGFOOT", some sort of magical arcade thing that FIRST selects every single line segment (which could be dozens) with NAME = "BIGFOOT", then do the intersect and return every state intersected by every line segment where NAME = "BIGFOOT".
... View more
04-21-2023
01:27 PM
|
0
|
3
|
1179
|
POST
|
I'm trying to build a list from a feature class that is a lot of polylines, something like this: Trail 1, State 1, District 1 Trail 1, State 1, District 1 Trail 1, State 1, District 2 Trail 2, State 2, District 3 Trail 2, State 2, District 4 Trail 3, State 3, District 5 Trail 3, State 4, District 6 Trail 3, State 5, District 7 Trail 3, State 6, District 8 Trail 3, State 7, District 9 What I want the list to show is: Trail 1, 1 State(s), 2 District(s) Trail 2, 1 State(s), 2 District(s) Trail 3, 5 State(s), 5 District(s) What I've got so far is: var fs = FeatureSetByPortalItem(Portal('https://arcgis.com/'), 'a454cf97c4264cd2b77f27175e01d3ba', 0, ['TRLNAME','STATE','CONG_DIST'], false);
return GroupBy(fs, ['TRLNAME'],
[{name: 'total_states', expression: 'STATE', statistic: 'COUNT' },
{name: 'total_districts', expression: 'CONG_DIST', statistic: 'Count' }]); Which gives me Which is giving me unique trails, but very clearly not the unique state, district for each trail. How do I narrow down the expression to return unique states,districts for each trail? Not a programmer.....
... View more
04-20-2023
09:24 AM
|
0
|
2
|
1117
|
POST
|
I'm trying to build a dashboard list from a feature class that is a lot of polylines, something like this: Trail 1, State 1, District 1 Trail 1, State 1, District 1 Trail 1, State 1, District 2 Trail 2, State 2, District 3 Trail 2, State 2, District 4 Trail 3, State 3, District 5 Trail 3, State 4, District 6 Trail 3, State 5, District 7 Trail 3, State 6, District 8 Trail 3, State 7, District 9 What I want the list to show is: Trail 1, 1 State(s), 2 District(s) Trail 2, 1 State(s), 2 District(s) Trail 3, 5 State(s), 5 District(s) What I've got so far is: var fs = FeatureSetByPortalItem(Portal('https://arcgis.com/'), 'a454cf97c4264cd2b77f27175e01d3ba', 0, ['TRLNAME','STATE','CONG_DIST'], false);
return GroupBy(fs, ['TRLNAME'],
[{name: 'total_states', expression: 'STATE', statistic: 'COUNT' },
{name: 'total_districts', expression: 'CONG_DIST', statistic: 'Count' }]); Which gives me Which is giving me unique trails, but very clearly not the unique state, district for each trail. How do I narrow down the expression to return unique states,districts for each trail? Not a programmer.....
... View more
04-20-2023
09:22 AM
|
0
|
0
|
620
|
POST
|
Looking for a python-way to check the existence of the following as part of a QA script: If the correct default is assigned to a field; If the field is nullable If the field is required
... View more
03-14-2023
08:21 AM
|
0
|
2
|
862
|
POST
|
With the following I am evaluating: Does the field exist and correct length. Print message Does the field exist and incorrect length. Print message Does the field not exist. Create field. Print Message #Create required TRLNAME Field
try:
in_Field = "TRLNAME"
if len(arcpy.ListFields(in_Table,in_Field))>0 and len(in_Field) == 254:
arcpy.AddWarning(in_Field+" exists and is the correct length. Yay!")
elif len(arcpy.ListFields(in_Table,in_Field))>0 and len(in_Field) != 254:
arcpy.AddWarning(in_Field+" exists but is not the correct string length (254).")
else:
arcpy.AddField_management(in_Table, in_Field, "TEXT", "", "", 254, in_Field, "NON_NULLABLE", "REQUIRED", "")
arcpy.AddMessage ("Created the "+in_Field+" field.")
except arcpy.ExecuteError:
msgs = arcpy.GetMessages(2)
arcpy.AddError(msgs)
except:
tb = sys.exc_info()[2]
tbinfo = traceback.format_tb(tb)[0]
pymsg = "PYTHON ERRORS:\nTraceback info:\n" + tbinfo + "\nError Info:\n" + str(sys.exc_info()[1])
msgs = "ArcPy ERRORS:\n" + arcpy.GetMessages(2) + "\n"
arcpy.AddError(pymsg)
arcpy.AddError(msgs) If the field does not exist, it correctly creates it. However, if the field exists, regardless of if it's the correct length (254 or any other string length), it always defaults to the "elif" in the block and reports that the field is not the correct length. Feel like this is a simple syntax error but I've been at it for hours and not seeing it. Help?
... View more
03-13-2023
11:49 AM
|
0
|
4
|
1295
|
POST
|
With the following I am evaluating: Does the field exist and correct length. Print message Does the field exist and incorrect length. Print message Does the field not exist. Create field. Print Message #Create required TRLNAME Field
try:
in_Field = "TRLNAME"
if len(arcpy.ListFields(in_Table,in_Field))>0 and len(in_Field) == 254:
arcpy.AddWarning(in_Field+" exists and is the correct length. Yay!")
elif len(arcpy.ListFields(in_Table,in_Field))>0 and len(in_Field) != 254:
arcpy.AddWarning(in_Field+" exists but is not the correct string length (254).")
else:
arcpy.AddField_management(in_Table, in_Field, "TEXT", "", "", 254, in_Field, "NON_NULLABLE", "REQUIRED", "")
arcpy.AddMessage ("Created the "+in_Field+" field.")
except arcpy.ExecuteError:
msgs = arcpy.GetMessages(2)
arcpy.AddError(msgs)
except:
tb = sys.exc_info()[2]
tbinfo = traceback.format_tb(tb)[0]
pymsg = "PYTHON ERRORS:\nTraceback info:\n" + tbinfo + "\nError Info:\n" + str(sys.exc_info()[1])
msgs = "ArcPy ERRORS:\n" + arcpy.GetMessages(2) + "\n"
arcpy.AddError(pymsg)
arcpy.AddError(msgs) If the field does not exist, it correctly creates it. However, if the field exists, regardless of if it's the correct length (254 or any other string length), it always defaults to the "elif" in the block and reports that the field is not the correct length. Feel like this is a simple syntax error but I've been at it for hours and not seeing it. Help?
... View more
03-13-2023
11:48 AM
|
0
|
0
|
1272
|
POST
|
For those that are wondering why ENH-000129687 [Enhancement] Provide the ability to use Group Managed Services Account while setting up Integrated Windows Authentication in Portal for ArcGIS in ArcGIS Enterprise. is classified as "Will Not Be Addressed" is: "This feature would require significant research and development" despite the significant workload customers have in maintaining and keeping secure a password-based service account for this purpose (or the significant amount of $ that GIS server license costs).
... View more
05-17-2022
12:19 PM
|
0
|
0
|
1477
|
IDEA
|
@DougMorgenthaler seems like this could be an easy one to move to "Partially Implemented" with " Some of the GNSS metadata fields currently available would be very easy to add, like "Receiver Name" (ESRIGNSS_RECEIVER)"
... View more
12-08-2021
05:13 AM
|
0
|
0
|
4705
|
IDEA
|
"It is currently possible to sort items in ArcCatalog and ArcGIS Pro Catalog view by clicking the column headers." and "Already Offered" is not correct. It is possible to sort SOME THINGS in Catalog View, but not everything we need to sort on, as brought up in Add Additional Details in Catalog View in ArcGIS P... - Esri Community Pro 2.8.1. Cannot sort (or view) date. Catalog 10.7.1 Can... Someone will point out that double-clicking on the date column will sort it ascending/descending anyways...you just can't see the date. No, it won't. It will change the order of the items, but it's not sorting on any date field. It would help me if someone could explain how this is already offered. Am I missing a setting in Options that needs to be turned on?
... View more
06-28-2021
07:24 AM
|
0
|
0
|
3497
|
IDEA
|
The current ArcGIS Server Patch Utility (C:\Program Files\ArcGIS\Server\tools\patchnotification) relies on Java. Even the most permissive security model blocks java. This makes ESRI one of the few (only?) vendor where sys admins have to go to a web site, find the patch, download it, and install it. So 2000's! Give us a patch manager that works!
... View more
06-24-2021
07:36 AM
|
2
|
2
|
1145
|
POST
|
So when I submitted this bug, it was specifically for that this feature was only available on lines and polygons, but not points, so we may be splitting hairs on the exact text of the bug and davids example.
... View more
03-22-2021
08:33 AM
|
0
|
0
|
4575
|
POST
|
Helps if the account running the query has the right permissions to see ALL items, not just public ones!
... View more
03-18-2021
10:21 AM
|
0
|
0
|
4296
|
POST
|
Very Very helpful, but for some reason, returning incorrect counts. For example, the script returns user a as having 3 "items", when in fact user a has 50 items. I wonder if its because most users with items have folders? And the code is not able to traverse folders?
... View more
03-18-2021
10:16 AM
|
0
|
0
|
4298
|
Title | Kudos | Posted |
---|---|---|
1 | 03-14-2019 06:24 AM | |
1 | 07-12-2018 09:29 AM | |
1 | 06-27-2019 12:08 PM | |
2 | 09-23-2019 11:03 AM | |
1 | 08-08-2019 07:02 AM |
Online Status |
Offline
|
Date Last Visited |
06-28-2024
02:40 AM
|