|
POST
|
Hey @XanderBakker ; for each layer I have a rule. I did it that way because each layer has a value for a different field in my site address points: Municipalities layer provides a city name for the point field CITY Zip code layer provides a numeric zipcode value for the point field ZipCode etc... For a 9-1-1 application there would be feature layers like PoliceBeat, FireZone, EMTZone etc... I don't know how to construct a single attribute rule for multiple attributes.
... View more
03-04-2021
02:35 PM
|
1
|
1
|
11263
|
|
POST
|
I'm not a big AGOL user so I really can't comment on your concerns. I'm sure it made sense to the team that designed and built it. You have to remember that AGOL is an extremely lightweight application compared to the other ArcGIS power houses, so there are trade offs. I did notice the refresh thing too; if you look at my screen captures they are two different sets of points....
... View more
03-04-2021
12:42 PM
|
1
|
0
|
7281
|
|
POST
|
The trick with getting values from underlying polygon features is those features have to reside in the same "datastore" as your points. The datastore is nothing more than than the database, be it FGDB or EGDB that holds your data. It's a limitation of Arcade. However, here is a rule that I apply to get underlying zip code onto a site address point: var zip = FeatureSetByName($datastore,"MSD.SLCOMSD.ZipcodesMSD",["ZIP_MOD_ID"], true)
var intersectLayer = Intersects(zip, Geometry($feature))
if (Count(intersectLayer) > 0) {
var layer = First(intersectLayer);
return layer.ZIP_MOD_ID;
} else {
return null;
} Here I'm extracting the value of the field ZIP_MOD_ID from the ZipcodesMSD layer in our SDE database. The if statement makes sure there is an intersecting layer to the point; @XanderBakker guided me through this one so all my intersecting rules check for that first.
... View more
03-04-2021
11:35 AM
|
6
|
9
|
11274
|
|
POST
|
@TINATHOMPSON check this blog. I don't work in 9-1-1 anymore but I still do addressing and I use the ESRI Address Data Management Solution. I augmented the solution with a couple of my own rules that grab underlying polygon data to populate address points. I really like the solution for addressing, but will be the first to tell you that the Arcade portion can be a challenge; but that's what this forum is for. Just ask @XanderBakker how many times he helped me out...
... View more
03-04-2021
10:11 AM
|
0
|
1
|
11282
|
|
POST
|
ArcGIS Online is a horse of a completely different color. It always helps to mention the platform you are using up front. That said, in AGOL as I understand it, numeric formatting is controlled in the pop-up settings, and you can create an expression there that can be used for labelling purposes. In the image below, I am labeling my address points with numeric ID. That is an integer field. Note the commas: In the three-dot 'More Options' menu in the feature layer table of contents, I select configure Pop-Ups and choose Configure Attributes. There I can turn off the commas in my numeric field: Uncheck and the labels look like this: If that field were floating or double, there would have been an option for decimal places. If you are going to concatenate fields for lables in AGOL can create a 'virtual' field using an Arcade Expression. I can't take the time right now to go into that, but take a look here to start.
... View more
03-04-2021
08:45 AM
|
1
|
2
|
7292
|
|
POST
|
I'm trying to display addresses as labels and the address comes in as 1,612 instead of 1612. I was looking for a way to calculate the field ... Are you calculating the value of a field in your database that concatenates various field values, or are you trying to create a label on a map? Are you using ArcMap or ArcGIS Pro? If you're using ArcMap, we'll have to get someone else involved, because I don't use it anymore; ArcGIS Pro only, and I know just the guy; @DavidPike are you seeing this? Fill in the blanks for us here, and we'll try to get you going.
... View more
03-03-2021
01:47 PM
|
0
|
1
|
7327
|
|
POST
|
In order to deploy address rules on a feature or table record, they must be assigned Global IDs. You accomplish this with Add Global IDs. Global IDs are generated and maintained behind the scenes by the geodatabase itself. So if you copy or otherwise move the records to another geodatabse, the global ids will change.
... View more
03-03-2021
09:51 AM
|
0
|
0
|
4091
|
|
POST
|
Interesting discussion: I'm not all that familiar with using time enabled data. Thanks @jcarlson for the insight.
... View more
03-03-2021
07:05 AM
|
0
|
0
|
5115
|
|
POST
|
I don't have ArcMap but I am seeing the exact same thing you are in AGOL and Pro. All 15,9937 records show <Null> Deaths and 0 Cases. Is the service based on a csv? Can you get a copy of the data in csv and see what you can display?
... View more
03-02-2021
01:29 PM
|
0
|
1
|
5150
|
|
POST
|
I used the simple data loader extensively and often wondered the same thing. It's no longer available in ArcGIS Pro which is all I use now. You might consider using the append tool and saving the execution to a python script.
... View more
03-02-2021
11:58 AM
|
1
|
0
|
2800
|
|
POST
|
F strings are new to python 3.x but the format() method is it's predecessor in 2.x python.
... View more
03-01-2021
11:55 AM
|
0
|
0
|
2988
|
|
POST
|
So we are not dealing with an actual global id field anymore? You mention that you want an attribute rule for each field. When do you want these rules to fire? Are you adding new features to this layer, or do you want to validate the existing values and update them? Depending what you are doing, I suggest you take a look at the online help that describes the difference between calculation and validation rules. You also mention a sequence. You can add a database sequence that starts at any value and increments by any value. Typically these are used when adding a new feature, but I think you could write a validation rule such that if that field is <null> or 0, return the next sequence value Is the cod_alfa always going to be 'PP' if so, I would simply calculate that field to equal 'PP'. If you are adding features and want 'PP' to be the default, I suggest you use a domain for that. I tinkered around a bit in the arcade ' playground ' and got the following code working: var values = [0, 'PP', 1234]
var combined_value = [];
for (var i in values) {
var value = values[i];
if (value == 0) {
value = "00000"
}
combined_value[Count(combined_value)] = value}
Console(Concatenate(combined_value, "")); The Console() function prints the value of the concatenated_value: Hopefully this helps a bit.
... View more
03-01-2021
09:31 AM
|
2
|
0
|
4123
|
|
POST
|
I've done a few joins in my career; spatial and tabular. I think I did my first in 1990 with ArcInfo, but thanks for the explanation on how they work none the less..
... View more
02-26-2021
02:29 PM
|
0
|
3
|
2193
|
| Title | Kudos | Posted |
|---|---|---|
| 1 | 10-11-2018 07:12 AM | |
| 1 | 05-17-2021 11:18 AM | |
| 1 | 06-29-2021 11:42 AM | |
| 1 | 07-05-2012 07:49 AM | |
| 1 | 09-03-2016 06:16 AM |
| Online Status |
Offline
|
| Date Last Visited |
05-19-2026
11:56 AM
|