|
POST
|
Hi [email protected] , Just did a test on a table and it still works. Is the data a hosted feature layer and table in ArcGIS Online? If so, could you share this data with me? You can create a group, share the data inside that group and invite me using my AGOL account "xbakker.spx".
... View more
08-11-2020
09:17 AM
|
0
|
3
|
3226
|
|
POST
|
Hi leon oestergaard , Thanks for clarifying. The layer I used is not a table. I will test against a table and post back the result.
... View more
08-11-2020
09:12 AM
|
0
|
4
|
3226
|
|
POST
|
Hi [email protected] , Remember to vote your own idea up. I just voted.
... View more
08-11-2020
09:11 AM
|
1
|
0
|
4789
|
|
POST
|
Hi Joe Nunn , I agree that being able to do analysis in Arcade using raster layers would be pretty cool and being able to do REST calls from Arcade will also help a lot to accomplish certain workflows. Could you create an idea for this: https://community.esri.com/community/arcgis-ideas (please post back when you do). I would certainly give my vote to this!
... View more
08-11-2020
08:36 AM
|
1
|
2
|
4789
|
|
POST
|
Hi Erica Price David is correct. This is an error in the lesson: For Arcade you should use: $feature["Count"] * 30 * 30
// or
$feature.Count * 30 * 30 You can also change it to Python and use the formula mentioned in the lesson: !Count! * 30 * 30
... View more
08-11-2020
07:21 AM
|
1
|
0
|
3126
|
|
POST
|
Hi Lindsey Whittington , It is not entirely clear what you are trying to achieve and to avoid jumping to conclusions can you clarify: When you talk about a series of maps are that indeed maps or are you referring to a series of layers that contain the actual data? When you mention "merging a new variable" are you trying to add an attribute to the layer(s)? You mention "Append Data" using an unique key. Append will add additional rows/features to the data, but not attributes (fields/columns). This you could do using Join. When you mention "var list" do you mean the list of fields? You mention "Using Arcade". Are you trying to create dynamic content obtaining additional information from other layers using Arcade?
... View more
08-11-2020
07:05 AM
|
0
|
22
|
2730
|
|
POST
|
Hi leon oestergaard , There is something strange going on in your case. I just used your code in the playground (ArcGIS Arcade | ArcGIS for Developers ) using one of the available layers and it works just fine:
... View more
08-11-2020
06:59 AM
|
1
|
0
|
3226
|
|
POST
|
Hi [email protected] , Unfortunately, terrain layer, imagery layer, tiled layers are all not supported at this time. You can use content from the living atlas, but they will have to be feature layers.
... View more
08-11-2020
06:25 AM
|
1
|
0
|
4789
|
|
POST
|
Hi Matt Creaney , As far as I have seen you only shared a map with me and the layers. The map has two point feature layers: Product database Vehicle locations And the map also has a list of tables. When I click on a feature of the product database not all tables are presented and related tables. Especially the table Product Commission ITP does not appear as related table in the map (no sure of this is because the list is too long). In order to see how you workflow works, I would need access to the App that you showed. I still believe that it might be more effective to use the Arcade expression to extract all the necessary information and present it in the pop-up, although this depend how the application is configured.
... View more
08-10-2020
03:57 PM
|
0
|
5
|
2245
|
|
POST
|
Hi T L , When you have a feature with a field called array (probably a text field) and you edit the field to type in ["2", "2"], it will not be an array. As Joshua Bixby asked, if you would put the text "2,2" (without the quotes) in a field, you could use the Split function to split the text up and create the array: When you click on a "2" in the result, you will see that each element is in fact a string:
... View more
08-10-2020
03:43 PM
|
2
|
0
|
3381
|
|
POST
|
Hi Joe Nunn , As far as I know this is not possible yet. I have heard that performing a REST call will be possible in the feature. With this you will be able to request the elevation for any point. To give you an example of how I assume this will look, see below a URL to query the NED30m global elevation service: https://elevation.arcgis.com/arcgis/rest/services/NED30m/ImageServer/identify?geometry=%7B%22x%22+%3A+-118.15%2C+%22y%22+%3A+33.80%2C+%22spatialReference%22+%3A+%7B%22wkid%22+%3A+4326%7D%7D&geometryType=esriGeometryPoint&mosaicRule=&renderingRule=&pixelSize=&time=&returnGeometry=false&returnCatalogItems=false&f=json If you look at the page using the HTML format (change last parameter of URL), you will see this: The resulting json can be used to unpack the value you are interested in (in this case the value "17.2376")
... View more
08-10-2020
12:09 PM
|
0
|
2
|
4789
|
|
POST
|
Hi Matt Creaney , Since the Product Commission ITP "layer" is a table, it does not have a pop-up. So it can't start there. I assume you start at the Production Database point feature layer. From your last code I deduce the following: You read the creation date of the Production Database point feature the user clicks on You get the related bay from the bay table Based on the first related bay, you access the Production Database point feature layer again and get the first "asset" You buffer the asset geometry and look for vehicle stops in the buffer You return information of the vehicle stop when the date of visit is equal to the data of commission. The part that I can't wrap my head around is why you would want to start with an asset (Production Database point feature) and use the bays to get back to a Production Database point feature (asset)?
... View more
08-10-2020
06:52 AM
|
0
|
0
|
2244
|
|
POST
|
Hi Matt Creaney , In that case, it does not make sense to start with the assets and find the bays and use the first bay to find the assets. Or does it? Have a look at the code below and an example result to see if it comes anywhere near what you are looking for. Using the following expression: var Buffer_Distance = 100;
var dateFormat = "MM/DD/Y";
var result = "";
//Get Date of Commission
var DateOfCommission = Text($feature.CreationDate, dateFormat);
Console(DateOfCommission);
var Asset_buffer = Buffer($feature, Buffer_Distance, 'meters');
Console("Asset Area is " + Area(Asset_buffer, "square-meters"));
// Find Vehicles that intersect Asset Buffer
var VehicleIntersecting = Intersects(FeatureSetById($map, /* Vehicle Locations */ "Vehicle_Locations_8121", ["date_visited", "visit_duration"], false), Asset_buffer);
var IntersectCount = Count(VehicleIntersecting);
Console("Intersect Count = " + IntersectCount);
// If an intersecting vehicle record is found
var cnt = 0;
result = "Date of Commission: " + DateOfCommission + TextFormatting.NewLine;
if (IntersectCount > 0) {
for (var VehicleStop in VehicleIntersecting) {
//Get Date of Visit
var DateOfVisit = Text(VehicleStop["date_visited"], dateFormat);
Console("Date of Visit = " + DateOfVisit);
Console("Date of Commission = " + DateOfCommission);
// Set result as Visit Duration if Dates of Visit and Commission Match
if (DateOfVisit == DateOfCommission) {
result += " - Duration: " + VehicleStop["visit_duration"] + "h" + TextFormatting.NewLine;
} else {
// switch this off, since you are not interesting in this
cnt += 1;
//result += " - Duration: (" + DateOfVisit + ") = " + VehicleStop["visit_duration"] + "h" + TextFormatting.NewLine;
Console("other date: " + VehicleStop["visit_duration"]);
}
}
if (cnt > 0) {
result += " - " + cnt + " vehicle stops found at different dates..." ;
}
} else {
// handle: no interecting vehicles found
result = "No Intersecting Vehicle Records Found with the same date";
}
return result;
... View more
08-09-2020
03:56 PM
|
0
|
2
|
2244
|
|
BLOG
|
Hi marcelorosensaft , Could you try this: <div style="display:{expression/expr6}">Map page: <a href="{expression/expr5}">{expression/expr7}</a></div> It places the text outside the anchor and everything inside a div that will either be visible or not.
... View more
08-09-2020
03:26 PM
|
0
|
0
|
19002
|
|
POST
|
Hi mcreaney , I still haven't had much time to look at it, but I do see a couple of things. Most importantly, I don't really understand to what layer the "Assets" refer. Can you tell me what it is called in the web map? Are you sure they have geometry? When I look at what the geometry returns, I don't have any result.
... View more
08-07-2020
05:34 PM
|
0
|
4
|
2244
|
| 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
|