|
POST
|
Hi, I can't explain exactly why it's giving different results, but in your arcade expression you're returning the full value instead of the rounded value. In your IIF statement if you replace the second $feature.Contour (after the "0,") with round($feature.Contour, 1) it might do what you're wanting.
... View more
09-03-2020
03:20 AM
|
1
|
1
|
1910
|
|
POST
|
Hi Mark, You should be able to do this by using Python CIM access Python CIM access—ArcGIS Pro | Documentation . You can get the layout definition using layout.getDefinition() (see here: Layout—ArcGIS Pro | Documentation), make your tweaks and then update the layout definition with layout.setDefinition(newdefinition). Extent indicators are associated with CIMMapFrame elements in "extendIndicators", and have an "isVisible" attribute that you can switch from "true" to "false" to turn them off.
... View more
08-21-2020
07:35 AM
|
0
|
1
|
1859
|
|
POST
|
I also noticed that for the first time today, that CTRL-F isn't case sensitive! Glad I could help out though mate.
... View more
08-20-2020
12:25 PM
|
0
|
0
|
8745
|
|
POST
|
Seems like the easiest way to find out what it's doing is to just print out the results of soup.find_all(string=re.compile("COVID-19")) right? Seems that the function returns a list of all matches, so you could just do something like the following: matches = soup.find_all(string=re.compile("COVID-19"))
for match in matches:
print(match) Also I had a bit of a peek at that webpage, and I think in some places it references "Covid-19" and in others "COVID-19", which with your regular expression would only return the latter.
... View more
08-20-2020
08:13 AM
|
1
|
2
|
8745
|
|
POST
|
If it's passing the coordinates correctly to the geopoint question I would think that they would be showing there in the Survey123 map! Did you confirm that on the geopoint question it was showing roughly the centrepoint of the polygon you linked from? Are you sure the point in the Atlantic isn't an older record?
... View more
08-20-2020
04:47 AM
|
0
|
0
|
3856
|
|
POST
|
Hi, Whichever attributes you've configured to appear in the pop-up for a layer in the web map in AGOL should appear when you click on a feature in Collector.
... View more
08-20-2020
04:42 AM
|
1
|
0
|
563
|
|
POST
|
Hi, Try adding an & between the {SITE_NAME} and ?center, like you did between the different fields you're populating earlier in the url. Currently it's reading the site_name as "{SITE_NAME}?center"
... View more
08-20-2020
02:37 AM
|
0
|
2
|
3856
|
|
POST
|
Disclaimer: sourced the calculations mainly from https://community.esri.com/thread/199141-arcade-expression-for-geometry-in-arcgis-online-popup If you create two arcade expressions in the popup menu called lat and lon, using these arcade expressions: var originShift = 2.0 * PI * 6378137.0 / 2.0;
var lat = (Centroid($feature).Y / originShift) * 180.0;
lat = 180.0 / PI * (2.0 * Atan( Exp(lat * PI / 180.0)) - PI / 2.0);
return lat var originShift = 2.0 * PI * 6378137.0 / 2.0;
var lon = (Centroid($feature).X / originShift) * 180.0
return lon And then at the end of the link to the survey in your popup add ?center={expression/expr0},{expression/expr1} where the first expression is the latitude and the second expression is the longitude. These expressions will calculate the long and lat in wgs84 (for using ?center= coords need to be in wgs84) of the polygon you click on in your webmap, and then pass them to a geopoint question, as described halfway through this page: https://community.esri.com/groups/survey123/blog/2019/02/06/survey123-tricks-of-the-trade-web-form-url-parameters
... View more
08-19-2020
08:19 AM
|
0
|
4
|
3856
|
|
POST
|
Hey, Glad that you've got it working again and that I could help somewhat; I don't really feel any more enlightened about what was going on but these things do happen from time to time.
... View more
08-19-2020
03:35 AM
|
0
|
0
|
3097
|
|
POST
|
With every post I feel a little more confused. I think it's probably worth trying publishing a new editable service with that schema and seeing whether the resulting service has the same issue. Based on the ArcGIS Pro error you were getting I still think it's trying to write to some editor tracking fields which don't exist, which would explain the behaviour you've been experiencing with the edit failing at submission. Disabling editor tracking and trying to digitise a feature might be enlightening? Also if you search for "CreationDate_1" in the service definition does it return anything?
... View more
08-18-2020
07:37 AM
|
0
|
2
|
3097
|
|
POST
|
From the actions you've taken I really have no idea how this could have happened. Somehow your editor tracking seems to been trying to store the information in fields that don't exist - the only way this is possible in my understanding is if you: Published a service with editor tracking fields but without editor tracking enabled Enabled editor tracking in AGOL, which may create duplicate fields (e.g. Creator_1) instead of pointing to the existing fields Deleted the duplicate editor tracking fields And I don't even know if it would allow you to do that. We can check which fields editor tracking are pointing to to confirm this: If you go to the item for that feature service in AGOL, in the bottom right click "View" by the URL box to view the rest endpoint In the middle of the resulting URL add "admin" like this: arcgis/rest/services/ -> arcgis/rest/admin/services which opens that service with the ArcGIS Rest Administrator At the bottom of the page click on "Update Definition" (we're not going to change anything just yet so don't worry) Ctrl f search for "editFieldsInfo" which will take you to the part of the service definition where it defines the names of the editor tracking fields Let me know what it says for the different fields, I'm guessing this will say Creator_1, EditDate_1 etc., Also if you haven't got a backup of the data in the service I'd strongly recommend doing that now before trying to fix this.
... View more
08-18-2020
01:32 AM
|
0
|
4
|
3097
|
|
POST
|
Not sure if this is the offical way of doing this but if you use indexOf(list, value) and the value isn't in the list it returns a -1, so you can set up a little switch using it! See below: var counties = ['County1', 'County2']
IIF(indexOf(counties, $feature.NAME) != -1, "Processed", "Not Processed")
... View more
08-17-2020
07:15 AM
|
2
|
1
|
2539
|
|
POST
|
Have you made any other tweaks to that collector map or feature schema recently? I haven't seen that personally but it seems to me like it's more likely to be a hidden required field or mismatch with a domain instead of an editing privileges issue, as you wouldn't have gotten that far into the editing process otherwise. Perhaps there is a mismatch between the webmap feature template for creating new features and the domain, and it is only on certain species that this error is occurring?
... View more
08-17-2020
06:56 AM
|
0
|
7
|
3097
|
|
POST
|
Anna, My pleasure, and glad to hear that it worked that easily I'm assuming the JHU won't be making any changes to the schema of their service anytime soon, but if something ever stops working with that script that'd be the first thing I'd check!
... View more
07-30-2020
09:10 AM
|
0
|
0
|
4518
|
|
POST
|
Hi Fran, also worth looking at doing this with the API for Python, as it is makes it very easy to automate all sorts of processes in AGOL/Portal. Accessing and managing users | ArcGIS for Developers You can even quite easily check to see if users have content, and if so reassign to another user etc, which you can see in the examples on the page I linked.
... View more
07-29-2020
12:01 PM
|
1
|
0
|
4021
|
| Title | Kudos | Posted |
|---|---|---|
| 1 | 05-22-2023 10:37 PM | |
| 1 | 04-05-2023 11:09 PM | |
| 1 | 05-21-2024 10:26 PM | |
| 1 | 04-20-2023 12:05 AM | |
| 1 | 05-21-2023 10:47 PM |
| Online Status |
Offline
|
| Date Last Visited |
03-20-2025
08:52 AM
|