|
POST
|
Hi @DonovanC , Can you share a screenshot of how you configured the calculation attribute rule?
... View more
11-18-2020
05:24 AM
|
0
|
6
|
8073
|
|
POST
|
Hi @KhemAryal , I think this is a duplicate post. See earlier post here: https://community.esri.com/t5/developers-questions/arcade-expression-for-date-ranges/m-p/1001275
... View more
11-17-2020
05:54 AM
|
0
|
0
|
1476
|
|
POST
|
Hi @Anonymous User , In addition to what @JoshuaBixby mentioned, it also seems to apply to the content that was migrated that seems to have lost the language the code was formatted with.
... View more
11-17-2020
05:50 AM
|
0
|
0
|
1790
|
|
POST
|
Hi @MikeMacRae , In addition to what @DanPatterson and @jcarlson have stated, Arcade will work with the geometry based on the detail of the geometry in the current viewscale. "Note that geometries fetched from feature services, especially polylines and polygons, are generalized according to the view's scale resolution. Be aware that using a feature's geometry (i.e. $feature) as input to any geometry function will yield results only as precise as the view scale. Therefore, results returned from geometry operations in the visualization and labeling profiles may be different at each scale level. Use these functions at your discretion within these contexts." Source: https://developers.arcgis.com/arcade/function-reference/geometry_functions/
... View more
11-17-2020
05:45 AM
|
3
|
0
|
8936
|
|
POST
|
Hi @ShahriarRahman , The first thing I see, is the outer loop where you loop through each map in your project (how many do you have) and for each map take the same active map. I keep thinking that the cleanest solution would be to use an attribute rule that is triggered when a new feature is inserted and copies it to the other featureclass. However, you should also take care of any deletes and updates so that these changes are reflected in the other featureclass.
... View more
11-17-2020
05:35 AM
|
0
|
0
|
1592
|
|
POST
|
Hi @MikeMacRae , So, you can create an extent from a different layer, but this would take a loop through each of the geometries and use the union to create a single geometry and get the extent of that geometry. However, this will give you an extent and that does not tell much when you clip another geometry with this, since the extent is just a rectangle. To get the amount of overlap between two layers you would have to use individual geometries of one layer and intersect those to get the selection of overlapping geometries from the other layer and user the Intersection function to create a new geometry of the overlap and read out the area. This is all possible to do in the pop-up, but depending the number of features and complexity, this might have a large impact on performance. Clip may not be the best function to start to learn Arcade since its functionality is different from a Clip you might do in ArcGIS Pro.
... View more
11-17-2020
05:25 AM
|
0
|
0
|
3196
|
|
POST
|
Hi @MikeMacRae , The error you are getting is caused by the fact that you are trying to get the extent of a featureset, when you can only do this using a json with the definition of the extent or a single feature. To use the clip function you indeed need and extent, but you can't clip a layer with another and you can only clip a feature with an extent. It sounds a lot like you are looking for the intersects function, but this will create a featureset based on the overlap between a single feature and a featureset and will include all features that (partially) overlap with the input feature. I mentioned that the result will be a featureset. What is your plan with that featureset? And where are you applying the expression, in the pop-up?
... View more
11-13-2020
01:37 PM
|
0
|
2
|
3223
|
|
POST
|
Hi @PaulSweeney3 , I guess the easiest way to clear up some doubts would be to have access to the data and track down the error. Is this a possibility? I possible create a group and share the web map and layers to that group and invite me to that group using my AGOL user "xbakker.spx".
... View more
11-13-2020
01:16 PM
|
0
|
0
|
4940
|
|
POST
|
Hi @DuncanHornby and @Alber_Verster A field calculation is something different from an Calculation Attribute Rule. It is definitely possible to update a geometry using a Calculation Attribute Rule as described here: https://pro.arcgis.com/en/pro-app/help/data/geodatabases/overview/attribute-rule-script-expression.htm#anchor5
... View more
11-12-2020
11:31 AM
|
0
|
1
|
6078
|
|
POST
|
Thanks @ThomasEdghill and @MichelleMathias for explaining why this is happening. 👍
... View more
11-12-2020
08:16 AM
|
1
|
0
|
2358
|
|
POST
|
Hi @Alber_Verster , Can you elaborate a little more on the idea of using this in an attribute rule? An attribute will be triggered by a defined event. Does this event take place in the featureclass where you want to update the geometry or does this take place inside a different featureclass? If the latter is true it will require a whole different expression. Some examples can be found here: https://pro.arcgis.com/en/pro-app/help/data/geodatabases/overview/attribute-rule-script-expression.htm#anchor4
... View more
11-12-2020
06:38 AM
|
1
|
0
|
6095
|
|
POST
|
Hi @KristalWalsh , Can you explain a little more how the App should auto-populate the geometry? Should it use the current location or is there some logic that needs to be applied? Or are you referring to automatically filling fields with the coordinates from the geometry? I would also like to recommend you to have a look at the new ArcGIS Field Maps application that should have better support for Arcade.
... View more
11-12-2020
06:29 AM
|
1
|
0
|
1880
|
|
POST
|
I just noticed that there might be an issue with the existing content that was migrated to the new platform. Have a look at the migrated question posted here: https://community.esri.com/t5/arcgis-online-questions/auto-populate-fields-for-synced-hosted-feature-layers/m-p/200494 which contains a link to an idea: https://community.esri.com/ideas/10796-calculate-geometry-in-agol-to-find-the-area-or-length-of-a-polygon-or-line . When I click on the link it shows the following error: Is this an existing issue? I did not see it in the known issues. CC @Anonymous User
... View more
11-12-2020
06:19 AM
|
0
|
3
|
2395
|
|
DOC
|
Hi @Anonymous User , I noticed that the link "Community Feedback" at the top of this document is still pointing to the staging environment. 😕
... View more
11-12-2020
06:04 AM
|
0
|
0
|
22835
|
|
POST
|
Hi kbm_admin , Sure. Can you try this? var township = FeatureSetByName($datastore, "GDB.SIGWRITER.FV_TRONC_L", ["NOM_VOIE"], True);
var intersectLayer = Intersects(township, $feature);
var cnt = Count(intersectLayer);
if (cnt > 0) {
var feat = First(intersectLayer);
var nomvoie = feat["NOM_VOIE"];
if (IsEmpty(nomvoie)) {
return "no NOM VOIE"; // or perhaps return null
} else {
var words = Split(nomvoie, " ");
Console(words);
var cnt2 = Count(words);
var lastword = words[cnt2-1];
var add = "";
Console(Find("'", lastword));
if (Find("'", lastword) > -1) {
var arr = Split(lastword, "'");
add = " " + arr[0] + "'";
lastword = arr[1];
}
if (cnt2 > 1) {
var otherwords = [];
for (var i = 0; i < cnt2-1; i++) {
otherwords[Count(otherwords)] = words[i];
}
return lastword + " (" + Concatenate(otherwords, " ") + add + ")";
} else {
return lastword;
}
}
} else {
return "No township found"; // or perhaps return null
}
... View more
11-10-2020
10:19 AM
|
0
|
1
|
5113
|
| Title | Kudos | Posted |
|---|---|---|
| 1 | 01-09-2020 09:26 AM | |
| 6 | 12-20-2019 08:41 AM | |
| 1 | 01-21-2020 07:21 AM | |
| 2 | 01-30-2020 12:46 PM | |
| 1 | 05-30-2019 08:24 AM |
| Online Status |
Online
|
| Date Last Visited |
2 hours ago
|