BLOG
|
2. How would you convert the measurements from feet to metres? Multiply by each WSE value by 0.3048. Change the text to reflect the new unit. // Build the pop-up string by iterating through all related features
var popupString = ''
for (var f in relatedDataSorted){
popupString += Text(f.MSMT_DATE, 'MMMM Y') + TextFormatting.NewLine +
"Depth to water surface (m): " +
DefaultValue(f.RPE_WSE*0.3048, 'no data') + TextFormatting.NewLine +
"Depth below ground surface (m): " +
DefaultValue(f.GSE_WSE*0.3048, 'no data') + TextFormatting.NewLine +
"Water Surface Elevation (m): " +
DefaultValue(f.WSE*0.3048, 'no data') + TextFormatting.NewLine +
TextFormatting.NewLine
}
Return DefaultValue(popupString, 'No measurements to show') 3. Bonus round: How would you structure your code to show Quality Codes along with your Groundwater level readings? Use When function before the for loop // Build the pop-up string by iterating through all related features
var popupString = ''
for (var f in relatedDataSorted){
var RPE_WSEQualityCode = f.RPE_WSE_QC;
var RPE_WSEQualityCodeDescrip = When(RPE_WSEQualityCode == 1, 'Good data', RPE_WSEQualityCode == 2, 'Good quality edited data', RPE_WSEQualityCode == 70, 'Estimated Data', RPE_WSEQualityCode == 151, 'Data Missing', 'Quality Code description not found');
popupString += Text(f.MSMT_DATE, 'MMMM Y') + TextFormatting.NewLine +
"Depth to water surface (ft): " +
DefaultValue(f.RPE_WSE, 'no data') + ", Quality Code: " + RPE_WSEQualityCodeDescrip + TextFormatting.NewLine +
"Depth below ground surface (ft): " +
DefaultValue(f.GSE_WSE, 'no data') + TextFormatting.NewLine +
"Water Surface Elevation (ft): " +
DefaultValue(f.WSE, 'no data') + TextFormatting.NewLine +
TextFormatting.NewLine
}
return DefaultValue(popupString, 'No measurements to show')
... View more
07-07-2020
12:01 AM
|
1
|
0
|
28050
|
POST
|
Just like to add that I've also tried and cannot find a way to display a 'Total' value for the stacked bar. Also explored ArcGIS Dashboards Beta and its not possible.
... View more
06-10-2020
06:04 PM
|
3
|
0
|
1324
|
POST
|
We are using Web App builder based web application (version 2.0.1). Customization in the basic app builder framework was done based on the application requirement and design For edit widget, we have used the out of box app builder edit widget, without any customizations. We will try to set the snapping tolerance and will let you know the outcome.
... View more
03-12-2017
07:03 PM
|
0
|
0
|
936
|
POST
|
ArcGIS Server 10.4. Feature access-enabled Map Service was published using ArcMap 10.2.2. SQL Server Enterprise Geodatabase. ArcGIS 10.2.2 database.
... View more
03-12-2017
06:54 PM
|
0
|
0
|
936
|
POST
|
I have a web map application where the user can draw a polygon and save it to the database through a feature access-enabled ArcGIS map service. The problem occurs when the user creates self-intersecting polygons (see Figure 1 below). This causes an error 'Error: Linestring or poly boundary is self-intersecting' in ArcGIS Server, as recorded by the logs (see Figure 2 below). Figure 1: Self-intersecting polygon drawn by user Figure 2: ArcGIS Server logs My questions: is there a workaround for this error? Do I need to change some configuration on my map service? Unable to find a related setting. And why does this error not occur in ArcMap? As far as I can gather, this error happens due to a geometry validation issue (ArcGIS Help 10.1 ). I'm guessing ArcMap uses some validation (e.g. ArcObjects 10 .NET SDK Help) in the background to account for this? Any information would be appreciated.
... View more
03-10-2017
02:45 AM
|
0
|
4
|
1755
|
Title | Kudos | Posted |
---|---|---|
3 | 06-10-2020 06:04 PM | |
1 | 07-07-2020 12:01 AM |
Online Status |
Offline
|
Date Last Visited |
11-11-2020
02:25 AM
|