|
DOC
|
Hi Michael Layne , Good question. As far as I know, the Attribute Calculation Rule profiel only has support for $datastore, which makes me believe that it is not possible if the information is not in the same datastore. Maybe in the feature support for other data sources will be added so that this will be possible. For now, if possible, it might be good to include the other layer in the same datastore to be able to use Attribute Rules and Arcade or schedule a task (python script) to update the information at a certain frequency.
... View more
09-03-2020
07:38 AM
|
0
|
0
|
20202
|
|
POST
|
Hi Joe Borgione , See my initial comment and always include a check to see if you have something before you try to access the properties of nothing. Also, I have noticed in the past that Arcade does not always like you at access attributes using $feature.field_name, when the field name has un underscore in the name. Please use $feature["field_name"] instead.
... View more
09-02-2020
05:16 PM
|
0
|
0
|
9380
|
|
POST
|
Hi twoodfield_DawoodGIS , You could probably do something like this: var value = $feature.Station;
if (IsEmpty(value)) {
return "";
} else {
if (Count(Text(value))<3) {
return Left(Text(value, "000"), Count(Text(value, "000"))-2) + "+" + Right(Text(value, "000"), 2);
} else {
return Left(Text(value), Count(Text(value))-2) + "+" + Right(Text(value), 2);
}
}
... View more
09-02-2020
05:11 PM
|
1
|
2
|
8142
|
|
POST
|
Hi Adam Bourque , So, if I understand this correctly, the initial expression does create the correct URL including the correct coordinates, but Survey123 rejects those and uses the GPS location. Is that the case?
... View more
09-02-2020
01:56 PM
|
0
|
1
|
3437
|
|
POST
|
Hi Adam Bourque , I would probably suggest a couple of things to see where things fail. Is there a url created or does it just fail.Is there a way to see what the complete url is at this moment? The expression currently is returning the part of the url including "¢er". What happens when you take that part out and hardcode that on the URL after {FACILITYID}? What if you simple return the coordinates (before transforming them from Web Mercator into WGS1984), like this: return Geometry($feature).Y + "," + Geometry($feature).X Does it generate a URL at all? What if you return some dummy WGS1984 coordinates. Does that work? The idea is to validate where this is going wrong. Another option would be to explore ArcGIS Field Maps, which is currently in beta but is supposed to have better support for Arcade.
... View more
09-02-2020
06:19 AM
|
0
|
3
|
3437
|
|
POST
|
Hi jborgion , The fact that something stopped working could be due to change in Arcade (which I highly doubt) or change in the data. Can you test the expression in a pop-up to see what is returned? I would change a couple of things: You don't need to retrieve the geometry, even if you are going to use the featureset in an intersect afterwards (line one "true" changed to "false") I included two Console statements on line 2 and 5 (but I'm not sure if you can see the result in Pro) When you are going to access the first of something, always be sure there is something. I use a count on line 5 and 6 to validate that Also define what to do when you don't find an intersecting feature var township = FeatureSetByName($datastore, "MunicipalitiesMSD", ["NAME"], false);
Console("cnt township: " + Count(township));
var intersectLayer = Intersects(township, $feature);
var cnt = Count(intersectLayer);
Console("cnt intersectLayer: " + cnt);
if (cnt > 0) {
var feat = First(intersectLayer);
return feat.NAME;
} else {
// what do you want to do if no intersecting feature was found?
}
However, none of these recommendations explains why a something that worked before suddenly does not work. It might be good to call support for this one.
... View more
09-02-2020
06:08 AM
|
3
|
1
|
9380
|
|
POST
|
Hi Chris Lope Have a look at this expression based on the suggestion by jborgion var txt = 'New Orleans, LA';
return Left(txt, Count(txt)-4); This will return "New Orleans" (without the comma since it took off 4 characters)
... View more
08-31-2020
01:33 PM
|
10
|
3
|
22863
|
|
DOC
|
Hi Nathan Fazer , I did some tests and providing an empty string in the FeatureSetByRelationshipName did not work for me. I don't think it is the correct way of using the function.
... View more
08-28-2020
08:00 AM
|
0
|
0
|
20202
|
|
POST
|
Hi jussi.lehtonenesri-fi-esridist , Have a look at this Arcade example taking as input a static string, but it should work point it to the tag field: var tag = '"osm_uid"=>"38239", "building"=>"terrace", "osm_user"=>"Daeron", "way_area"=>"1.26619e-07", "addr:street"=>"Kantakyläntie", "osm_version"=>"4", "osm_changeset"=>"13506017", "osm_timestamp"=>"2012-10-15T13:31:04Z", "addr:housenumber"=>"13-15","someotherdata"=>"oops"';
var index1 = Find("addr:housenumber", tag);
if (index1 > -1) {
var index2 = Find("=>", tag, index1);
var index3 = Find(",", tag, index2);
if (index3 == -1) {
// last data in string
var housenumber = Right(tag, Count(tag)-index2-2);
var housenumber = Replace(housenumber, '"', '');
return housenumber;
} else {
// there is data after the housenumber
var housenumber = Mid(tag, index2+2, index3-index2-2);
var housenumber = Replace(housenumber, '"', '');
return housenumber;
}
} else {
return "";
}
... View more
08-28-2020
07:50 AM
|
1
|
1
|
2293
|
|
DOC
|
Hi Nathan Fazer , I think they managed to not only the confuse you but me as well. The second parameter is not optional, and providing an empty string is not documented in the help. Maybe if you have a single relationshipclass, providing an empty string just takes the first one available and everything works, but I see no documentation to aid that assumption. Let me run some tests and get back to you.
... View more
08-28-2020
06:49 AM
|
0
|
0
|
20201
|
|
DOC
|
Hi Paul Sweeney , I am not really aware of what limitations there are when using Arcade in the dynamic text. Maybe you could use other functions like Portal and FeatureSetByPortalItem to get access to the data you need. You can also pre-calculate the data in a new field and use that static information in the map series. Regarding your comment on using the pop-up in the map series... a pop-up will only be present when you click on a feature. You could use labeling, but Arcade functions in this profile are very limited.
... View more
08-28-2020
06:33 AM
|
0
|
0
|
20201
|
|
DOC
|
Hi Paul Sweeney , Where do you want to calculate the count? Is that in a Field Calculation? Are the polygon and point layer part of the same feature service (are they in the same $datastore)? I haven't worked with Arcade in combination with map series, so I don't have a straight answer for you.
... View more
08-27-2020
01:42 PM
|
0
|
0
|
20201
|
|
POST
|
Hola Victor Sebastian Perez Castellar , En la página de los requerimientos de ArcGIS Pro, puedes encontrar las especificaciones mínimas pero más importante las recomendados para correr ArcGIS Pro: ArcGIS Pro 2.6 system requirements—ArcGIS Pro | Documentation Más importante es que vas a encontrar un enlace en la parte arriba al sitio: Can You Run It? Después de bajar un ejecutable detection.exe el sistema va correr un análisis para revisar tu sistema. En mi caso con mi portátil personal, me sacó este resultado. Cumplo con los requerimiento mínimos para correr ArcGIS Pro, pero no alcance lo recomendado: Más abajo en la página vas a ver cuales recomendaciones te dan. En mi caso es la tarjeta gráfica que no cumple. Recuerde que ArcGIS Pro depende mucho de la tarjeta gráfica para la visualización. Yo he visto demoras en el despliegue usando información 3D, rasters multidimensionales y los nuevos voxellayers que dependen mucho de la memoria RAM de la tarjeta gráfica.Mi equipo todavía es acceptable debido al disco de estado sólido.
... View more
08-26-2020
06:32 AM
|
0
|
0
|
2377
|
|
DOC
|
Hi nfazer_midlandcounty , If Esri support provides a solution please share it here so that other user may benefit from it too.
... View more
08-26-2020
06:18 AM
|
0
|
0
|
20201
|
|
POST
|
Hi David Treering , I'm glad you could make it work, but it remains strange that without the coordinates it is not working for you. What version of Enterprise are you using?
... View more
08-26-2020
06:17 AM
|
0
|
1
|
1712
|
| 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 |
Offline
|
| Date Last Visited |
2 weeks ago
|