|
POST
|
I am trying to Generate Points along a line every mile. I run the tool from the toolbox and it runs fine but I am not getting points at equal intervals.. See how some points are far away and some are really close....What gives...Thoughts... If I try this with a straight line it seems to work
... View more
04-22-2021
12:13 PM
|
0
|
5
|
2410
|
|
POST
|
I figured it out....you can go to one of these sites (sure there are more) You can click and save the emoji icons and simply paste them in the Attribute Expression Builder window where you write your expression code. // https://fsymbols.com/ // https://fsymbols.com/signs/tick/ // https://emojipedia.org/question-mark/ function symbol(feature){ /* Yes or 0 value returns a Check Mark, No or 1 Returns an X */ var display = When(feature == "Yes", "✔️", feature == "No", "❌", " :question_mark: "); return display } symbol($feature.someattribute)
... View more
04-02-2021
12:49 PM
|
0
|
0
|
2412
|
|
POST
|
I saw this but do not know how to make the check or the X in the actual expression builder Sadly I just took a screen shot and did not save it..... And this would be the result....I just Cannot find the example I was using...PLEASE HELP
... View more
04-01-2021
12:50 PM
|
0
|
1
|
2428
|
|
POST
|
I am trying to build an expression that will show a RED X if the value is No and a GREEN check if yes... I have done this before but cant remember.... HOW can I return a symbol instead of text as seen below. function symbol(feature){ var display = When(feature == 1, 'Yes', feature == 0, 'No', 'n/a'); return display } symbol($feature.SOMEFIELD)
... View more
04-01-2021
11:05 AM
|
0
|
2
|
2479
|
|
POST
|
Using survey123 I can add a table to be used as a lookup table. If this table changes it requires me to republish the Survey123 application every time that list changes...and on my side it does change daily. This is very hard to manage OFFLINE Is there an easier way to update this lookup table than republishing the whole Survey123 each time? Which requires the user to download the form each day. Where is this lookup table stored on the actual device? Phone, Laptop etc Can I update this table separate from updating the entire form? ONLINE Is there a way to reference a table from a rest endpoint if we are working online, to be used as the lookup table?
... View more
03-03-2021
07:02 AM
|
0
|
1
|
1098
|
|
POST
|
Currently I can create a project via Survey123 which creates the Feature Class and Form, all of which get published to my AGOL Account What I want to do is store that Feature Class on my Server and Publish that to a service and then consume it via the Survey123 Form that was originally created. Can I use Survey123 to create the Feature Class and Form and then export the Feature Class to my Server and configure the form to point to the Form to look for this newly published Service? Or is there another way to do this?
... View more
11-20-2020
04:51 AM
|
0
|
2
|
1213
|
|
POST
|
I am needing a solution to document all the parameters I set when I created an application using web application builder. Is there a way to export a configuration file showing the parameters I set/build into the web app? Can I download the app and store it somewhere? Can I then reinstall this and see what settings were set. A configuration file would be the best for me as it would hopefully be a lite list of the configurations
... View more
11-05-2020
11:18 AM
|
0
|
0
|
485
|
|
POST
|
Anyone? Did I make sense or should I try and explain more and with screen shots. Cheers
... View more
11-02-2020
04:22 PM
|
0
|
0
|
611
|
|
POST
|
I think I got it working with this...Still testing I added a section in there to specific outfields....this seems to be working as well....going to close this try
{
string gpUrl = "https://xxx.xxx.xxxxxxxx.xxx/arcgis/rest/services/N/F/MapServer/0";
string whereClause = "OBJECTID>1";
string[] outfieldsParam = new string[2];
outfieldsParam[0] = "Address";
outfieldsParam[1] = "State";
string outfieldsParam2 = string.Join(",", outfieldsParam);
//string requestUrl = gpUrl + "/query?where=" + whereClause ;
string requestUrl = gpUrl + "/query?where=" + whereClause + "&outfields=" + outfieldsParam2;
HttpWebRequest request = (HttpWebRequest)WebRequest.Create(new Uri(requestUrl));
request.KeepAlive = true;
request.Method = "POST";
request.AllowAutoRedirect = true;
request.CookieContainer = new System.Net.CookieContainer();
request.ContentType = "application/x-www-form-urlencoded";
StringBuilder paramString = new StringBuilder();
paramString.Append($"&f=json");
byte[] data = Encoding.ASCII.GetBytes(paramString.ToString());
request.ContentLength = data.Length;
Stream requestStream = request.GetRequestStream();
requestStream.Write(data, 0, data.Length);
requestStream.Close();
HttpWebResponse response = (HttpWebResponse)request.GetResponse();
string responseStr = getStringFromWebResponse(response);
Response = responseStr;
return (!(responseStr.Contains("error")));
}
catch (Exception ex)
{
Console.WriteLine(ex.Message);
return false;
}
... View more
11-02-2020
06:06 AM
|
1
|
0
|
3846
|
|
POST
|
But I am doing this in C# .aspx app....not a python app....how do I make the call from the C# aspx app?
... View more
11-02-2020
05:24 AM
|
0
|
0
|
3846
|
|
POST
|
I can run this from the REP and get a return How do I turn this into a C# call from an ASPX .net page Button click? This returns me the JSON I can filter through and get the values I need.
... View more
10-30-2020
05:43 PM
|
0
|
0
|
3846
|
|
POST
|
If I can simply get the entire JSON string back I would be fine...I can parse that out myself... Not sure how to query the Service with the WHERE clause....examples I have seen are lik 50 lines of code....I dont think it should be that complicated or I am missing something.
... View more
10-30-2020
05:35 PM
|
0
|
1
|
3846
|
|
POST
|
I am simply trying to query a rest endpoint (Feature Service) and get values from Specific fields I dont think I need all the SDKs etc....I just want to read the result of a JSON string after querying a Rest EndPoint with a WHERE Clause. Thoughts? Examples? private void button1_Click(object sender, EventArgs e)
// Query a specific Rest EndPoint WHERE ID = ????
// Write Field 1, Field 2, Field 6 to variables
// Set variables to Textbox on Form
{
... View more
10-30-2020
05:31 PM
|
0
|
5
|
4129
|
|
POST
|
There is "NearMe" widget in Web AppBuilder that allows a user to click a point on the map or geocode to an address. This then selects all features within a given distance. This then creates a list of results and puts them below the widget. This works fine....The list appears to show the information configured in the Popup Title of the web map. When you hover over one o the results it also appears to use the configured Popup Title to populate the ToolTip I want to keep the text that is there in the results window. BUT I want to modify whats in the ToolTip....Can this be done?
... View more
10-29-2020
05:20 AM
|
0
|
1
|
660
|
|
POST
|
I was able to do it this way....I assigned an IMAGE to an expression and then used that expression in the popup EXPRESSION ( IMAGE{expression/expr4}) function GetImageOnClass(feature) {
var lst = ['95', '96'];
var base_url = 'https://img.icons8.com/color/search/';
var url = '';
if (feature == 1) {
url = base_url + lst[0];
} else if (feature == 0) {
url = base_url + lst[1];
} else {
url = 'https://www.yahoo.com';
}
return url;
}
var cnapper = $feature.FieldName
return GetImageOnClass(cnapper); HTML on the POPUP <div style="width: 100%; height:30px; vertical-align:middle; ">
<div style="
width: 5%;
vertical-align: middle;
float: left;">
<img alt="alternative text" src="{expression/expr4}" style="
width:25px;
height:25px;" />
</div>
</div>
... View more
10-27-2020
05:31 AM
|
0
|
0
|
1144
|
| Title | Kudos | Posted |
|---|---|---|
| 1 | 09-20-2018 11:09 AM | |
| 1 | 09-10-2018 06:26 AM | |
| 1 | 09-15-2022 11:02 AM | |
| 1 | 05-21-2021 07:35 AM | |
| 1 | 08-09-2022 12:39 PM |
| Online Status |
Offline
|
| Date Last Visited |
09-19-2022
09:23 PM
|