POST
|
Thanks for the answer, @XanderBakker! I apologize for my delayed "thanks"--I didn't see it until yesterday (4/3/2024) when I came across this post while searching for a solution to the same problem I apparently had 4 years ago, hahaha. Once I started fiddling around with things this time, the vague and fuzzy memories of "why is this only working on two sites out of 140ish" came back and I had the eureka moment (again) of realizing that the report that is extracted from the mainframe adds a bunch of spaces/tabs to some of the fields (e.g. "Sitename " vs. "Sitename"). Back in 2020, I fixed the issue in Excel prior to pulling the sheet in as a table. Since I'm pulling the sites from a database this time, the dirty fields are still dirty and mucking up my day. The final "fix" for my problem was: (dropping it here for when I run into this issue again in 2028, haha) var txt = Trim($feature.OFC_NM); return Left(txt,Count(txt)-2);
... View more
04-04-2024
06:03 AM
|
0
|
0
|
4117
|
POST
|
I'm having the same issue! I found this thread when googling and Jakub Sisak's post inspired me to look at my layout. I am on a brand new laptop (Intel i5 1.9Ghz, 16Gb RAM, Discrete GPU with 8Gb RAM) and I am in the middle of "fixing" (e.g. remaking) all of my maps now that I have a little more knowledge of what I'm doing. The map I'm working on now is very, very rudimentary compared to what a lot of y'all do. Light Grey basemap, an office point layer with about 5,000 rows (but definition queried down to 139), and three polygon layers. My entire project file is only like 46Mb. While making the map yesterday, everything was working fantastically. Then once I created and started working on the layout this morning, that's when stuff started crawling. CPU was hitting 80% and GPU hitting 98% (100% of that in 3D, even though nothing in my ArcGIS map is 3D.) As with the map, there's not a lot going on in the layout either. I just ran a test to see if I could duplicate the issue and things seemed to be running without an issue, even after I reopened the layout and did some tweaks to the legend. Here's a screenshot of my map so you can see the context. This shouldn't tax desktop in the least. But as soon as I edited the font size of the title, my laptop spun up like it was a jet taking off, haha. 70+% CPU and 99% GPU usage. As long as that ONE SINGLE TITLE element was selected and active, my CPU and GPU were getting hammered. Once I clicked off the title, back on to "whitespace", everything went back to pre "rocketship to the moon" levels, haha.
... View more
08-29-2020
06:40 AM
|
3
|
8
|
2680
|
POST
|
Thanks for the reply, Joe. Unfortunately those functions don't do what I need to be done, at least not as they are written/documented in the help file. I actually played around with that prior to my post (should've mentioned that in my original post.) Although using the Left function would give me the characters to the left of the string, which is what I need, there is no consistent length to the office names. Python deals with this type of situation by allowing you to use negative numbers so using something like L = "New Orleans, LA"
L[:-3] gives you "New Orleans" when the string in the field is "New Orleans, LA". I tried using the same logic with Arcade Right('New Orleans, LA', -3) But that does not work and the labels don't actually render.
... View more
08-29-2020
06:11 AM
|
0
|
4
|
13241
|
POST
|
I finally have a new laptop and it's about to be a new fiscal year, so I am starting off my new GIS project with a clean slate--as in I'm kicking all my kludged together maps and bloated geodatabase with dozens and dozens of orphaned items to the curb. I have been putting off using Arcade, but since I also plan on publishing more content to our portal, I want to start using it to make life easier for those online maps. My current dilemma is that I can't figure out how to manipulate a label string the way I need to. I have a field (Office Name) that includes the City and State. To make labelling easier, I want to remove the last three characters in that field, which is a space and then the two character state abbreviation. With Python, I can do it thusly: def FindLabel ( [OFC_NM] ):
L = [OFC_NM]
L = L.title()
L = L[:-3]
return L How the heck do I this (properly) with Arcade? arcade formatting arcade language string.format
... View more
08-28-2020
08:33 AM
|
0
|
6
|
13303
|
POST
|
Thanks for reaching out, Kory. I can't DM you--it says we have to be friends or you follow me. Hopefully this will be enough to foil any spambots, haha--my email is my first name (dot) my last name, at ssa.gov. Looks like my client is now seeing the 2.3.1 patch, so I'll snag that and see if that helps.
... View more
02-27-2019
11:36 AM
|
0
|
1
|
916
|
POST
|
I wish I would've seen this thread before update to 2.3 earlier this week. I've had random crashes all morning long, while doing basic things like adding layers from Portal and changing window focus from one map to another. So frustrating! I've started saving my project after I do ANY change, so I'm not stuck recreating work again. I wish I would've been smart enough to start doing that a few hours ago, haha. I have been submitting the file dumps via the reporting tool when it happens, btw.
... View more
02-27-2019
10:15 AM
|
0
|
3
|
916
|
POST
|
I figured out my problem--I somehow missed a line that imported the geometry module. Did you ever figure out your issue? I've noticed that I run into strange glitches when running these through Jupyter Notebooks that clear if I either restart my session or recreate them in a "fresh" notebook. Maybe your issue with the missing filter attribute is one of those?
... View more
07-27-2018
06:45 AM
|
0
|
0
|
442
|
POST
|
I'm running into a somewhat similar issue. My error is actually: (edited to include image--the pasted code formatting was messed up once I submitted the comment.)
... View more
07-26-2018
02:07 PM
|
0
|
1
|
442
|
Title | Kudos | Posted |
---|---|---|
3 | 08-29-2020 06:40 AM |
Online Status |
Offline
|
Date Last Visited |
04-04-2024
10:49 AM
|