POST
|
I am helping our city Fire Department to conduct fire hydrant inspections. One of the inspection steps is to take several readings (static pressure, residual pressure and pilot pressure) from the hydrant to determine flow gallons per minute (GMP). Typically, they would take these readings and have to put them into a third-party program that then does the calculations to in the background to get GPM. I have an Arcade script that will allow the GPM to be determined in the field once the required numbers are input in the appropriate fields. I have run script in Pro with no problems. I wanted to add an attribute rule with a triggering event of 'Update' and 'Insert' so when they either go to an existing hydrant or add a new one and conduct a flow test the GPM will be calculated on the fly. It runs as expected on existing hydrants. However, when I try to add a new hydrant I am receiving an error. Any guidance would be greatly appreciated! Please see error message, script and set up of geoprocessing tool below. ERROR MESSAGE: ARCADE SCRIPT: var P = $feature.pilotpress var S = $feature.staticpress var R = $feature.respress var Q = 167.0625 * Sqrt(P); var RF = Q * Pow(((S - 20) / (S - R)), 0.54); return RF GEOPROCESSING TOOL SETUP:
... View more
10-16-2020
08:02 AM
|
0
|
4
|
1541
|
POST
|
Xander, That entire example was sent to me. After I did math with a scientific calculator I got same answer as you. Contacted Fire Dept and apparently he typed instead of copy and paste and miss-typed.
... View more
10-02-2020
05:47 AM
|
1
|
1
|
1950
|
POST
|
I want to start by saying I am fairly adept at reading Arcade language but not so much at writing it. To date I have only written simple scripts having to do with labels and such. When it comes to using Arcade for mathematical functions I know very little so I'm not sure if what I want to do is even possible. I have put together a map to be used with Collector for ArcGIS for our city's Fire Department to conduct fire hydrant inspections. They gather 3 readings in the field (Static Pressure, Residual Pressure and Pitot Pressure) which they then add into a third-party software to determine Rated Flow at 20psi. Based on Rated Flow the hydrant is assigned a color: Red 0-499, Yellow 500-999, etc.. The Fire Department then sends me an excel spreadsheet of the hydrant number and its assigned color that I join to an existing hydrant layer in GIS using the hydrant number as the primary key. I then display the hydrants on the Hydrant map on our portal according to their assigned color. This process is time consuming for all parties involved and creates several weeks of lag before data is updated on our portal. I have included the formula and example that was sent to me below. The Fire Department would like, if possible, to have the Rated Flow calculated on the fly in the field and by proxy the appropriate color assigned. I am hoping someone might be able to tell me: a) Is this type of complex math even possible using Arcade language and b) how to go about constructing the formula Thanks for the help! The three things you should have listed are Static Pressure, Residual Pressure, and Pitot Pressure. With these three we will be able to determine what the hydrant will flow at 20psi residual pressure which is what we have to have for the state. 167.0625 x SR(P) = Q SR( ) is Square Root P is Pitot pressure Q is the amount of water flowed during the test in gallons per minute Q x ( S - 20 / S - R ) ^ 0.54 = Rated Flow at 20psi S is the static pressure R is the Residual Pressure and example a hydrant flow test with a Static pressure of 108psi with a residual pressure of 55psi and a Pitot pressure of 40 167.0625 x SR(40) = 1,056.2 gallons per minute flowed 1056.2 x (108 - 20 / 108 - 55 ) ^ 0.54 = 1,388.86 round to the nearest whole number 1,389 gallons per minute is what it is rated for at 20psi
... View more
09-29-2020
01:25 PM
|
0
|
3
|
2005
|
POST
|
I realize this is a very old post but I am trying to configure the citizen problem reporter and I can not seem to find where I would input an image url to change the background image of login screen.
... View more
08-03-2020
01:48 PM
|
0
|
2
|
1764
|
POST
|
Hi Rachel, The city I work for has just started implementing this solution in our community. They wanted email and phone number to be required. The easiest work around I found was to create new fields,{email} {Phone_Number}), BEFORE I created any new views and set them to Not Allow null values. This made them required. Just be warned people can simply but in a few characters if they wanted to get around the requirement without putting any real info in those fields but so far we haven't had too many issues.
... View more
06-02-2020
05:52 AM
|
0
|
0
|
1180
|
POST
|
I have not unfortunately. I did a work around for the moment by putting date in a text field so I could search that way.
... View more
05-21-2020
01:31 PM
|
0
|
0
|
587
|
POST
|
Thanks for a great first day, I cannot wait to see what the next few days have in store. I have a quick question. I believe you may have already touched on this but in exercise 3 it tells you to change the font. Is there a font library that comes with the AppStudio install or would I need to access fonts that I have installed on my cpu to make those changes? Thanks for all of your hard work, Ari Lukas
... View more
04-29-2020
05:50 AM
|
0
|
1
|
853
|
POST
|
I have a feature layer with events happening around our city. I have a date field with the date and time of the event. In the pop-up it appears fine, however when I include it as a search option it appears as a number string instead of the usual month/day/year: time format. (See attachments below) Is there a way to configure the field so it appears in the correct format in the search field or do I need to create new fields with date and time separated out?
... View more
03-03-2020
07:00 AM
|
0
|
2
|
673
|
POST
|
I don't know if this is even possible but I'm hoping someone can point me in the right direction. I have a hosted feature layer of park amenities that contain domain values so each amenity can be visualized differently (water fountain, playground, basketball court, etc...). This layer is being used by our parks department to catalog the location, material type and condition of each amenity in our city's parks. I created a hosted feature view of this layer that I would like to use in a park locator app so our citizens can see where and what type of amenities are located at each of our parks. The issue I am having is the map currently looks very busy and would like to parse down some of the images; instead of showing each one of the park benches at a particular location just show one bench with a comment in the pop-up saying "There are 5 benches at this location". I have included a screen shot below to show the actual view and how I would like it to appear. Current How I would like it to look As you would expect when I delete features in the hosted view layer, those feature also get deleted in the hosted parent feature layer. Short of creating a separate, unrelated copy of the hosted feature is there a way to configure a hosted view to allow items to be deleted off the map without affecting the parent layer?
... View more
11-25-2019
08:41 AM
|
0
|
2
|
668
|
POST
|
Hey folks, I have what I'm sure will be a simple question. I am currently using ArcMap 10.5, Enterprise 10.5 and latest version of Collector for ArcMap. My question, Is there a way to see features on my desktop that my field crew have added via Collector for ArcGIS without having to restart ArcMap? I have tried refreshing all of my connections to the portal and to my version of the .sde (which is where I published all data to the portal) but the only way I can get features to appear on my desktop is by restarting ArcMap. Like I said probably a simple solution but having trouble finding doc on how to do it. Thanks for the help!
... View more
08-28-2019
08:40 AM
|
0
|
0
|
173
|
POST
|
Thanks for the link to the documentation. I used that in combination with the above code and was able to use the expression below to get what I needed. Thought I would post this in case anyone else had this kind of issue IIf($feature["Pole_Inspection_status"]==0,"<BOL><FNT size = '12'>" + $feature["GIS_ID_coded"] + "</FNT></BOL>",$feature["GIS_ID_coded"]);
... View more
07-22-2019
06:38 AM
|
4
|
0
|
4927
|
POST
|
I will confess that the most arcade I have ever used has been extremely simple. I currently have written a VBScript in ArcMap that will increase the font size and make it bold based on an if statement. I have tried several attempts to replicate this in Arcade, with no success. Function FindLabel ( [GIS_ID_coded], [Pole_Inspection_status] ) dim a a= [GIS_ID_coded] if [Pole_Inspection_status] = "No" then a= "<BOL><FNT size = '12'>" & a & "</FNT></BOL>" end if FindLabel = a I haven't waded through all the arcade function references but have not been able to find any documentation on how to change font size and bold option. If anyone could point me in the right direction it would greatly appreciated!
... View more
07-18-2019
09:13 AM
|
0
|
2
|
5707
|
POST
|
I have created an app using the WebApp Builder through Portal for ArcGIS and have added the 'Report Feature' widget. It work fine on the laptop and on the Ipad. However, when it is used on a smart phone the fields to input information will not appear. The only thing that shows when you click on the map is a box that says 'details' Is anyone else having this issue and if so, is it easily fixable?
... View more
03-28-2019
08:46 AM
|
0
|
0
|
526
|
POST
|
I am working in ArcMap 10.5 and published a feature service to the Portal for ArcGIS. One of the features layers I have published has a field which contains a hyperlink to a folder on our local network. Is there a way to enable and click the hyperlink in the pop-up window that will access the folder on our local server?
... View more
03-28-2019
06:56 AM
|
0
|
8
|
4476
|
Title | Kudos | Posted |
---|---|---|
1 | 12-07-2021 06:58 AM | |
1 | 04-24-2024 05:29 AM | |
2 | 08-11-2023 12:29 PM | |
1 | 08-02-2023 06:58 AM | |
1 | 01-13-2023 07:04 AM |
Online Status |
Offline
|
Date Last Visited |
06-07-2024
10:02 PM
|