POST
|
Hello, I'm trying to create an expression that will return the list of layers that are in a webmap. So far I have this from arcgis.gis import GIS from arcgis.mapping import WebMap gis = GIS("home") wmItemId = "" #put the id of the webmap in here wmItem = gis.content.get(wmItemId) wm = WebMap(wmItem)for lyr in wm.layers: print(lyr.title) But get this error after running (when I have the webmap ID included) Input In [1]
print(lyr.title)
^
SyntaxError: invalid non-printable character U+200D What could be causing this error? Also, is it possible to have the expression automatically generate a CSV file with the list instead of printing one? Any help is appreciated. Thanks.
... View more
12-12-2022
04:41 AM
|
0
|
2
|
845
|
POST
|
Hello! I have a survey that is used for field data collection. The first question in the survey is "Report Type" which then displays relevant questions based on the report type selected. We would like to use the built in report function within the Survey123 web backend, but I would like to know if there is any way to have a specific report template exported based on the chosen report type? For example if we have 4 report types - A,B,C,D, I would like to have 4 report templates made which include the specific relevant fields which were in the survey. Is there then a way to run the reports and have them automatically populate the proper report template types based on the Report Type field? Thanks.
... View more
11-17-2022
01:48 PM
|
0
|
0
|
241
|
POST
|
Hello, I have a collaboration set up between my AGO and internal Portal environments. I've successfully shared hosted services between portal and ago previously, but came across an issue when sharing a service with layer views. The layer views are used for data collection and feed back into the main service. The main service has the appropriate settings enabled like Sync but it wont appear in the Portal group after syncing. Do the layer views associated with the service need to have Sync enabled as well? Thanks.
... View more
11-16-2022
11:51 AM
|
0
|
0
|
272
|
POST
|
Hello, I'm working to create a collaboration between our Portal and our AGO within my organization. We would like to have the data within the collaboration be referenced as opposed to copied. The goal of this project is to have users in the field collect data to the service within the collaboration which would sync back to our enterprise through the Portal. I have gone through the setup process and am able to see the service I shared from my Portal within my group within AGO. The issue comes when I try to open the layer in a webmap. The map prompts me for my Portal login. Is this typical behavior for a referenced collaboration? Is there any way to not have the user be prompted to login to view the data if they are a member of the group its shared to in ago? Thanks.
... View more
08-30-2022
11:25 AM
|
0
|
2
|
493
|
POST
|
Hello, I have a notebook within AGO that prints all the public facing content within my organization. The results are formatted to be comma delimited to make it easy to import into an excel spreadsheet to share. Is it possible to directly export the results of this script to an excel file? Thanks. Script: from arcgis.gis import GIS gis = GIS("home") from IPython.display import display my_content = gis.content.search(query="owner:USERNAME",max_items=10000) #item_types_need = ['Web Map','Web Mapping Application','StoryMap','Dashboard','Web Experience','Form'] item_types_need = ['Feature Service'] for item in my_content: if item.type in item_types_need: if item.content_status == "public_authoritative": author = "Authoritative" else: author = "None" if item.shared_with['everyone']== True: print(""'"{}"'",{},{},{}".format(item.title,item.id,item.type,author)) #display(item) print("Completed")
... View more
08-01-2022
11:06 AM
|
0
|
1
|
922
|
POST
|
Hello, I'm using the FeatureSetByRelationshipName to pull related table records into a popup. One of the fields (SumOfReturnMG) being pulled is an integer field and I need to round the number to 2 decimals. What would be be best way to format the field within my existing Arcade expression? Expression user below var fs = FeatureSetByRelationshipName($feature,"qry_HUC_USEGROUP_RET" , ['*'], false); var result = ""; var cnt = Count(fs); if (cnt > 0) { // start loop through related records for (var f in fs) { // for each f (=feature) in related features, add attendee to the result result += TextFormatting.NewLine + f.YearNumber + TextFormatting.NewLine + f.SumOfReturnMG; } } else { // overwrite result with text to indicate that there are no attendees result = ""; } return result; Resulting record (field highlighted in blue) Thanks.
... View more
07-25-2022
11:21 AM
|
0
|
1
|
273
|
POST
|
Hello, I'm creating a survey using Survey123 Connect and I would like to limit the basemap options for a Geopoint question to a few or just one basemap. Is this possible to achieve in Survey123 Connect? Thanks.
... View more
07-21-2022
05:31 AM
|
0
|
1
|
408
|
POST
|
Hello, I'm working on a survey within Survey123 Connect that contains a Select_one type question. Within that question are 4 options and each option is color coded (image below). I specified the font color for each selection in the Label field in the Choices tab in the excel sheet. When I view the data within AGO it displays the HTML tags for font color. How can I achieve different font colors without the tags following through to the end data? XLS setup: Survey dropdown: AGO result: Thanks,
... View more
07-06-2022
07:12 AM
|
0
|
2
|
442
|
POST
|
Hello! I'm trying to follow this tutorial on Author and share a local scene in ArcGIS Pro ( link to tutorial - https://pro.arcgis.com/en/pro-app/latest/get-started/author-and-share-a-local-scene.htm). I'm trying to symbolize a tree point layer as the trainer does in the video but my 3d tree symbols come out looking like white hollow cylinders (image below). What could I do to display the proper 3d tree symbology? Thanks.
... View more
07-01-2022
11:16 AM
|
0
|
1
|
421
|
POST
|
Hello, I'm creating a survey that includes a geopoint questions using Survey123 Connect. The survey will be accessed using the web browser. I noticed that the geopoint question contains inputs for lat long, but am wondering if its possible to change that input to use DDM (Decimal Degrees Minutes)? Any help is appreciated. Thanks.
... View more
06-28-2022
07:58 AM
|
0
|
1
|
254
|
POST
|
Hello, I'm trying to use Arcade to return the field aliases of fields that have a value of "1" in the data. I have a table of fish species and I would like to return the field alias in the popup anytime there is a value of "1" found in the species record (image of table below). I currently have an Arcade expression that returns all of the field aliases if a "1" is found in the data, but I would like to specify the fields to return. Expression I have so far that returns all: var features = FeatureSetByName($map, 'Ocean Prime Fishing Grounds', ['*'], false); var aDict = Schema(features); var aArray = aDict["fields"]; var output; for (var i in $feature){ if ($feature[i] == 1) { for(var j in aArray) { var dict = aArray[j]; if (dict['name'] == i){ output += dict['alias'] + TextFormatting.NewLine; } } } } return output; Here are the specific fields I would like to return: 'SUMMFLOUND', 'SEABASSTAU', 'CODPOLLOCK', 'BLUEFISH', 'WEAKFISH', 'STRIPEDBAS', 'TUNA', 'SHARKS', 'BILLFISH', 'BONITOALBA', 'SCUP', 'RED_HAKE', 'LOBSTER' Example of the data table: The data I'm using is shared publicly - https://njdep.maps.arcgis.com/home/item.html?id=df7de8c132a749d680ae415b30322fc8 Any help is appreciated. Thanks.
... View more
06-24-2022
06:22 AM
|
0
|
2
|
598
|
POST
|
@IsmaelChivite This worked perfectly, thanks for the help. Is it possible to have DDM text input fields which feed into the map to plot a point?
... View more
06-23-2022
11:05 AM
|
0
|
0
|
453
|
POST
|
Hello! I'm trying to pull coordinates from a geopoint question within a survey. I'm able to pull X/Y coordinates into separate fields using the pulldata function. For this project though we need the coordinates in Decimal Degrees Minutes as the output of the pulldata function. Is there a way to specify DDM when using the pulldata function as well as have the coordinates split into two fields? Image of the current pulldata function. "Location_Error" is the name of the geopoint field. Thanks.
... View more
06-23-2022
06:34 AM
|
0
|
2
|
481
|
Title | Kudos | Posted |
---|---|---|
1 | 01-28-2021 06:14 AM | |
1 | 08-16-2023 05:47 AM | |
1 | 02-15-2023 05:05 AM | |
7 | 10-16-2023 11:55 AM | |
1 | 08-13-2020 08:57 AM |
Online Status |
Offline
|
Date Last Visited |
a month ago
|