|
POST
|
Randy...that would be amazing if it's not too much trouble for you!!! Thank you so much!!!
... View more
10-22-2020
10:00 AM
|
0
|
0
|
3320
|
|
POST
|
Hi Xander, Thanks for replying. Too bad. I was hoping to eliminate a little database work. Since it's a one to many relationship I'll not only need to add additional fields but create stacked polygons for the additional data. Doh...oh well...could be worse. I could be completely without this marvelous Randy Burton code! Thanks again, Xander. Jeff
... View more
10-22-2020
09:50 AM
|
0
|
2
|
3320
|
|
POST
|
Hello, Randy Burton was kind enough to assist me by providing some wonderful Python code for creating labels using data from related tables specific for use in ArcGIS Desktop. I am hoping to take this a step further and provide my AGO users with same great labeling. Randy suggested I post this question within the confines of AGO with the hope of obtaining some wise advice and direction. Can someone please assist me in this venture? Thank you. Jeff
... View more
10-22-2020
09:17 AM
|
2
|
5
|
5187
|
|
POST
|
Okay. Thought I would check. I will ask that exact question on the AGO forum. Thank you so much again for your time and effort on this Randy! Jeff
... View more
10-22-2020
09:11 AM
|
0
|
4
|
3299
|
|
POST
|
First of all...the code works beautifully!! The display is exactly what I was looking for. Thank you so much, Randy for taking the time and assisting me. I really appreciate it! Second...as a follow-up question...should there be any issues with the labels coming up in AGO? Since the labels look so great I decided to explore creating a custom application for my internal clients. Unfortunately, when I publish using the same Desktop project file that shows the labels perfectly, no labels appear within the application window. I realize this is not an AGO forum, but have you run into any issues with labels disappearing in AGO when using this label workflow?
... View more
10-22-2020
04:17 AM
|
0
|
0
|
5160
|
|
POST
|
That is correct...DBOPlotOccJoin is the file geodatabase table and BSACemeteriesCopy is the feature layer being used for symbolizing. I've attached a screen capture depicting both of these tables with the UserField4 and the GIS_ID fields present. You can see the "many" in the DBOPlotOccJoin to the "one" in BSACemeteriesCopy in the capture.
... View more
10-21-2020
03:11 AM
|
0
|
0
|
5160
|
|
POST
|
Thank you Randy for responding to my post. I really appreciate your time. Yes. That is correct. The origin table is based on a join between two tables; one representing Plots while the other is Occupants. The field names both before and after the join have remained consistent and yes, UserField4 and GIS_ID have matching values. I am using Desktop.
... View more
10-19-2020
03:50 AM
|
0
|
0
|
5160
|
|
POST
|
Hello, I've tried to utilize the code I found posted by Richard Fairhurst that allows you to create labels based on data contained within a related table to no avail. I keep getting the veritable "No features found. Could not verify expression". Everyone's favorite error message. BTW...a big shout out to Richard for posting this code and doing all he can to help others with this quest. I am attempting to add the information contained under the Table field "Name" to individual polygons. Any insight on what I am doing wrong would be most appreciated. Thank you. Jeff Here is the logistics of my relationship class setup: Origin Table: DBOPlotOccJoin Primary Key: UserField4 Foreign Key: GIS_ID Destination Table: BSACemeteriesCopy Table Label Field: Name Here is Richard's python code that I have augmented: # Initialize a global dictionary for a related feature class/table relateDict = {} def FindLabel ( [UserField4] 😞 # declare the dictionary global so it can be built once and used for all labels global relateDict # only populate the dictionary if it has no keys if len(relateDict) == 0: # Provide the path and table name to the relate feature class/table relateFC = r"R:\Jeff\City_Projects\Cemetery\CemeteryMgmt.gdb\DBOPlotOccJoin" # create a field list with the relate field first (POLYID), # followed by sort field(s) (SCHOOLID), then label field(s) (CROSS_STREET) relateFieldsList = ["GIS_ID", "Name"] # process a da search cursor to transfer the data to the dictionary with arcpy.da.SearchCursor(relateFC, relateFieldsList) as relateRows: for relateRow in relateRows: # store the key value in a variable so the relate value # is only read from the row once, improving speed relateKey = relateRow[0] # if the relate key of the current row isn't found # create the key and make it's value a list of a list of field values if not relateKey in relateDict: # [searchRow[1:]] is a list containing # a list of the field values after the key. relateDict[relateKey] = [relateRow[1:]] else: # if the relate key is already in the dictionary # append the next list of field values to the # existing list associated with the key relateDict[relateKey].append(relateRow[1:]) # delete the cursor, and row to make sure all locks release del relateRows, relateRow # store the current label feature's relate key field value # so that it is only read once, improving speed labelKey = [UserField4] # start building a label expression. # My label has a bold key value header in a larger font expression = '<FNT name="Arial" size="12"><BOL>{}</BOL></FNT>'.format(labelKey) # determine if the label key is in the dictionary if labelKey in relateDict: # sort the list of the list of fields sortedList = sorted(relateDict[labelKey]) # add a record count to the label header in bold regular font expression += '\n<FNT name="Arial" size="10"><BOL>School Count = {}</BOL></FNT>'.format(len(sortedList)) # process the sorted list for fieldValues in sortedList: # append related data to the label expression expression += '\n{0} - {1} - {2} - {3}'.format(fieldValues[0], fieldValues[1], fieldValues[2], fieldValues[3]) # clean up the list variables after completing the for loop del sortedList, fieldValues else: expression += '\n<FNT name="Arial" size="10"><BOL>School Count = 0</BOL></FNT>' # return the label expression to display return expression
... View more
10-13-2020
10:54 AM
|
0
|
39
|
15630
|
|
POST
|
This will definitely help. Thank you, Megan! Although our cemetery is nowhere near as elaborate as Arlington the same search and query methods are completely adaptable to our little corner of the world. This information will provide me with ideas from which to expand upon. Thanks for the assist. Have a great day! Jeff
... View more
09-29-2020
11:30 AM
|
0
|
0
|
1690
|
|
POST
|
Thank you, Will! I appreciate you investigating on my behalf and providing some very interesting links. There doesn't seem to be a lot out there. The ArcGIS Web Application link appears to employ Operations Dashboard which could be quite useful. You have provided me some nice stepping stones. Much appreciated. Have a great day! Jeff
... View more
09-29-2020
11:25 AM
|
0
|
0
|
1690
|
|
POST
|
Hello, Has anyone used ArcGIS Online in support of Cemetery Management? I am hoping to obtain some advice from the GeoNet community on the appropriate workflow that some may have taken in pursuit of this venture. Any links, documentation, applicable widgets or general guidance would be most appreciated. Thank you. Jeff
... View more
09-28-2020
08:51 AM
|
0
|
4
|
1800
|
|
POST
|
Hi Kaitlyn, Very embarrassing. Yes...that was it. We needed the location services turned on for this instance. Thank you. Jeff
... View more
06-08-2020
08:24 AM
|
0
|
0
|
5357
|
|
POST
|
Hello, We have had great success with using Survey123 on our Android devices. However, we have not had the same result when switching to our Surface pads. The download from ESRI resources goes smoothly but upon trying to open our form we receive and error box that says "Unable to connect--Position source closed error". Our Surface pads are running Windows 10 Intel i7 64 bit OS and we downloaded the x64 Windows version from ESRI resources. Can someone please offer some guidance regarding this issue? Thank you. Jeff
... View more
06-04-2020
03:46 AM
|
1
|
2
|
5668
|
| Title | Kudos | Posted |
|---|---|---|
| 2 | 10-22-2020 09:17 AM | |
| 1 | 06-04-2020 03:46 AM | |
| 1 | 02-25-2020 10:16 AM | |
| 1 | 12-31-2019 03:49 AM | |
| 1 | 01-17-2019 07:30 AM |
| Online Status |
Offline
|
| Date Last Visited |
10-02-2023
08:46 AM
|