|
POST
|
That is weird. Have you opened the tif in a photo viewer to ensure it is valid? Also, if you use the explore tool and click around the image (or the Image Information tool), is it reporting pixel values, or are they all the same? R_
... View more
06-06-2024
07:59 AM
|
0
|
0
|
1481
|
|
POST
|
In Map viewer symbology, click Expression: I used: var SD = DomainName($feature, "Status")
var FD = DomainName($feature, "Funding_Source")
return Concatenate(SD,'-',FD) Which, since I already had several of the combinations in the data, it automatically sets up those class values. Then, I added a new polygon "B-Y" since it wasn't already in the list, but it symbolizes by "Other". Then, select the three dots and Add Value: And enter the value(s) you want (here I add the missing "B-Y") And it now symbolizes by the newly added value instead of "Other". R_
... View more
06-05-2024
12:14 PM
|
0
|
0
|
2186
|
|
POST
|
Go to Styles, click the Expression button, use something like (updating it with all your fields): Round(Average([$feature.field1,$feature.field2,$feature.field2. $feature........]),0) Pick Types (unique symbols) for the style. Then, click the three dots next to Title and Add Value to add the values/symbols you want. R_
... View more
06-04-2024
08:36 AM
|
0
|
0
|
1495
|
|
POST
|
hard to tell with just that, but it appears as if you have the symbology set to display zero's as black. are you NoData values set to 0? Does any of this post here help? R_
... View more
06-03-2024
01:12 PM
|
0
|
0
|
1607
|
|
POST
|
Couldn't tell you why, but can confirm it. If I create a field as 'Double', it behaves as expected. Thought maybe you are using a File Geodatabase (or mobile) and according to this, precision/scale is not supported. However, testing in SDE environment produces the same result......... Also, noticed the number format in the fields view doesn't alter this anymore either. R_
... View more
06-03-2024
08:15 AM
|
0
|
1
|
1928
|
|
POST
|
I see that can also be modified by layer in the JSON of the map itself. R_
... View more
06-03-2024
08:09 AM
|
0
|
0
|
3099
|
|
POST
|
You can use the round function to control the decimal points on labels as shown here. Don't see it in the docs, but 'floor' works as well as round depending on which direction you want to go. R_
... View more
05-31-2024
04:28 PM
|
1
|
0
|
2001
|
|
POST
|
there are some issues with GetUser() in Field Maps app. Try this to see if it gets the username for you: var me = GetUser(FeatureSetByName($map,"staff_LUT")).username
var filtered = Filter(lut, `label2 = '${me}'`) Also, remember that if offline, a count (or any other operation) will only work on the features that are currently 'downloaded' into you offline area. Is it possible that the offline are you are testing is outside of the 184 points in the data? R_
... View more
05-31-2024
11:48 AM
|
0
|
0
|
1075
|
|
POST
|
I have used similar code for attribute rule posted here which finds the max number and increments its by one. Then this post shows how I have modified that expression to increment by 'domain' (in my code, I use ID field). This could give you idea(s) of one way to accomplish what you are after. Basically, just filter the FS to only include the selected 'domain' value, then find the Max and increment and concatenate the prefix to the new ID and return. You would just need to redo the where clause to filter for $feature.Domain name whereas my code has a static value (DYCL%). edit: to add another example here where this one uses the username to determine if it is passes the entire FS to the numarray or the filtered FS. R_
... View more
05-31-2024
08:44 AM
|
0
|
0
|
961
|
|
POST
|
Not sure about layouts, but You can use the arcpy.analysis.buffer function to create circular polygons using a point and radius. R_
... View more
05-30-2024
12:14 PM
|
0
|
0
|
1194
|
|
POST
|
I may be missing it also, but I don't see that option in Map Viewer. However, since you have Pro, you can navigate your portal in Catalog, Add and Open the web map, set the symbology offsets for the layer, then Save Web Map in Pro. This will update the existing map with the offsets. R_
... View more
05-30-2024
10:53 AM
|
1
|
2
|
3172
|
|
POST
|
Do you have any nightly scripts or updates to the data? If you look in the Offline tab of Field Maps Designer, does it show any messages there that might give you a hint? Above pic is example of HFS that was overwritten and sync not re-enabled, so disables offline capabilities. R_
... View more
05-30-2024
10:30 AM
|
0
|
1
|
1382
|
|
POST
|
I approached it a bit differently, but this seem to be working as you expect in both map viewer and Field Maps app. // Check if the edit type is 'INSERT'
if ($editcontext.editType == 'INSERT') {
// Access the FeatureSet of the relevant layer with required fields
var fs = FeatureSetByName($map, 'מדידת שריפה', ['FireEditStatus', 'FireGisID', 'created_user'], false);
// Get the current user's username from the FeatureSet
var username = GetUser(FeatureSetByName($map, 'מדידת שריפה')).username
var uservals = ''
if (!IsEmpty(fs)){ //make sure not empty dataset
if ($feature.FireEditStatus == 2){
var uservals = Filter(fs, `created_user = '${username}'`) // If Continuing Fire, filter data by username
}else{
var uservals = fs // else grab all data
}
var numarray = []
for (var n in uservals){
Push(numarray, n.fireGisID) // push all matching IDs to array
}
var newID = Max(numarray) // get the max ID number
if ($feature.FireEditStatus == 2){
return newID // If status = 2, return Max existing ID
}else{
return newID + 1 // otherwise, return max ID incremented by 1
}
}
} else {
return $feature.FireGisID; // For other edit types, return the existing FireGisID
} R_
... View more
05-30-2024
10:06 AM
|
0
|
1
|
2171
|
|
POST
|
Also, when returning a dict, there is no need to choose a field in the AR pane. However, there is a bug, and if you want to use this data in ArcGIS Server less than version 10.9, just populate the "Field" box. As you can see by the minimum version required. The ONLY difference between these two rules is that I picked the FacilityID field in one. However, it will still populate all the fields in the result dict. R_
... View more
05-29-2024
04:25 PM
|
0
|
0
|
2395
|
|
POST
|
To make it a bit easier to get a grasp of, I have modified the code to use a results dictionary without the interim dict. This should make it easier to follow: function get_fs(cls_name){
return Decode(cls_name,
"sdInlet",FeatureSetByName($datastore, "sdInlet", fields, true),
"sdOutlet",FeatureSetByName($datastore, "sdOutlet", fields, true),
"sdCleanOut",FeatureSetByName($datastore, "sdCleanOut", fields, true),
"sdManhole",FeatureSetByName($datastore, "sdManhole", fields, true),
"sdDischargePoint",FeatureSetByName($datastore, "sdDischargePoint", fields, true),
"sdFitting",FeatureSetByName($datastore, "sdFitting", fields, true),
"sdNetworkStructure",FeatureSetByName($datastore, "sdNetworkStructure", fields, true),
null)
}
function IsEmptyButBetter(data) {
if (IsEmpty(data)) return true;
for (var x in data) return false;
return true;
}
var fields = ['FacilityID']
var fclist = ['sdManhole','sdInlet','sdOutlet','sdCleanOut', 'sdFitting', 'sdDischargePoint', 'sdNetworkStructure'];
var line_shape = Geometry($feature)
var spRef = line_shape['spatialReference']
// Get the origin and end points of the line
var orig_x = line_shape['paths'][0][0].x
var orig_y = line_shape['paths'][0][0].y
var orig_point = Point({x: orig_x, y: orig_y, spatialReference: spRef})
var end_x = line_shape['paths'][-1][-1].x
var end_y = line_shape['paths'][-1][-1].y
var end_point = Point({x: end_x, y: end_y, spatialReference: spRef})
var umh = 'NA'
var dmh = 'NA'
for (var p in fclist){
var point_fs = get_fs(fclist[p]);
//find point intersecting origin
var origIntx = first(Intersects(orig_point, point_fs));
//find point intersecting end
var endIntx = first(Intersects(end_point, point_fs));
if (!IsEmptyButBetter(origIntx)) {
var umh = origIntx['FacilityID']
}
if (!IsEmptyButBetter(endIntx)) {
var dmh = endIntx['FacilityID']
}
}
return {
"result": {
"attributes": {
"UpMH": umh,
"DownMH": dmh,
"FACILITYID": umh + "-" + dmh
}
}
} UpMH, DownMH, and FACILITYID are the column names in the main line FC. R_
... View more
05-29-2024
04:08 PM
|
1
|
1
|
6184
|
| Title | Kudos | Posted |
|---|---|---|
| 1 | 05-14-2026 04:00 PM | |
| 1 | 09-14-2022 07:53 AM | |
| 1 | 09-14-2022 08:23 AM | |
| 1 | 05-21-2026 08:53 AM | |
| 1 | 05-14-2026 04:28 PM |
| Online Status |
Online
|
| Date Last Visited |
yesterday
|